Add a removePreRenderFunction method to ol.Map

This will remove the pre-render function from preRenderFunctions_ array if
found.
This commit is contained in:
Bruno Binet
2013-01-29 12:56:15 +01:00
parent 7d0b4c757e
commit d54864695d

View File

@@ -326,6 +326,15 @@ ol.Map.prototype.addPreRenderFunctions = function(preRenderFunctions) {
};
/**
* @param {ol.PreRenderFunction} preRenderFunction Pre-render function.
* @return {boolean} Whether the preRenderFunction has been found and removed.
*/
ol.Map.prototype.removePreRenderFunction = function(preRenderFunction) {
return goog.array.remove(this.preRenderFunctions_, preRenderFunction);
};
/**
*
* @inheritDoc