Remove handleMapPostrender extension point

This commit is contained in:
Éric Lemoine
2013-08-31 23:25:08 +02:00
parent 96dfe5656d
commit 96ef1ed3bd
3 changed files with 2 additions and 11 deletions
-7
View File
@@ -15,13 +15,6 @@ var oli;
oli.control.Control = function() {}; oli.control.Control = function() {};
/**
* @param {ol.MapEvent} mapEvent Map event.
* @return {undefined} Undefined.
*/
oli.control.Control.prototype.handleMapPostrender = function(mapEvent) {};
/** /**
* @param {ol.Map} map Map. * @param {ol.Map} map Map.
* @return {undefined} Undefined. * @return {undefined} Undefined.
-1
View File
@@ -1,4 +1,3 @@
@exportClass ol.control.Control ol.control.ControlOptions @exportClass ol.control.Control ol.control.ControlOptions
@exportProperty ol.control.Control.prototype.handleMapPostrender
@exportProperty ol.control.Control.prototype.getMap @exportProperty ol.control.Control.prototype.getMap
@exportProperty ol.control.Control.prototype.setMap @exportProperty ol.control.Control.prototype.setMap
+2 -3
View File
@@ -77,7 +77,7 @@ ol.control.Control.prototype.getMap = function() {
* UI. * UI.
* @param {ol.MapEvent} mapEvent Map event. * @param {ol.MapEvent} mapEvent Map event.
*/ */
ol.control.Control.prototype.handleMapPostrender = function(mapEvent) {}; ol.control.Control.prototype.handleMapPostrender = goog.nullFunction;
/** /**
@@ -99,8 +99,7 @@ ol.control.Control.prototype.setMap = function(map) {
var target = goog.isDef(this.target_) ? var target = goog.isDef(this.target_) ?
this.target_ : map.getOverlayContainer(); this.target_ : map.getOverlayContainer();
goog.dom.appendChild(target, this.element); goog.dom.appendChild(target, this.element);
if (this.handleMapPostrender !== if (this.handleMapPostrender !== goog.nullFunction) {
ol.control.Control.prototype.handleMapPostrender) {
this.listenerKeys.push(goog.events.listen(map, this.listenerKeys.push(goog.events.listen(map,
ol.MapEventType.POSTRENDER, this.handleMapPostrender, false, this)); ol.MapEventType.POSTRENDER, this.handleMapPostrender, false, this));
} }