I have the following function:
var control = new OpenLayers.Control.ZoomToMaxExtent({ trigger: function(){ mapPanel.map.setCenter(new OpenLayers.LonLat(-75,-10).transform(new OpenLayers.Projection('EPSG:4326'),new OpenLayers.Projection('EPSG:900913')),5); }});and it works great in my toolbar, the only problem is that the icon does not go up when I press other icons, so I cannot use this control any longer until the website is reloaded. Other icons work great, though.
I use new GeoExt.Action to call this OL control. I already tried some options, e.g., allowDepress: false with no effect at all. I would like to do some debugging to track the error because my app is quite complex and it is difficult to post a simple example here for testing. I tried dragonfly (Opera) and firebug (FF) but I'm not sure where to look for errors. Console.log(control) shows that this controls works well.
أكثر...
var control = new OpenLayers.Control.ZoomToMaxExtent({ trigger: function(){ mapPanel.map.setCenter(new OpenLayers.LonLat(-75,-10).transform(new OpenLayers.Projection('EPSG:4326'),new OpenLayers.Projection('EPSG:900913')),5); }});and it works great in my toolbar, the only problem is that the icon does not go up when I press other icons, so I cannot use this control any longer until the website is reloaded. Other icons work great, though.
I use new GeoExt.Action to call this OL control. I already tried some options, e.g., allowDepress: false with no effect at all. I would like to do some debugging to track the error because my app is quite complex and it is difficult to post a simple example here for testing. I tried dragonfly (Opera) and firebug (FF) but I'm not sure where to look for errors. Console.log(control) shows that this controls works well.
أكثر...