Support alpha channel for icon tinting

This commit is contained in:
Maximilian Krög
2020-03-28 16:39:50 +01:00
parent 38ecaa9814
commit 558b3a3ed2
2 changed files with 5 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ rome.setStyle(
london.setStyle(
new Style({
image: new Icon({
color: '#4271AE',
color: 'rgba(255, 0, 0, .5)',
crossOrigin: 'anonymous',
src: 'data/bigdot.png',
scale: 0.2,