Created
March 24, 2022 10:23
-
-
Save carmoreira/99e6f12cc7b69c2198daebe5b1b86aad to your computer and use it in GitHub Desktop.
Adding drop shadow to grouped entries in Interactive Geo Maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapID = 21169; // change with your map ID | |
let mapContainer = document.getElementById('map_' + mapID); | |
if(mapContainer){ | |
mapContainer.addEventListener('mapready',function(ev){ | |
iMaps.maps[mapID].series.forEach(function(serie){ | |
var filter = serie.filters.push(new am4core.DropShadowFilter()); | |
filter.color = am4core.color("#000000"); | |
filter.dx = 5; | |
filter.dy = 5; | |
filter.blur = 2; | |
filter.opacity = 0.5; | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment