1

i'm creating an angular project using the amcharts world map.

as you can see in this demo: https://www.amcharts.com/demos/selecting-multiple-areas-map/#code

we can select multiple countries, can someone guide me here and tell me where i can find all the selected countries (the list containing the countries names or their codes) ???

polygonTemplate.events.on("hit", function(ev) {
  console.log(ev.target);
});

1 Answers1

1

Maybe I'm late to the party, but you can do something like that

polygonSeries.mapPolygons.each(p => {
    if(p.isActive){
        //...your code...
    }
  })
ThiRoss
  • 135
  • 1
  • 12