[mapserver-users] Zooming

Arthur Delorme delorme.ipgp at gmail.com
Wed Dec 5 02:03:05 PST 2012


Thank you very much Steve, it's working perfectly!

Arthur

Le 04/12/12 22:27, Lime, Steve D (DNR) a écrit :
> You could write a onClick handler that takes a zoom value, sets a hidden variable called zoom and submits the form.
>
> function doZoom(zoom) {
>    // set value of zoom hidden variable
>    // submit the form
> }
>
> <input type="hidden" name="zoom" value="set programmatically">
>
> <img src="dezoom.png" onclick="doZoom(-2)" /> <img src="zoom.png" onclick="doZoom(2)" />
>
> Steve
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur Delorme
> Sent: Monday, December 03, 2012 8:03 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Zooming
>
> Hello,
>
> Is there a way to perform a zoom with <input> instead of <select> or <radio>?
>
> I used to do that with the following code but it's not working anymore on recent versions of Firefox:
>
> <input type="image" name="zoom" src="dezoom.png" value="-2" /> <input type="image" name="zoom" src="zoom.png" value="2" />
>
> Thank you,
> Arthur
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>



More information about the MapServer-users mailing list