Add opacity property to ol.style.Image
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user