jekyll-leaflet icon indicating copy to clipboard operation
jekyll-leaflet copied to clipboard

Add id to GeoJson

Open hadrienlemaire opened this issue 2 years ago • 0 comments

Hi,

In order to change the color of a specific trace, I've added few lines to add an id attribute to the <path> tag of each GeoJson object. Basically, if an id key is present inside the properties object of the GeoJson, its content will be used to create the id attribute on the map. Otherwise, nothing is done. It works just like the popup text and link.

hadrienlemaire avatar Aug 28 '22 14:08 hadrienlemaire