Add color option to ol.style.Icon

This commit is contained in:
Alexandre Brault
2015-11-18 22:11:50 -05:00
parent a34c0e262b
commit c0b6eac0c2
4 changed files with 93 additions and 20 deletions

View File

@@ -2,6 +2,7 @@ goog.require('ol.Feature');
goog.require('ol.Map');
goog.require('ol.Overlay');
goog.require('ol.View');
goog.require('ol.color');
goog.require('ol.geom.Point');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
@@ -23,6 +24,7 @@ var iconStyle = new ol.style.Style({
anchor: [0.5, 46],
anchorXUnits: 'fraction',
anchorYUnits: 'pixels',
color: ol.color.asArray('#8959A8'),
opacity: 0.75,
src: 'data/icon.png'
}))