Open Worst45 opened 8 years ago
Hi, Need to change your code to var mapObject = $('#map').vectorMap('get', 'mapObject'); mapObject.clearSelectedRegions(); map.regions[code].element.config.style.selected.fill = = "#00FF00"; mapObject.setSelectedRegions(code);
where code = 'FR', for instance
Thanks @pjv03 worked for me.
Hello, Thanks for your great job.
Is there a way to change fill color after the map is initialized? (for example, in an ajax call)
I tried this, with no success: the color remain the same as in the object construction.
Best regards