Externalize Control.handleMapPostrender

This commit is contained in:
Éric Lemoine
2013-05-09 23:23:54 +02:00
parent c845682ecb
commit 88352092ee
3 changed files with 11 additions and 0 deletions

View File

@@ -14,6 +14,13 @@ var oli;
*/
oli.control.Control = function() {};
/**
* @param {ol.MapEvent} mapEvent Map event.
*/
oli.control.Control.prototype.handleMapPostrender = function(mapEvent) {};
/**
* @param {ol.Map} map Map.
* @return {undefined} Undefined.

View File

@@ -1,3 +1,4 @@
@exportClass ol.control.Control ol.control.ControlOptions
@exportProperty ol.control.Control.prototype.handleMapPostrender
@exportProperty ol.control.Control.prototype.getMap
@exportProperty ol.control.Control.prototype.setMap

View File

@@ -71,6 +71,9 @@ ol.control.Control.prototype.getMap = function() {
/**
* Function called on each map render. Executes in a requestAnimationFrame
* callback. Can be implemented in sub-classes to re-render the control's
* UI.
* @param {ol.MapEvent} mapEvent Map event.
*/
ol.control.Control.prototype.handleMapPostrender = goog.nullFunction;