example of fitbounds for multiple data layers
http://jackdougherty.github.io/leaflet-map-fitbounds/index.html
- Goal: execute fitBounds for all layers with checkboxes clicked
- see index.html lines 62-81
- I know how to insert fitBounds for an individual layer (line 66)
- But I don't know how to do this for multiple layers, since last (line 80) overrides others
- background info
- http://stackoverflow.com/questions/27451152/fitbounds-of-markers-with-leaflet - http://stackoverflow.com/questions/16845614/zoom-to-fit-all-markers-in-mapbox-or-leaflet
- https://esri.github.io/esri-leaflet/examples/zooming-to-all-features-2.html
- https://groups.google.com/forum/#!topic/leaflet-js/3dQlznswFqM http://stackoverflow.com/questions/38437523/leaflet-1-0-fitbounds-not-working-as-expected-with-ajax-loading
- Can you suggest improvements for styling of distance marker numbers on the lines?
- see style.css