We provide our Leaflet maps with shapes in the form of GeoJSON. I'm sure their are probably a number of pre-made US state and county GeoJSON files available on GitHub and such, but it's nice to know a general procedure.
We provide our Leaflet maps with shapes in the form of GeoJSON. I'm sure there are a number of pre-made US state and county GeoJSON files available on GitHub and such, but it's nice to know a general procedure.
For our example here, we'll create a GeoJSON file of the fifty states and Washington, D.C., and we'll try to keep it under 200 KB.