Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PolygonField not implemented #27

Open
sebitoelcheater opened this issue Jun 12, 2017 · 12 comments
Open

PolygonField not implemented #27

sebitoelcheater opened this issue Jun 12, 2017 · 12 comments
Assignees

Comments

@sebitoelcheater
Copy link

Please consider implementing a widgets.PolygonFieldInlineWidgetMixin

@erdem
Copy link
Owner

erdem commented Jun 13, 2017

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.

@erdem erdem closed this as completed Jun 13, 2017
@jhotujec
Copy link

+1 for the polygon widget

@erdem erdem reopened this Aug 18, 2017
@ryanuc
Copy link

ryanuc commented Jan 5, 2018

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

@erdem erdem self-assigned this Jan 25, 2018
@erdem
Copy link
Owner

erdem commented Jan 28, 2018

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 [email protected].

Thanks.

@camara90100
Copy link

+1 for the polygon widget

@erdem
Copy link
Owner

erdem commented Sep 8, 2018

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.

@erdem erdem closed this as completed Sep 8, 2018
@RamizSami
Copy link

RamizSami commented Apr 8, 2020

+1 for the polygon widget

@aksharahegde
Copy link

aksharahegde commented Dec 25, 2022

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
Copy link

mcosti commented Jan 9, 2023

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
Copy link
Owner

erdem commented Jan 19, 2023

@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
Copy link
Owner

erdem commented Feb 4, 2023

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
Copy link

  • 1 for polygon widget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants