dom layer renderer - support opacity and visibility change
This commit is contained in:
@@ -51,6 +51,22 @@ ol.dom.LayerRenderer.prototype.setOrigin = function(origin) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.dom.LayerRenderer.prototype.handleLayerOpacityChange = function() {
|
||||
goog.style.setOpacity(this.target, this.layer_.getOpacity());
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.dom.LayerRenderer.prototype.handleLayerVisibleChange = function() {
|
||||
goog.style.showElement(this.target, this.layer_.getVisible());
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
ol.dom.LayerRenderer.prototype.redraw = goog.abstractMethod;
|
||||
|
||||
Reference in New Issue
Block a user