[Mapserver-users] SaveMap Parameter with Mapserver?
Jerod Clabaugh
jclabaugh at mac.com
Fri May 21 15:54:22 PDT 2004
Hi:
I am trying to send the current image from a mapserver page to
another html page without using PHP, MapScript or complex
jscript/dHTML. Yes, I could do it with that but I'm using MapServer
3.6.4 until I can get around to compiling v4x for OS X, when I can
use Chameleon and MapScript. Mr. Jacob Delfos has given me some
significant help but when using a more elegant DHTML/JavaScript
solution. I was wondering if there is a way to do it using straight
MapServer?
Problem:
I can send an image and its legend, but its only the default layer,
no additonal layers are shown even when the image I want to send has
multiple layers displayed.
Example:
http://dev.iwlearn.net/cgi-bin/mapserv?mode=browse&layer=district&layer=fire&zoomdir=0&zoomsize=2&submit.x=44&submit.y=11&imgxy=249.5+249.5&imgext=261492.703125+1822597.261188+419257.656250+1980115.113812&map=%2FLibrary%2FApache2%2Fhtdocs%2Fbelize%2Fdemo.map&savequery=true&program=%2Fcgi-bin%2Fmapserv&map_web_imagepath=%2FLibrary%2FApache2%2Fhtdocs%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&img=%2Ftmp%2FBELIZE_108517978228379.png
I am trying to use a URL string, passing cgi variables to develop a
printable page where the current map and legend URLs from the view
page are transferred to the print page easily to display the same
images.
Sample URL:
<a
href="[program]?map_reference_status=on&mapsize=500+500&map=[map]&template=/Library/Apache2/htdocs/belize/print.html&mapext=[minx]+[miny]+[maxx]+[maxy]">Print
Map View</a>
I believe what I need is the ability to somehow turn on the savemap
cgi parameter? Is there a specific way to do this either in the map
file or via a URL string as opposed to editing the mapserv.c file and
recompling? Will this work for the map and the legend or just the
map image?
Thanks in advance for any info.
Cheers,
Jerod Clabaugh
Belize Biodiversity MapServer Initiative
http://www.iwlearn.net/belize
More information about the MapServer-users
mailing list