[ka-Map-users] auto query

Brent Pedersen bpederse at gmail.com
Tue Jan 10 00:14:20 EST 2006


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??


On 1/9/06, Stephen Woodbridge <woodbri at swoodbridge.com> wrote:
>
> Looks nice, but it has broken the double click to recenter.
>
> -Steve
>
> Brent Pedersen wrote:
> > hi,
> > the new updates to kaMap are looking great, thanks all!
> >
> > the main issue i hear from users of kaMap is that it's not intuitive to
> > switch between navigate and query mode (darned google maps!).
> > so i added a check in kaNavigator.  if the mouseup event occurs near a
> > mousedown event (within 3 pixels, but easily changed), assume its a
> > query, and send the coords to the myQuery function. else the mouseup and
> > mousedown events are far apart, it must be a drag, so carry on as usual.
> > obviously this only works for point queries, but it avoids turning
> > kaNavigator on and off to do simple queries.
> >
> > it only requires one extra line in startUp.js:
> >
> > myKaNavigator.setAutoQuery(1,myQuery);
> >
> > where myQuery is the function that is called if the mouseup/down are
> > near.  if that function is not called or it is recalled with 0, the
> > kaMap navigation will behave as before.
> >
> > a working example (with the default alert() in myQuery) and the modified
> > kaTool.js are currently at:
> >
> > http://mul-115-1.cnr.berkeley.edu/fire/geoFRAP/map/htdocs/
> >
> > may be useful.
> > -brent
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > ka-Map-users mailing list
> > ka-Map-users at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/ka-map-users
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20060109/e5ea9884/attachment.html


More information about the ka-Map-users mailing list