[OpenLayers-Trac] Re: [OpenLayers] #3475: Google base layer not
showing when switching base layers
OpenLayers
trac-20090302 at openlayers.org
Wed Aug 31 11:39:31 EDT 2011
#3475: Google base layer not showing when switching base layers
------------------------------+---------------------------------------------
Reporter: guendhoer | Owner:
Type: bug | Status: reopened
Priority: major | Milestone: 2.11 Release
Component: Layer.Google.v3 | Version: 2.11 RC3
Resolution: | Keywords:
State: Needs More Work |
------------------------------+---------------------------------------------
Comment(by bartvde):
I just did a diff between 2.10 and 2.11 and am suspicious about the
following change: resized was previously stored on the layer object, now
on the shared cache:
{{{
@@ -181,16 +162,15 @@
if (this.visibility) {
google.maps.event.trigger(this.mapObject, "resize");
} else {
- var cache = OpenLayers.Layer.Google.cache[this.map.id];
- if (!cache.resized) {
+ if (!this._resized) {
var layer = this;
google.maps.event.addListenerOnce(this.mapObject,
"tilesloaded", function() {
+ delete layer._resized;
google.maps.event.trigger(layer.mapObject, "resize");
layer.moveTo(layer.map.getCenter(),
layer.map.getZoom());
- delete cache.resized;
});
}
- cache.resized = true;
+ this._resized = true;
}
},
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/3475#comment:21>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list