koumoul-dev / vuetify-jsonschema-form

Create beautiful and low-effort forms that output valid data. Published on npm as @koumoul/vjsf.
https://koumoul-dev.github.io/vuetify-jsonschema-form/latest/
MIT License
538 stars 154 forks source link

widget to create geometry #378

Open pvgenuchten opened 1 year ago

pvgenuchten commented 1 year ago

In our domain we often include a geometry as part of a data object (for example as part of geojson). it would be interesting to have a widget which allows to draw such a geometry.

Such a widget would consist of an interactive map viewer with draw functionality. A common library for maps is leafletjs. Various drawing modules exist, for example this one: https://leaflet.github.io/Leaflet.Editable/example/index.html

Results of drawing could be stored as:

Is this of interest to the group?

albanm commented 1 year ago

Yes this is interesting. It is one of the things that I intended to do someday or another. If someone else does it that's great !

Personally I did not use leaflet for a long time, I tend to use maplibre.

This might not necessarily be submitted as a pull request, instead it can be a wrapper component compatible to be included in vjsf in a slot.

pvgenuchten commented 1 year ago

I have not looked at maplibre much yet, but indeed is also an option

I’ll check the slot docs, good suggestion