[OpenLayers-Users] Both single and double clicks on a map

Eric Lemoine eric.c2c at gmail.com
Mon Oct 20 15:58:50 EDT 2008


Yes, use Handler.Click. There is a usage example in OpenLayers'
examples dir. Eric

2008/10/20, Greg Ederer <greg at ergonosis.com>:
> Hi,
>
> Double clicking on a map zooms, which is a nice built-in.  I have also
> registered a click event handler on a map, like so:
>
>   map.events.register('click', map, function (e) {
>     ...
>   }
>
> The trouble is that when a user double clicks, both the click and double
> click handlers get called.  Is there a way to cancel the click behavior
> when a double click occurs?
>
> Thanks!
>
> Greg
>
> --
> | E R G O N O S I S
> | Greg Ederer
> | Lead Developer
> | greg at ergonosis.com
> | 360.774.6848
> |
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list