Wrap setOpacity to make it IE7-8 compatible

This commit is contained in:
Austin Hyde
2014-01-24 10:21:38 -05:00
parent e16de6f8af
commit b0849cc85c
2 changed files with 49 additions and 2 deletions

View File

@@ -236,7 +236,7 @@ ol.renderer.dom.TileLayer.prototype.prepareFrame =
}
if (layerState.opacity != this.renderedOpacity_) {
goog.style.setOpacity(this.target, layerState.opacity);
ol.dom.setOpacity(this.target, layerState.opacity);
this.renderedOpacity_ = layerState.opacity;
}