Make map handle size changes

This commit is contained in:
Éric Lemoine
2013-01-24 22:06:47 +01:00
parent 71a462cd54
commit 15898b559b
3 changed files with 11 additions and 22 deletions

View File

@@ -58,11 +58,7 @@ ol.renderer.Map = function(container, map) {
goog.events.listen(
map, ol.Object.getChangedEventType(ol.MapProperty.LAYERS),
this.handleLayersChanged, false, this),
goog.events.listen(
map, ol.Object.getChangedEventType(ol.MapProperty.SIZE),
this.handleSizeChanged, false, this)
this.handleLayersChanged, false, this)
];
};
@@ -210,14 +206,6 @@ ol.renderer.Map.prototype.handleLayersRemove = function(collectionEvent) {
};
/**
* @protected
*/
ol.renderer.Map.prototype.handleSizeChanged = function() {
this.getMap().render();
};
/**
* @param {ol.layer.Layer} layer Layer.
* @protected