Display Spatial data using Leaflet and GeoDjango

preview_player
Показать описание
This tutorial demonstrates the ways of loading spatial data from GeoDjango models into a Leaflet map and also writing custom templates. It also uses the leaflet libraries that exist in Django-leaflet (Leaflet and GeoDjango) module to render and display maps on a template in Django.
Using GeoJSONLayerView, data is loaded from a model and mapped to a URL which is then used in leaflet to load the data into the map.
This method is used for all the three types of GIS data (Point, Line and Polygons)
Рекомендации по теме
Комментарии
Автор

Awesome tutorial for my start in geodjango

BenardRodgersOnyango
Автор

Is it possible to give the navigation from source to destination location?? with this map

rojaranip
Автор

Thank you for this helpful video, but I have the problem of offset polygons..
How can I change the SRID value of leaflet, I tried to put 'SRID' = 4326, in Leaflet_config but it doesn't change anything

soukaynabelghitialaoui
Автор

How can i display tiff files in geodjango & leaflet .Any libs ??

vishalforcode
Автор

Hi how do i load the data into json data containing lats and longs so that i cn use it? without using pgadmin am using ubuntu linux 20.04

ratemomishael
Автор

thanks for the video, but when i type the javascript code it gives me an error : $.getJSON is not a function. any idea what would be the problem?

mouadmaaziz
Автор

Do you have the sample code available in github?

sangsaik
Автор

How to convert latlong in reverse in geojson

dgiri
Автор

how to add django_leafleat admin setings wms tiles

dgiri
Автор

what is I wanna show only one point based on id?

LucaMoiana
Автор

ANyone who has an issue in solving this issue in Leaflet, let me know.

WanjohiKibui
Автор

Tambien se podria hacer
views.py
from djgeojson.views import GeoJSONLayerView
class MapaLayer(GeoJSONLayerView):
properties = properties=('nmg', 'nombredept', 'dane')
model = Municipio

urls.py
from .views import MapaLayer
path('datos/', MapaLayer.as_view(), name='datos'),

sbas
join shbcf.ru