Jeroen Roos
2009-Apr-12 20:41 UTC
[Mapstraction] Adding an eventhandler for click, but still be able to zoom in with doubleclick
Hello all,
I am using Mapstraction in Zoph (http://www.zoph.org), and although it
works very well (thanks to all for their efforts!), I am running into
one little problem:
On one page, I am allowing a user to add / edit a marker on a page, by
clicking on the map. I do this by adding an eventhandler:
mapstraction.addEventListener(''click'', clickmap);
However, this causes zooming in by doubleclicking to stop working. I
have seen pages (Googlemaps itself, for example) where this still works,
also, Javascript has seperate events for click and doubleclick, so I
guess it should be possible to determine the difference between clicking
on the map (to add a marker) and doubleclicking (to zoom in and
recenter), but I cannot figure out how to do this with Mapstraction...
any hints?
Thanks,
Jeroen
