[LeafletJS - Reactive] Polygon highlight on click
Forge component by Vincent Koning
Application Type
Reactive
Service Studio Version
11.12.2 (Build 49949)
Platform Version
11.13.1 (Build 31652)

Hello Expert,


In my map I have multiple polygons. I have implemented the on-click event on Polygon to show the polygon Name which is coming from API data. Now I have requirement to highlight the polygon with dash (-) on it's boundry .


Regards,

Ghanashyam

Hi Ghanashyam,

This is currently not a part of the Leaflet Reactive JS component as this is very customizable and the default implementation will probably not fit your needs. But it can be done and it's not that hard to do and you can probably use several available actions for this already. There is a great guide here that shows you how to do this yourself via JavaScript. https://leafletjs.com/examples/choropleth/

Hope this helps,

Vincent

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.