I installed MS4W in D:/MS4W.
Added hello.map which contains following code:
And hello.html contains following code:Code:NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "D:/ms4w/Apache/htdocs/hello.html" IMAGEPATH "D:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END
Then I open localhost:8080/hello.html with IE, but there isn't any image displayed after ICode:<html> <head><title>MapServer Hello World</title></head> <body> <form method="get" action="D:/ms4w/Apache/cgi-bin/mapserv.exe"> <input type="submit" value="Click Me"> <input type="hidden" name="map" value="D:/ms4w/Apache/htdocs/hello.map"> <input type="hidden" name="map_web_imagepath" value="D:/ms4w/tmp/ms_tmp/"> </form> <IMG SRC="[img]" width=400 height=300 border=0> </body> </html>
click the "click me" button. Is there anything wrong? thx




1Likes
LinkBack URL
About LinkBacks






Reply With Quote
