Create a geoJSON File and Add to Leaflet

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • In this tutorial, I'll demonstrate how to create a geoJSON file and add to leaflet. We'll be using geojson.io as a platform to dynamically create a geoJSON file and add the resulting feature to Leaflet.
    Here's the video on how to create a basic Leaflet map - • Leaflet Tutorial - A b...
    Geojson.io - geojson.io

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

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

    I like your channnel, I woullf like more material about leaflet

    • @gissolutions4604
      @gissolutions4604  2 года назад

      Thanks so much for the feedback, will certainly add more Leaflet videos in the future!

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

    very useful, how to add my own raster file into my map, thanks a lot

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

      Thanks for the feedback, will certainly add that to my list of future videos!

  • @nkdvlog4955
    @nkdvlog4955 9 месяцев назад +1

    Thanks for the content

    • @gissolutions4604
      @gissolutions4604  9 месяцев назад

      My pleasure! Thanks so much for the feedback.

  • @arnulfcoquin4067
    @arnulfcoquin4067 8 месяцев назад +1

    big up brother

  • @davispalla
    @davispalla Год назад +2

    Hello, thanks for the content available. a question: do you have a video demonstrating how to draw, insert values ​​in attributes and save in Postgres/gis database? thank you so much.

    • @gissolutions4604
      @gissolutions4604  Год назад +1

      Thanks so much for the feedback! I’ll certainly add your request to my list of upcoming videos.

  • @adeafblindman
    @adeafblindman 4 месяца назад

    Is there a way to grab the color data from the geojson properties and have it show on the map?

    • @gissolutions4604
      @gissolutions4604  4 месяца назад

      Great question and there might be...just haven't attempted it. Please let me know if you're successful.

  • @user-ow2ob6hy5r
    @user-ow2ob6hy5r Год назад

    Thanks for your tutorial,
    is there any simple way to load and unload geoJSON files from local storage?
    something like a geoJSON viewer for the Web
    thank you

    • @gissolutions4604
      @gissolutions4604  Год назад

      I appreciate the feedback. Not that I know off hand, but will certainly look into this.

  • @user-cm7eo8jo2c
    @user-cm7eo8jo2c 9 месяцев назад +1

    thanks im doing it react though but cant add the name in marker.

    • @gissolutions4604
      @gissolutions4604  9 месяцев назад

      Thanks so much for reaching out. I'm not familiar with React and certainly something I'd like to be familiar with. Unfortunately I'm unable to troubleshoot the issue for you.

  • @mickentquenncuizon7785
    @mickentquenncuizon7785 Год назад

    Hello, instead of color can I call the coordinates in the map if possible, then How?

  • @wilma_balls
    @wilma_balls 7 месяцев назад

    if i want to highlight the exact borders of a country, how would i do that?

    • @gissolutions4604
      @gissolutions4604  7 месяцев назад +1

      Thanks for reaching out! I did a video not too long ago on creating a Choropleth map in Leaflet. This video should help you out with highlighting the borders. Let me know if it works for you?
      ruclips.net/video/XYYULbXWxGU/видео.html

    • @wilma_balls
      @wilma_balls 7 месяцев назад

      @@gissolutions4604 works great, thank you!

  • @pawananubhav12
    @pawananubhav12 Год назад

    I'm given an external geojson file and i need to display that in a map?

    • @gissolutions4604
      @gissolutions4604  Год назад

      Thanks so much for reaching out. Are you connecting to the external geojson file through a link or is the geojson file stored on your local computer?

    • @pawananubhav12
      @pawananubhav12 Год назад

      @@gissolutions4604 it's stored in my local computer, i tried many things from the internet like making a js file of the same geojson file but still not able to display the geojson data

    • @gissolutions4604
      @gissolutions4604  Год назад

      @@pawananubhav12 Please see this video on how to add a shapefile to Leaflet - ruclips.net/video/XI4E5sjnjDI/видео.html
      I know you're not adding a shapefile, but what I do in this video is convert the shapefile to a geojson file, then add it to Leaflet. Since your file is in geojson, you'll just skip the beginning part and this should help you! If not, please don't hesitate to let me know.

  • @eamontanner6778
    @eamontanner6778 11 месяцев назад +1

    I don't understand why anyone would want to paste the geoJSON data inside of the html file. In a reasonably sized geoJSON file this is not even remotely practical. I think most people would want to load the geoJSON from an external file so it isn't clogging up the html file with 4,000 lines of code

    • @gissolutions4604
      @gissolutions4604  10 месяцев назад

      Very good point! This video is obviously for someone just getting started with a few markers to their map.