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
I like your channnel, I woullf like more material about leaflet
Thanks so much for the feedback, will certainly add more Leaflet videos in the future!
very useful, how to add my own raster file into my map, thanks a lot
Thanks for the feedback, will certainly add that to my list of future videos!
Thanks for the content
My pleasure! Thanks so much for the feedback.
big up brother
Thanks my friend!
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.
Thanks so much for the feedback! I’ll certainly add your request to my list of upcoming videos.
Is there a way to grab the color data from the geojson properties and have it show on the map?
Great question and there might be...just haven't attempted it. Please let me know if you're successful.
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
I appreciate the feedback. Not that I know off hand, but will certainly look into this.
thanks im doing it react though but cant add the name in marker.
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.
Hello, instead of color can I call the coordinates in the map if possible, then How?
if i want to highlight the exact borders of a country, how would i do that?
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
@@gissolutions4604 works great, thank you!
I'm given an external geojson file and i need to display that in a map?
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?
@@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
@@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.
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
Very good point! This video is obviously for someone just getting started with a few markers to their map.