I'm just wondering, what is the name of the polygon field in the django-map-widgets module for GeoDjango and whether it supports drawing polygons?
1 Answers
Sadly there is not a polygon widget implemented for django-map-widgets.
And judging from this issue back from 2017: https://github.com/erdem/django-map-widgets/issues/27 where the author wrote:
Hi All
Unfournetly, I will not implement the polygon widget in the short term. I did some bug fixes and just released a new version, but I didn't catch time to implement new widgets.
If anyone like to send a PR for Polygon Widget, I'm happy to help. I am closing the ticket until I have a PR.
Thanks.
There will not be one in the foreseeable future.
You can instead use something like django-floppyforms which has a satisfying amount of GeoDjango widget and good documentation on how to use them: https://django-floppyforms.readthedocs.io/en/latest/geodjango.html
Or (my personal favorite): django-leaflet

- 1
- 1

- 22,254
- 11
- 68
- 112
-
1Hey @kiwis, I was wondering, did you find this answer helpful? – John Moutafis Apr 16 '19 at 19:23