hmmm, you're right--i wonder if that will be the case without the
alert(). i was keying off mousedown and mouseup, but maybe i can just
use onclick??<br>
<br><br><div><span class="gmail_quote">On 1/9/06, <b class="gmail_sendername">Stephen Woodbridge</b> <<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Looks nice, but it has broken the double click to recenter.<br><br>-Steve<br><br>Brent Pedersen wrote:<br>> hi,<br>> the new updates to kaMap are looking great, thanks all!<br>><br>> the main issue i hear from users of kaMap is that it's not intuitive to
<br>> switch between navigate and query mode (darned google maps!).<br>> so i added a check in kaNavigator. if the mouseup event occurs near a<br>> mousedown event (within 3 pixels, but easily changed), assume its a
<br>> query, and send the coords to the myQuery function. else the mouseup and<br>> mousedown events are far apart, it must be a drag, so carry on as usual.<br>> obviously this only works for point queries, but it avoids turning
<br>> kaNavigator on and off to do simple queries.<br>><br>> it only requires one extra line in startUp.js:<br>><br>> myKaNavigator.setAutoQuery(1,myQuery);<br>><br>> where myQuery is the function that is called if the mouseup/down are
<br>> near. if that function is not called or it is recalled with 0, the<br>> kaMap navigation will behave as before.<br>><br>> a working example (with the default alert() in myQuery) and the modified<br>>
kaTool.js are currently at:<br>><br>> <a href="http://mul-115-1.cnr.berkeley.edu/fire/geoFRAP/map/htdocs/">http://mul-115-1.cnr.berkeley.edu/fire/geoFRAP/map/htdocs/</a><br>><br>> may be useful.<br>> -brent
<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">
ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br><br>_______________________________________________
<br>ka-Map-users mailing list<br><a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br></blockquote></div><br>