Javascript - Dynamic Maps with Leaflet

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 42

  • @lajosnagy1270
    @lajosnagy1270 4 года назад +2

    thank you! The only advice I would like to make is to update the github code with the final version of your code.

  • @miguelito3056
    @miguelito3056 2 года назад +1

    I cant unsee what you draw on the thumbnail

    • @tech-letters
      @tech-letters  2 года назад

      finally someone recognized it 😀

  • @mihuynh1825
    @mihuynh1825 3 года назад +1

    thanks for your video.

  • @MuhammadBerki
    @MuhammadBerki 5 лет назад +1

    Great video, very interesting. Thanks for sharing

    • @tech-letters
      @tech-letters  5 лет назад

      Thanks for the feedback, highly appreciated.

    • @nielfernandez5454
      @nielfernandez5454 3 года назад

      @@tech-letters Hello Sir. Code & Dogs, instead of creating static function "testFunction1", "testFunction2", "testFunction3" how can I do that dynamic if my data is from database using php and javaScript?
      Thanks!

  • @mussatawerghi9269
    @mussatawerghi9269 4 года назад +1

    cod&dogs ......it is very good video ...thanks alot.

  • @ninadkorgaonkar5134
    @ninadkorgaonkar5134 4 года назад +2

    if we add our own shp in leaflet how will we turn on the routing between those shop?

  • @nielfernandez5454
    @nielfernandez5454 3 года назад +1

    Hello Sir. Code & Dogs, instead of creating static function "testFunction1", "testFunction2", "testFunction3" how can I do that dynamic if my data is from database using php and javaScript?
    Thanks!

    • @tech-letters
      @tech-letters  3 года назад

      Hi Sir, you need to make the function getting dynamic input per database entry. Example
      function testFunction (db-input 1, db-input2, db-input3,...). You can call this function per database entry and forward the input from the Db-entry to the function. Within the function you can then do something based on the input.

  • @acinad4605
    @acinad4605 3 года назад

    Sir what code should I put if I want my map to be in same size as my web browser/mobile screen? How can I change into a url my .html? Thanks sir. I am just a beginner.

  • @faridlgifarikertabudi6508
    @faridlgifarikertabudi6508 4 года назад +1

    great video mate!

  • @vaishnavisubramanian6702
    @vaishnavisubramanian6702 3 года назад

    Sir, one urgent requirement. I have a moving marker. But I am unable to track the xy coordinates when it is moving. Kindly post a video with moving marker with continuously varying xy coordinates in a separate table.

  • @marchino3577
    @marchino3577 4 года назад +1

    using leaflet how do I get the set of coordinates of a place sought through the search box and highlight its borders

    • @tech-letters
      @tech-letters  4 года назад

      you mean like the google maps functionality where you search for a place and then get it marked on the map? This will not be easy with leaflet. First you need a service/database which translates the place to lat/long markers or polygones. In the second step you would then be able to display it on a leaflet map

  • @property007
    @property007 4 года назад +1

    Is leaflet map responsive and fit into mobile phone screen?

    • @tech-letters
      @tech-letters  4 года назад

      Yep, see here leafletjs.com/examples/mobile/

  • @pritam7664
    @pritam7664 4 года назад +1

    how to calculate distance between two lat and long by considering available routes just like google map does?

    • @tech-letters
      @tech-letters  4 года назад +1

      you can do this in multiple ways. One is using leaflet function from.distanceTo(to) where from and to are markers latitude and longitude. Another one would be writing an own distance function. You can find examples for both variants here stackoverflow.com/questions/43167417/calculate-distance-between-two-points-in-leaflet

    • @pritam7664
      @pritam7664 4 года назад +1

      Thank you for your support :)

  • @czarli
    @czarli 4 года назад +1

    Hi,
    I’m interested in building only one app that is location based, I wonder if I could ask some questions to get a direction.

    • @tech-letters
      @tech-letters  4 года назад

      Hi czarli, anytime. But I can't promise to have an answer to all the questions :-P

    • @czarli
      @czarli 4 года назад +1

      I would like to create automated dispatch based on tracking and geo fencing.. sort of like Uber is there a way I could send you email?

    • @tech-letters
      @tech-letters  4 года назад

      @@czarli yes, you can send it to codeanddogs@gmail.com

  • @subhadipghorui2216
    @subhadipghorui2216 4 года назад

    Can you do a tutorial on how to do Spatial Query a polygon or point draw by user ??
    Add Spatial Queries to your project-------------It will be helpful with my project "building a population map of an area with spatial queries".
    Please reply.

  • @SushilMohan_Vlogs
    @SushilMohan_Vlogs 4 года назад

    how to select a marker by drawing rectangle if marker lat lng is inside rectangle

  • @satyadevmishra8493
    @satyadevmishra8493 4 года назад +1

    Great content but How we can achieve same output with php and mysql.

    • @tech-letters
      @tech-letters  4 года назад

      Thanks. To be honest. My php skills are very limited, I don't know :-( what do you want to do with mysql? Storing some markers in tables?

  • @acinad4605
    @acinad4605 3 года назад

    What is an access token sir?

  • @agamurat3019
    @agamurat3019 3 года назад +1

    how to save lats longs to database

    • @tech-letters
      @tech-letters  3 года назад

      Depends on what database you want to use. But you can simply safe it in there...

    • @tech-letters
      @tech-letters  3 года назад

      Do you already know which database you want to use? You can basically save it as any other value in a DB

  • @ealkhiyami9737
    @ealkhiyami9737 3 года назад +2

    That thumb nail loooool

    • @tech-letters
      @tech-letters  3 года назад +1

      Finally some one found it :-D

    • @nielfernandez5454
      @nielfernandez5454 3 года назад

      @@tech-letters Hello Sir. Code & Dogs, instead of creating static function "testFunction1", "testFunction2", "testFunction3" how can I do that dynamic if my data is from database using php and javaScript?
      Thanks!

  • @marchino3577
    @marchino3577 4 года назад +1

    using leaflet how do I get the set of coordinates of a place sought through the search box and highlight its borders

    • @tech-letters
      @tech-letters  4 года назад

      you mean like the google maps functionality where you search for a place and then get it marked on the map? This will not be easy with leaflet. First you need a service/database which translates the place to lat/long markers or polygones. In the second step you would then be able to display it on a leaflet map

    • @marchino3577
      @marchino3577 4 года назад

      @@tech-letters how can I do?

    • @marchino3577
      @marchino3577 4 года назад

      ​@@tech-letters the database service should be that of a leaflet. For display it on a leaflet map, I can do without, it is enough for me to have the object that contains all the coordinates within the requested place