Excellent video… there are a lot of interesting JS libraries out there with neat Django packages 😀 I use OSM on my mobile phone to track our walks, and can display them on my own Django site: you just place the route in an directly from OSM but you have to specify a height and width so it’s not very responsive. It would be great to learn how to plot an OSM route on a map with Folium.
@@bugbytes3923 Quick question (if you have time to answer ofcourse) you are talking about 'static maps' I assume this is because we render the html + javascript in the view. Can we also make a 'dynamic map'? So change some variables on the page and the results are shown live in de map? (without reloading the page) I've done this by just using only Javascript. Is this also possible somehow with Folium? Hope my question is clear, Thank you
Excellent video! Could you do a follow up that uses forms that would allow users to query the EV charging dataset? Possibly using htmx, folium, and Django.
Thank you! Interesting question. I'll do a follow up on this at some point later, but it's a bit more complicated to draw a route. However, there's a nice Python package called "osmnx" that can help with this and works with Folium. I'll look into making a video on this in the future.
Thank you very much for this great presentation, you saved me a lot of time. Please, how can I get a list of coordinates in a country of user's IP address. I want to be able to let user search for their preferred location base on their IP address for their country. Thanks
Do you have anything with django, folium, using the Draw to define selections and then being able to save the sections to a db and load them again and edit? Love your videos, they have been a big help.
Hi, I was wondering if it was possible to conditionally output differents icons based on a certain condition. Suppose we have different kind of charging station and we want to output differents icons for each types?
Hey - great question! Yes, you can indeed change the icon for your markers using Leaflet. The library's "L" object has an "Icon()" method to create an icon, and you can point to any source image you want (either online or on your server). You can then attach this icon when calling the L.marker() function. So you can imagine creating 2 or more icons, and depending on some condition, attaching the correct one as the marker. This page has more info: leafletjs.com/examples/custom-icons/
@@fernandtape9363 This kind of thing is more difficult with Folium - if you need lots of dynamic behaviour on a webpage, you're better going with Leaflet.
EXCELLENT BUT WHY YOU DONT USE PACK VARIABLES APPROCH ON LINES 15 AND 16 FOR REDUCING COMPLEXITY OF EXECUTION ??? FOR EXAMPLE DATA=[(STATION.LATITUDE, STATION.LONGITUDE) FOR STATION IN STATIONS]. BUT IS JUST A QUESTION I CAN DO WRONG APPROCH BUT I NEED EXPLANTION FOR MORE COMPREHENSION. THANKS AND I LIKE SO MUCH ALL VIDEOS YOU DO TO SHARE ALL NEW THINS ABOUT DJANGO.
Is there a way for a user to temporarily add a marker, either by getting the coordinates by searching an address, or by specifying the coordinates themselves?
It's possible to add markers this way, for sure. I can do a follow-up on this, but off the top of my head, there's a few ways it could be done, some of which I'll list below: 1. User enters address/location and sends to the server - the server geocodes and returns the coordinates for the marker which can then be placed on the map. 2. If a user specifies coordinates, these can be directly added to the map using JavaScript. 3. We can also add markers to the map when a user clicks an area of the map, using JavaScript and the 'click' event.
I spent 2 days getting Geodjango dependancies installed into my Django cookiecutter project and Docker. What a headache. I thought you needed gdal and leaflet and postgis.
This is amazing saved me weeks of work. Thank you 👏👏
Thanks, glad it can help!
Same here. Curious as to what you're building
Great tutorial as always. Thanks for the effort.
We are still waiting for the project about django and htmx.
Thank you!
от души, как раз то что нужно было для курсача)
Thank you!
awesome as always 🙂
Thanks!
Excellent video… there are a lot of interesting JS libraries out there with neat Django packages 😀 I use OSM on my mobile phone to track our walks, and can display them on my own Django site: you just place the route in an directly from OSM but you have to specify a height and width so it’s not very responsive. It would be great to learn how to plot an OSM route on a map with Folium.
very useful, thank you!
Cheers!
EXCELLENT video!!! well done!
Thanks a lot!
thank you bro!!, regards from Chile
Thank you and greetings from Scotland!
thnak you so much. you made my day.
Thank you!
@@bugbytes3923 can you guide me how can i use pulsing effect on Marker
Great content, less javascript is an outcome for me :) more advanced mapping would be awesome!
Thank you - I'll look into more of this type of stuff, definitely.
@@bugbytes3923 awesome 👌
@@bugbytes3923 Quick question (if you have time to answer ofcourse) you are talking about 'static maps' I assume this is because we render the html + javascript in the view. Can we also make a 'dynamic map'? So change some variables on the page and the results are shown live in de map? (without reloading the page) I've done this by just using only Javascript. Is this also possible somehow with Folium? Hope my question is clear, Thank you
Excellent video! Could you do a follow up that uses forms that would allow users to query the EV charging dataset? Possibly using htmx, folium, and Django.
Thank you! Interesting suggestion, I'll look into it - thanks!
Hey, is it possible you could make a video on how to effectively use frameworks like bootstrap for making quick and nice frontends?
Great!! How a user can set a route and get the charging stations in that route? Thanks indeed for the tutorial.
Thank you! Interesting question. I'll do a follow up on this at some point later, but it's a bit more complicated to draw a route.
However, there's a nice Python package called "osmnx" that can help with this and works with Folium. I'll look into making a video on this in the future.
Thank you very much for this great presentation, you saved me a lot of time.
Please, how can I get a list of coordinates in a country of user's IP address. I want to be able to let user search for their preferred location base on their IP address for their country. Thanks
Great 👍
Thanks!
Thanks a lot.
Kindly help with Django dynamic forms with HTMX
Great tutorial, thank you so much! Is it possible to read the data directly from database for example mysql, or does it has to be stored in csv form?
Thanks a lottttttttttttttttttttttttt
You're welcome - thank you for watching!
useful. thnx
you're welcome!
Do you have anything with django, folium, using the Draw to define selections and then being able to save the sections to a db and load them again and edit? Love your videos, they have been a big help.
Please do more map videos
Thanks, will do.
Hi, I was wondering if it was possible to conditionally output differents icons based on a certain condition.
Suppose we have different kind of charging station and we want to output differents icons for each types?
Hey - great question! Yes, you can indeed change the icon for your markers using Leaflet. The library's "L" object has an "Icon()" method to create an icon, and you can point to any source image you want (either online or on your server).
You can then attach this icon when calling the L.marker() function.
So you can imagine creating 2 or more icons, and depending on some condition, attaching the correct one as the marker.
This page has more info: leafletjs.com/examples/custom-icons/
@@bugbytes3923 thank you very much. Is it possible with folium too?
@@fernandtape9363 This kind of thing is more difficult with Folium - if you need lots of dynamic behaviour on a webpage, you're better going with Leaflet.
hie, I'm getting this error when trying to run server AttributeError: 'Marker' object has no attribute 'dd_to
thank you
You're welcome!
Has anyone figured out how to make a marker have a link to goes to another Django template url?
EXCELLENT BUT WHY YOU DONT USE PACK VARIABLES APPROCH ON LINES 15 AND 16 FOR REDUCING COMPLEXITY OF EXECUTION ??? FOR EXAMPLE DATA=[(STATION.LATITUDE, STATION.LONGITUDE) FOR STATION IN STATIONS]. BUT IS JUST A QUESTION I CAN DO WRONG APPROCH BUT I NEED EXPLANTION FOR MORE COMPREHENSION. THANKS AND I LIKE SO MUCH ALL VIDEOS YOU DO TO SHARE ALL NEW THINS ABOUT DJANGO.
Thank you - actually, you are correct, that could've been done in one line and would've been a better approach!
Is there a way for a user to temporarily add a marker, either by getting the coordinates by searching an address, or by specifying the coordinates themselves?
It's possible to add markers this way, for sure. I can do a follow-up on this, but off the top of my head, there's a few ways it could be done, some of which I'll list below:
1. User enters address/location and sends to the server - the server geocodes and returns the coordinates for the marker which can then be placed on the map.
2. If a user specifies coordinates, these can be directly added to the map using JavaScript.
3. We can also add markers to the map when a user clicks an area of the map, using JavaScript and the 'click' event.
@@bugbytes3923 makes sense
I spent 2 days getting Geodjango dependancies installed into my Django cookiecutter project and Docker. What a headache. I thought you needed gdal and leaflet and postgis.
what if the station is up to 3000, it will be slow...
How do we contact BugBytes? I built a business using your htmx playlist and i just got funding. Maybe you wanna see.
Sounds cool, nice one!
You can contact here: bugbytes.io/contact/
What's the business about? And who did you get funding from and how'd you convince them?
Thank you
you're welcome!