Set ol.style.Icon opacity
This commit is contained in:
@@ -23,6 +23,7 @@ var iconStyle = new ol.style.Style({
|
|||||||
anchor: [0.5, 46],
|
anchor: [0.5, 46],
|
||||||
anchorXUnits: 'fraction',
|
anchorXUnits: 'fraction',
|
||||||
anchorYUnits: 'pixels',
|
anchorYUnits: 'pixels',
|
||||||
|
opacity: 0.75,
|
||||||
src: 'data/icon.png'
|
src: 'data/icon.png'
|
||||||
}))
|
}))
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user