[OpenLayers-Users] Turn off Double Click to Zoom

Christian López Espínola penyaskito at gmail.com
Mon Oct 1 19:11:14 EDT 2007


This is done in the control MouseDefaults which is added to a map by
default if you don't assign the controls on the map constructor.
I can' test it right now, but I think that an ugly hack for disabling it can be

MouseDefaults.defaultDblClick: function (evt) {
}

after including OpenLayers and before placing your code.

Hope this helps


On 10/1/07, Jeffrey Johnson <ortelius at gmail.com> wrote:
> Hi all, is there a quick/easy way to disable double-click zoom on an
> open layers control?
>
> Thanks,
>
> Jeff
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


-- 
Regards,

Christian López Espínola


More information about the Users mailing list