[OpenLayers-Users] How to prevent overview map update while overview
control is minimized
Franz Buchinger
fbuchinger at gmail.com
Tue Jul 5 09:57:30 EDT 2011
Hi,
as a performance improvement I want to prevent the overview map from
updating when it is closed. My approach is to redefine the
isSuitableOverview method when the control is closed or opened. However,
this doesn't work as expected, as no overview control at all is shown.
Any ideas?
OpenLayers.Control.MyOverviewMap =
OpenLayers.Class(OpenLayers.Control.OverviewMap, {
//refresh overview map with every map request
isSuitableOverview: function() {
return true;
},
minimizeControl: function (){
//do not update overview map when it is minimized
this.isSuitableOverview = function (){
return true;
}
},
maximizeControl: function (){
//update overview map when it is maximized
this.isSuitableOverview = function (){
return false;
}
});
Franz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110705/f9c62ab6/attachment.html
More information about the Users
mailing list