Add ol.control.MousePosition.getProjection

This commit is contained in:
Frederic Junod
2013-06-18 11:20:19 +02:00
parent 916dde0045
commit f99fd26386
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
@exportClass ol.control.MousePosition ol.control.MousePositionOptions
@exportProperty ol.control.MousePosition.prototype.setMap
@exportProperty ol.control.MousePosition.prototype.getProjection
@exportProperty ol.control.MousePosition.prototype.setProjection

View File

@@ -117,6 +117,14 @@ ol.control.MousePosition.prototype.handleMapPostrender = function(mapEvent) {
};
/**
* @return {ol.Projection} projection.
*/
ol.control.MousePosition.prototype.getProjection = function() {
return this.projection_;
};
/**
* @param {goog.events.BrowserEvent} browserEvent Browser event.
* @protected