File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ goog.require('ol.Feature');
2
2
goog . require ( 'ol.Map' ) ;
3
3
goog . require ( 'ol.Overlay' ) ;
4
4
goog . require ( 'ol.View' ) ;
5
- goog . require ( 'ol.color' ) ;
6
5
goog . require ( 'ol.geom.Point' ) ;
7
6
goog . require ( 'ol.layer.Tile' ) ;
8
7
goog . require ( 'ol.layer.Vector' ) ;
@@ -24,7 +23,7 @@ var iconStyle = new ol.style.Style({
24
23
anchor : [ 0.5 , 46 ] ,
25
24
anchorXUnits : 'fraction' ,
26
25
anchorYUnits : 'pixels' ,
27
- color : ol . color . asArray ( '#8959A8' ) ,
26
+ color : '#8959A8' ,
28
27
opacity : 0.75 ,
29
28
src : 'data/icon.png'
30
29
} ) )
Original file line number Diff line number Diff line change @@ -6040,7 +6040,7 @@ olx.style.FillOptions.prototype.color;
6040
6040
* anchorOrigin: (ol.style.IconOrigin|undefined),
6041
6041
* anchorXUnits: (ol.style.IconAnchorUnits|undefined),
6042
6042
* anchorYUnits: (ol.style.IconAnchorUnits|undefined),
6043
- * color: (ol.Color|undefined),
6043
+ * color: (ol.Color|string| undefined),
6044
6044
* crossOrigin: (null|string|undefined),
6045
6045
* img: (Image|HTMLCanvasElement|undefined),
6046
6046
* offset: (Array.<number>|undefined),
@@ -6097,7 +6097,7 @@ olx.style.IconOptions.prototype.anchorYUnits;
6097
6097
6098
6098
/**
6099
6099
* Color to tint the icon. If not specified, the icon will be left as is.
6100
- * @type {ol.Color|undefined }
6100
+ * @type {ol.Color|string| undefined }
6101
6101
* @api
6102
6102
*/
6103
6103
olx . style . IconOptions . prototype . color ;
Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ ol.style.Icon = function(opt_options) {
129
129
/**
130
130
* @type {ol.Color }
131
131
*/
132
- var color = options . color !== undefined ? options . color : null ;
132
+ var color = options . color !== undefined ? ol . color . asArray ( options . color ) :
133
+ null ;
133
134
134
135
/**
135
136
* @private
You can’t perform that action at this time.
0 commit comments