[mapserver-users] Zooming
Lime, Steve D (DNR)
Steve.Lime at state.mn.us
Tue Dec 4 13:27:28 PST 2012
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