Controlling mapsize in CGI
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Thu Mar 10 20:11:49 PST 2005
The following works for me on 4.01 and 4.4.1
http://server/cgi-bin/mapserv?mode=map&layers=all&scale=20000000&map=/path/tp/mapfile.map&mapxy=-71.38918+42.61935&map_size=600+400
Just change map_size=600+400 to whatever map_size=width+height
So what version are you using?
-Steve W
Richard A. Milewski wrote:
> I'm trying to change the mapsize from a CGI form, and not having much
> success as mapsize_check doesn't seem to be valid, nor is any construct I
> can think of.
>
> I've searched the archive here and found Richard Greenwood's javascript
> solution posted last September 2nd, but I can't make that work either. I
> get no output at all in the JavaScript console in FireFox, and only an
> unpopulated drop down box on the browser screen.
>
> Does the javascript solution work with the current rev of MapServer? Can
> anyone point me at a publicly accessible site that uses a JavaScript to
> change mapsize on the fly?
>
> Thanks!
>
> -- Richard
>
More information about the MapServer-users
mailing list