Closed pkocak closed 3 years ago
In the upcoming major release of 1.0.0
it will be possible due to the new unified format of maps:
const ref = useRef(null);
<VectorMap mapRef={ref}
onRegionClick={(event, code) => {
console.log(ref.current.getRegionName(code));
}}
...
/>
Is there a way to obtain not only country codes but countries' full names as well in world map when onRegionClicked or onRegionSelected?