Add opacity property to ol.style.Image

This commit is contained in:
Frederic Junod
2014-02-13 11:09:46 +01:00
parent a734c8a6ff
commit 430ff9c850
3 changed files with 23 additions and 1 deletions
+6
View File
@@ -72,6 +72,11 @@ ol.style.Icon = function(opt_options) {
*/
this.size_ = goog.isDef(options.size) ? options.size : null;
/**
* @type {number}
*/
var opacity = goog.isDef(options.opacity) ? options.opacity : 1;
/**
* @type {number}
*/
@@ -83,6 +88,7 @@ ol.style.Icon = function(opt_options) {
var scale = goog.isDef(options.scale) ? options.scale : 1;
goog.base(this, {
opacity: opacity,
rotation: rotation,
scale: scale,
snapToPixel: undefined,