Been stuck on this for quite a while. I have an amcharts5 map in which I want to pre-zoom to a specific country and set it's state to active.
The zoom part was easy - polygonSeries.zoomToDataItem()
But I can't seem to understand how to set the state to active, in amchart4 it was straightforward (https://www.amcharts.com/docs/v4/tutorials/pre-zooming-map-to-a-country/#Highlighting_selected_country), but in amcharts5 ..
Thanks
Got it!!!
polygonSeries.mapPolygons.template._entities[9].set("active", true)
9 - index of country