Django & Folium - Displaying Maps of Database Data in Django Apps

Описание к видео Django & Folium - Displaying Maps of Database Data in Django Apps

In this video, we use Folium to create maps and use Django to fetch data from the database and plot that geographical data as markers on the map.

We show how to convert the Folium Map object to an HTML representation with the _repr_html_() function, and display the map in our Django template.

We also see how to add popups and clusters to the map, as well as how to filter which markers are shown using Django ORM operations.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:51 Setting up the Django project
02:26 Fetching records with longitude and latitude from the database
03:42 Creating a Folium map and adding markers
07:54 Clustering markers with the FastMarkerCluster
11:23 Filtering markers using Django ORM operations (filter, exclude, aggregate)

▶️ Full Playlist:
   • Geospatial Python  

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://www.bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/django...
🐦 Twitter:   / bugbytesio  

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Starter Code: https://github.com/bugbytes-io/django...
Dataset: https://catalog.data.gov/dataset/elec...
Folium: https://python-visualization.github.i...
FastMarkerCluster: https://python-visualization.github.i...

#python #django #gis #mapping #datascience

Комментарии

Информация по комментариям в разработке