Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Created March 24, 2022 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmoreira/99e6f12cc7b69c2198daebe5b1b86aad to your computer and use it in GitHub Desktop.
Save carmoreira/99e6f12cc7b69c2198daebe5b1b86aad to your computer and use it in GitHub Desktop.
Adding drop shadow to grouped entries in Interactive Geo Maps
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