[Mapserver-users] Pan
Steve Lime
steve.lime@dnr.state.mn.us
Tue, 09 Dec 2003 11:36:10 -0600
The code already does something very close to what you need, just ad the
line:
document.mapserv.mode[0].checked = true; // force browse
after the x/y computation and it will work like you want. I've updated
the workshop demo so that this works now.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Brent Lund <Brent.Lund@state.mn.us> 12/9/2003 11:05:13 AM >>>
I am attempting to add pan controls similar to Steve's example at
http://maps.dnr.state.mn.us/mapserver_demos/workshop/
<http://maps.dnr.state.mn.us/mapserver_demos/workshop/> (select the
"add
pan controls"). Steve's example works swell except when the user
selects a
query option and then decides to use a pan control. Rather than
panning
the user ends up with a query result.
I'm guessing there has to be a way to set the mode in the Pan
javascript
function. I haven't been able to figure out the syntax however -
anyone
know what that would be?
Thanks
Brent
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users