Pullups for 2.8 RC5:
Google Layer resizing (Closes #1797) SelectFeature default scope (Closes #2115) git-svn-id: http://svn.openlayers.org/branches/openlayers/2.8@9423 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -213,7 +213,7 @@ OpenLayers.Layer.Google = OpenLayers.Class(
|
||||
*/
|
||||
onMapResize: function() {
|
||||
// workaround for resizing of invisible or not yet fully loaded layers
|
||||
// where GMap2.checkResize() does not work. We need to load all tiles
|
||||
// where GMap2.checkResize() does not work. We need to load the GMap
|
||||
// for the old div size, then checkResize(), and then call
|
||||
// layer.moveTo() to trigger GMap.setCenter() (which will finish
|
||||
// the GMap initialization).
|
||||
@@ -222,7 +222,7 @@ OpenLayers.Layer.Google = OpenLayers.Class(
|
||||
} else {
|
||||
if(!this._resized) {
|
||||
var layer = this;
|
||||
var handle = GEvent.addListener(this.mapObject, "tilesloaded", function() {
|
||||
var handle = GEvent.addListener(this.mapObject, "load", function() {
|
||||
GEvent.removeListener(handle);
|
||||
delete layer._resized;
|
||||
layer.mapObject.checkResize();
|
||||
|
||||
Reference in New Issue
Block a user