Color Geojson Leaflet map

Hello dear Obsidian Community

I’m stuck with the Leaflet Plugin for Obsidian, currently I’m planning a trip to Morocco, and instead of Polylines, I’d wish to use Geojson of the trains that we will take.


But I have no idea how to format it, change the width of the stroke or the opacity. I tried to add the map box style references - how to start and where to begin.

geojsonColor: HEXcode
in the leaflet parameters results in the map not rendering.

stroke-width: 2
according the Mapbox SimpleStyle should change the stroke, it has no effect.

Does anyone have an example how to format the style for rendering a Geojson differently in Leaflet Obsidan?

Thanks so much❗️
All the best
Félix

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.