[OpenLayers-Dev] NavToolbar control

Christopher Schmidt crschmidt at metacarta.com
Fri Sep 14 10:53:05 EDT 2007


On Fri, Sep 14, 2007 at 06:45:22AM -0700, jonz wrote:
> 
> Yes, I had seen the navtoolbar example and the behaviour is as I would like. 
> Unfortunately, and I couldn't figure out why, that's not exactly what
> happens with my map.
> 
> click on dragZoom
> click again on dragZoom
> Zooms in one level

It sounds like you're not stopping mousedown when the user clicks.

    OpenLayers.Event.observe(controls[i].panel_div, "mousedown",
                                  OpenLayers.Event.stop.bindAsEventListener());

is from Control.Panel and should fix it.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list