[Mapserver-users] Pan
Steve Lime
steve.lime at dnr.state.mn.us
Tue Dec 9 09:36:10 PST 2003
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 at 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
More information about the MapServer-users
mailing list