Add map parameter to ol.LayerRenderer
This commit is contained in:
1 parent
669a83ff78
commit
8d9cee2ee1
1 file changed
+16
-1
+16
-1
@@ -10,12 +10,19 @@ goog.require('ol.Object');
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.Object}
|
||||
* @param {ol.Map} map Map.
|
||||
* @param {ol.Layer} layer Layer.
|
||||
*/
|
||||
ol.LayerRenderer = function(layer) {
|
||||
ol.LayerRenderer = function(map, layer) {
|
||||
|
||||
goog.base(this);
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.Map}
|
||||
*/
|
||||
this.map_ = map;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user