This is an old revision of the document!
Static CGI Usage for Mapserver
Just create a .map file as usual, and insert an image into your html document like this:
<img src="/cgi-bin/mapserv?mode=map&map=/gis/maps/example.map&layers=all&program=/cgi-bin/mapserv" width="640" height="480" />
mode | map mode tells mapserver to generate and return a static image |
---|---|
map | the location of the map file |
layers | show all layers, type the layers you want, or you can use multiple layer=<layername> statements |
program | this should be the same as the location for the running mapserv executable |