Replies: 2 comments
-
Sorry for the late reply. Yes I am very much interested into such a widget and this is on my long term todo list. I haven't had any time to look at your code yet. The widget I wanted to build myself should be named The implementation should work such that, one can add a I also would rather go with OpenLayers instead of Leaflet. Many years ago I implemented a MultiPloygon editor based on Leaflet, but my experience was not very satisfying. If you want, we can schedule a Google Meet in order to chat about this feature. Many thanks for your effort. |
Beta Was this translation helpful? Give feedback.
-
Hello Jacob, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I would like to propose an extension to the geospatial functionality in
django-formset
by adding a map field to a form that supports client-side validation. The implementation is already underway, and I hope that the developed solution can eventually be integrated intodjango-formset
.The approach is to extend the existing
LeafletWidget
fromdjango-leaflet
by adding functionality that enables client-side validation of the geometry drawn on the map. This results in a new widget that can be embedded into Django forms. Its basic behavior is modeled after that of given input fields.The new widget can also be used within collections and is compatible with geometry fields — as shown in the attached screencast.
You can find the current implementation here:
👉 https://github.com/TreffN/django-formset/tree/GeoWidgets
I would appreciate your feedback on the concept. Do you think this would be a suitable candidate for inclusion in
django-formset
?Best regards,
Noémie Treff
Beta Was this translation helpful? Give feedback.
All reactions