django-leaflet icon indicating copy to clipboard operation
django-leaflet copied to clipboard

With the PointField widget, some way to add a point at a known (user-entered) lat,lng

Open stringfellow opened this issue 12 years ago • 5 comments

Sometimes, the user might know the lat, lng they want to enter on the map widget - it would be really good if this came with a built-in option to drop a point at that known location, and have it set the WKT textarea correctly.

stringfellow avatar Sep 07 '13 12:09 stringfellow

Good idea !

Since it can be achieved in pure JS, I guess we don't need to bother with some Django form fields.

leplatrem avatar Sep 07 '13 14:09 leplatrem

What about geocoding with Leaflet plugins? That wold be cool too.

lucacorti avatar Apr 20 '14 01:04 lucacorti

Since Leaflet fields are extensible, you can add custom controls and implement the behaviour you like ! Don't hesitate to propose pull-requests, I'll defintely have a look at them !

leplatrem avatar Apr 21 '14 13:04 leplatrem

Regarding forward and reverse geocoding, this plugin is pretty interesting. It supports both forward and reverse geocoding using various services. I just added in Mapbox API support.

https://github.com/lucacorti/leaflet-control-geocoder

lucacorti avatar Sep 05 '14 21:09 lucacorti

Thanks for the link :) As I said before, I can't invest much on extra-features, but would definitely review and merge pull-requests!

leplatrem avatar Sep 08 '14 10:09 leplatrem