Add map parameter to ol.LayerRenderer
This commit is contained in:
+16
-1
@@ -10,12 +10,19 @@ goog.require('ol.Object');
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.Object}
|
* @extends {ol.Object}
|
||||||
|
* @param {ol.Map} map Map.
|
||||||
* @param {ol.Layer} layer Layer.
|
* @param {ol.Layer} layer Layer.
|
||||||
*/
|
*/
|
||||||
ol.LayerRenderer = function(layer) {
|
ol.LayerRenderer = function(map, layer) {
|
||||||
|
|
||||||
goog.base(this);
|
goog.base(this);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
* @type {ol.Map}
|
||||||
|
*/
|
||||||
|
this.map_ = map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {ol.Layer}
|
* @type {ol.Layer}
|
||||||
@@ -42,6 +49,14 @@ ol.LayerRenderer.prototype.getLayer = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {ol.Map} Map.
|
||||||
|
*/
|
||||||
|
ol.LayerRenderer.prototype.getMap = function() {
|
||||||
|
return this.map_;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user