[OpenLayers-Users] NavToolbar breaks other controls?
Xavier Mamano (jorix)
xavier.mamano at gmail.com
Fri Nov 9 15:35:01 PST 2012
Hi,
After `var control = ...;` try add this:
panel.controls[0].events.on({
activate:function(){
control.box.deactivate();
control.box.activate();
}
});
panel.controls[1].events.on({
activate:function(){
control.box.deactivate();
control.box.activate();
}
});
You need to activate `control.box` after Navigation & ZoomBox controls on
NavToolbar (panel.controls[0 and 1])
NOTE: When starting the page `control.box` is the latest to be activated, so
it works, but after use ZoomBox on NavToolbar `control.box` is not the last
activated.
Xavier Mamano
dnbphysicist wrote
> Hey all, I have a simple map with some controls, namely, an
> OpenLayers.Control.NavToolbar and another control which basically allows
> capturing of a box being drawn by holding down alt. When the pan / zoom is
> toggled on the map the latter of the two becomes 'broken' and no longer
> works. Is this a bug, or does this make sense and I'm just missing
> something? Thanks in advance! Below is the JavaScript and HTML.
>
> _______________________________________________
> Users mailing list
> Users at .osgeo
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/NavToolbar-breaks-other-controls-tp5014981p5015285.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list