Add map parameter to ol.LayerRenderer
This commit is contained in:
@@ -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