N00000DLE / BehrendTrees

1 stars 0 forks source link

Making Leaflet Map with GeoJSON #6

Open ebeshero opened 2 years ago

ebeshero commented 2 years ago

Now that we have some geoJSON to work with, let's set up a map on the website to pull in all the data.

Resources: Leaflet Quick Start Guide: https://leafletjs.com/examples/quick-start/

Using GeoJSON with Leaflet: NOTE: Much of what's here is not what we need right now. https://leafletjs.com/examples/geojson/ Try the example.html linked at the bottom and view the page source to see the connecting parts: https://leafletjs.com/examples/geojson/example.html

view-source:https://leafletjs.com/examples/geojson/example.html

ebeshero commented 2 years ago

Try copying the page code into your own file and save locally. Remove some bits to see what each piece is doing.

ebeshero commented 2 years ago

Now that we have a map up and each tree has a pointer on it, it's time to fine-tune!