Merge pull request #4457 from alexbrault/colour-icon

Add color option to ol.style.Icon
This commit is contained in:
Andreas Hocevar
2016-01-10 23:19:54 +01:00
4 changed files with 93 additions and 20 deletions

View File

@@ -23,6 +23,7 @@ var iconStyle = new ol.style.Style({
anchor: [0.5, 46],
anchorXUnits: 'fraction',
anchorYUnits: 'pixels',
color: '#8959A8',
opacity: 0.75,
src: 'data/icon.png'
}))