erdem / django-map-widgets

Highly customizable, intuitive, and user-friendly map widgets for GeoDjango applications.
MIT License
450 stars 119 forks source link

PolygonField not implemented #27

Open sebitoelcheater opened 7 years ago

sebitoelcheater commented 7 years ago

Please consider implementing a widgets.PolygonFieldInlineWidgetMixin

erdem commented 7 years ago

Hi @sebitoelcheater

I am considering to implement Polygon widget at the moment, but I am not sure when I can start to implement. It may come in next release.

Thanks.

jhotujec commented 7 years ago

+1 for the polygon widget

ryanuc commented 6 years ago

Another +1 for the polygon widget - would you consider funded development?

erdem commented 6 years ago

Sorry for late reply guys. I had been quite busy last a couple months. I can't look this project for a while.

I want to add the polygon map widget, but I need to fix some bugs first. A static polygon map widget will be in next release, but I can't say the same for google map integrated widget.

@ryanuc I never thought funded development for this project but sounds good. You can contact me at github@erdemozkol.com.

Thanks.

camara90100 commented 6 years ago

+1 for the polygon widget

erdem commented 6 years ago

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 couldn't spare 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 getting a PR.

Thanks.

RamizSami commented 4 years ago

+1 for the polygon widget

aksharahegde commented 1 year ago

Added Polygon and Polyline widgets for Django Admin.

Polygon Widget: Supports drawing and rendering of django.contrib.gis.geos.Polygon

Polyline Widget: To render django.contrib.gis.geos.MultiLineString

django-map-widgets

P.S.

  1. Supports only Google Maps as of now.
  2. Set WIDGET_MAP_CENTER in mapwidgets/static/mapwidgets/js/map_helper.js based on your region as default center.
mcosti commented 1 year ago

Hey @aksharahegde, great work with adding it.

I've worked a bit to make your code actually work here: https://github.com/mcosti/django-map-widgets

Feel free to merge it into your own fork.

Using your library, you cannot load multiple maps on the same page. Personally, I need a point widget and a (multi) polygon widget.

You've done some great work so far, I wish I could contribute more to it, but I don't have the time. Do you think it would be difficult for you to fix that and also add support for multi polygon?

erdem commented 1 year ago

@mcosti Thank you for your contribution! I am on vacation at the moment, will look into your work as soon as I am available and will update the thread.

Thanks again.

erdem commented 1 year ago

Sorry for the confusion in my previous response, I misunderstood the intention behind @mcosti's post.

@aksharahegde, I am glad to see a polygon widget in one of the forks of this project. However, it is not ready to be included in the upcoming release as some key functionalities are still missing, such as the ability to draw a polygon area on the map. If you continue to work on the polygon widget, please let us know.

I haven't given up on the project yet. Implementing a fully functional polygon widget will require additional work along with the widget itself, but I will do my best to find a time to do it in the near future.

Thanks.

ajgumiran88 commented 7 months ago