Questions tagged [django-leaflet]
38 questions
0
votes
2 answers
Display relation (trail) in leaflet
All,
When I go to this url: OpenStreetMap, I see a map with a "relation" (I assume this is the term for the trail being displayed) on top.
I am trying to get this trail to also display on my Django website, where I am using django-leaflet.
At the…

Freek
- 1,097
- 2
- 12
- 30
0
votes
1 answer
How to set bounds to django leaflet map?
In my django app I have a CenterModel with a location (Point) field and a RouteModel with a geom (Linestring) field. I am using django-leaflet to represent those geometric fields in the views (UI). I can represent those fields, but in the general…

Ernesto Ruiz
- 736
- 9
- 31
0
votes
1 answer
How to represent Geodjango model in a django-leaflet leaflet map?
In my django app I am using Geodjango, django-leaflet and leaflet-ajax. I have a route model with a LineStringField. I want to render that route in a template using a leaflet map. I have tried the following code with other models (those that have a…

Ernesto Ruiz
- 736
- 9
- 31
0
votes
2 answers
How to add ''draw a marker" Control to leaflet Map and capture event?
I want to create a map with leaflet and give the user the opportunity to add a marker to that map from the user interface. The user shuld mark a point(market to th map). Then when the point is set I want to get the location (coordinates) of that…

Ernesto Ruiz
- 736
- 9
- 31
0
votes
1 answer
Uncaught TypeError: L.GeometryField is not a constructor django-leaflet
I am trying to post a geolocation to postgres database on Django-leaflet. I encounter Uncaught TypeError:L.GeometryField is not a constructor. I am using ajax