Questions tagged [django-leaflet]

38 questions
0
votes
1 answer

Display on a map objects matching a queryset with Django

I have a Django app, where each user can add a product with multiple possible metrics (width, height and length combination). A user must also specify in which city this product is located. Users can also search within the database all products…
ThOmOrOw
  • 1
  • 2
0
votes
1 answer

How to create several instances of django-leaflet with for loop?

I want to create several instances of django-leaflet map with for loop and provide different lat and lon for each of them. Just to mention; every sportclub object has a location field which is PointField simply I want to have something like this but…
amir farsad
  • 75
  • 1
  • 1
  • 8
0
votes
1 answer

"How to load map using leaflet in templates? "

It works in ![django default admin site form] (https://i.stack.imgur.com/RqIWN.jpg) but not on . i tried passing attributes on leafletwidget, load leaflet_tags . it's not working or as i am new, could't use them properly. create.html {% extends…
Rudra
  • 223
  • 2
  • 13
0
votes
0 answers

leaflet_map not working when used in a extended template django

I am using django-leaflet to display on my website and It works fine and displays the map on browser when I include the leaflet_map in the base template but when I use leaflet_map on a template that extends that base template then map doesn't appear…
0
votes
1 answer

how to add leaflet-geosearch control in django admin

beginner in programming, for a django(2.1) project i have added a leaflet-geosearch control on a map. It works fine but my need is to have this control in admin(LeafletGeoAdmin). I absolutely don't know how to do that. Thanks to anyone who can help…
Meumeu
  • 1
  • 3
0
votes
1 answer

How to Create a UpdateForm with TemplateView?

I need to create a UpdateForm with a TemplateView. Why with TemplateView? Because, I has a attribute what is geo_location, and I'm using LeafLet maps, and LeafLet maps doesn't work with generic.UpdateView or others the same type. Here my views from…
0
votes
1 answer

Django leaflet canvas

How to make django-leaflet render with canvas? I checked on leaflet documentation that it should use preferCanvas but there are no manual in django leaflet that shows how to do it, while var map are hidden somewhere... Any clue
Rikudo Pain
  • 441
  • 9
  • 22
0
votes
2 answers

django-leaflet: How can you add layer controls to the controlLayer for the Tiles created in settings.py?

I have map tile layers configured in my settings.py and they properly appear and work. When my site is loaded, I am also getting data to add two layers to the map and I also add them to a controlLayer. controlLayers.addOverlay(restaurantMarkers,…
Patrick
  • 2,044
  • 1
  • 25
  • 44
1 2
3