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

Greg Ederer greg at ergonosis.com
Mon Oct 20 15:55:04 EDT 2008


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
|




More information about the Users mailing list