javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
481 stars 29 forks source link

Provide export from polygon to geojson #337

Closed chabad360 closed 1 year ago

chabad360 commented 1 year ago

leaflet has the ability to convert any shape as a geojson (using .toGeoJSON). It would be really helpful if we could draw shapes and then export them as geojson so they can be actually useful.

I've been trying to figure out if there is a way that I can do this via the console, but I've not been able to figure it out.

sigrunixia commented 1 year ago

This was implemented in https://github.com/javalent/obsidian-leaflet/commit/ea165cca2fa3e8e49bcdd0b41fa191c32c36ea3a