Django and LeafletJS - Interactive Maps, Map Events, and Finding Closest Points with GeoPy

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ย. 2024

ความคิดเห็น • 47

  • @dimotions
    @dimotions ปีที่แล้ว +13

    Hey man! This is great! Thank you for all you work. Please, don't stop making these vids on Django & different integrations. It's really helpful and educational. 😎

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว +2

      Hey! Thanks a lot, much appreciated!
      Will do 🙂

  • @AmoahDevLabs
    @AmoahDevLabs ปีที่แล้ว +4

    You tutorials are always amazing... Keep it up bros.

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Cheers dude. Glad you're liking them! Thanks.

  • @Davidkiania
    @Davidkiania ปีที่แล้ว +2

    This is great. Yes please make a follow up video on osmnx shortest path on road networks.

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks, will look into it.

  • @AbdelkrimBentorcha
    @AbdelkrimBentorcha 10 หลายเดือนก่อน +1

    Great tuto thank you so much. How about if the user need to draw a subzone in the map in order to retreive all data for this zone. How to do the filtering in the django side? Can you make a tuto about this.

  • @willdurant141
    @willdurant141 ปีที่แล้ว +1

    Thank you very much! Just what I asked for!😄

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks for that suggestion!
      Any others, give me a shout ;)

  • @Amir-bd4uk
    @Amir-bd4uk 11 หลายเดือนก่อน

    Great video. Really appreciate the work you put in.

    • @bugbytes3923
      @bugbytes3923  11 หลายเดือนก่อน

      Thanks a lot!

  • @arunima2916
    @arunima2916 ปีที่แล้ว +1

    Great Tutorial, awaiting for the follow up release also, if driver of ev set a route then what are the stations available in that route will be helpful for him to plan journey

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks!
      That would require knowledge of the road networks - I will plan out a follow-up that shows this in the future.

  • @HelperIntro
    @HelperIntro 10 หลายเดือนก่อน +1

    Informative . Please also make tutorial on OSMnx in coordination with django and leaflet

    • @bugbytes3923
      @bugbytes3923  10 หลายเดือนก่อน

      Great suggestion, thanks - will have a look into it!

  • @MagnusAnand
    @MagnusAnand ปีที่แล้ว +2

    Cool video!
    I have one video suggestion: making subqueries with Django.
    There isn't too much material out there and they are really handy 💪

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว +2

      Thanks!
      Good suggestion - I've got so much ORM stuff just ready to record and pull together into one course. Will definitely be covering subqueries. Hopefully soon!

    • @martiruda
      @martiruda ปีที่แล้ว

      I inject sql within a view, I'm so detached from ORMs and I have been working on databases for the last 15 years :).

  • @mdbarin2014
    @mdbarin2014 ปีที่แล้ว

    Hi man. Thanks a lot for ur didactic video. You reoslved my matter. Thansk millions

  • @sharab2639
    @sharab2639 ปีที่แล้ว +1

    wow very informative video

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว +1

      Thanks a lot, glad to hear it!

  • @SOHAILKHAN-iu8fu
    @SOHAILKHAN-iu8fu ปีที่แล้ว +1

    this is amazing

  • @DHoss83
    @DHoss83 ปีที่แล้ว +2

    Really well done! Would love to see a follow up tutorial that merges your recent work - Htmx + Django + Bokeh + Leaflet into one super tutorial. Even just something that combines Django + htmx and Leaflet. How difficult is it to make an attribute editor next to your map in Django+Leaflet?

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks a lot!
      I plan to release a lot more on these topics, but mixed with a bunch of other new stuff too. HTMX and Leaflet is an interesting potential combination, but I'm not sure how easy it would be to integrate them yet. Will look into it though! :)

    • @DHoss83
      @DHoss83 ปีที่แล้ว

      @@bugbytes3923 I was thinking through it some more, and you might be right as far as Leaflet and HTMX not being a natural pairing. Really what I was looking more for was the ability to have form data that you could edit in a pane (without refresh) based on selecting items in a map with Leaflet+Django. You can probably do all of that by extending your example.
      Your examples with HTMX+Django+Bokeh have been great, and I hope to see more examples like that in the wild. Keep up the good work!

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      @@DHoss83 I see what you mean - I'll have a look into extending this example in some way. Selecting content from the map and populating some kind of editable form is definitely somewhere HTMX could be used. Anyway, thanks for the comments - interesting ideas!

  • @fernandtape9363
    @fernandtape9363 ปีที่แล้ว +1

    Great video as always.
    How tu remove the previous line when the user clicks again to draw a new one?

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thanks! For that, we need to keep a reference to the PolyLine that's created.
      On the next click event, we can then call "map.removeLayer(line)" to remove that from the map.

  • @nadjemtech4963
    @nadjemtech4963 ปีที่แล้ว

    ❤❤ thanks for info

  • @aashayamballi
    @aashayamballi ปีที่แล้ว

    Thank you

  • @pakeffendi5061
    @pakeffendi5061 11 หลายเดือนก่อน

    very good, how i can get only view data ( not all from database ) and past it to template as json list format? thank you

  • @EngenhariaACLS
    @EngenhariaACLS ปีที่แล้ว

    Very good, exactly what I needed, would you be able to place these points as if it were a circle and place them to circulate around the circle as if it were moving in real time, taking the latitude and longitude from the database? And would instead of being the first 100 data, be the last 100?

  • @davispalla
    @davispalla 18 วันที่ผ่านมา

    Hello, is it possible to create polygons by adding distance between each vertex? Something similar to AutoCAD? My job is to develop a tool that allows you to draw with exact measurements.

  • @infiniteobservations8137
    @infiniteobservations8137 ปีที่แล้ว +1

    Great tutorial! But i have 1 question: "I cloned the files from github and did everything up until you ran the development server. How do you run the dev server?"

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      Thank you!
      You can run the Django server with the command: "python manage.py runserver"
      Any other issues just let me know.

    • @infiniteobservations8137
      @infiniteobservations8137 ปีที่แล้ว

      @@bugbytes3923 where is the requirements.txt file?

  • @urvipatil9497
    @urvipatil9497 5 หลายเดือนก่อน

    How to select a location from the map and save it??

  • @bryanmayodi613
    @bryanmayodi613 9 หลายเดือนก่อน

    what if you want to find the nearest path following roads, not straight lines

  • @utraclan9739
    @utraclan9739 ปีที่แล้ว

    Hey! ModuleNotFoundError: No module named 'core'. Do you know answear to that?

    • @utraclan9739
      @utraclan9739 ปีที่แล้ว

      I just click start at load_stations.py

    • @bugbytes3923
      @bugbytes3923  ปีที่แล้ว

      'core' refers to the name of the Django application, created with the command:
      "python manage.py startapp core"

  • @driouichelmahdi
    @driouichelmahdi ปีที่แล้ว +1

    Great. Thank You

  • @frameff9073
    @frameff9073 ปีที่แล้ว +1

    thank you