leaflet-map
leaflet-map copied to clipboard
Feature fit map to layer group
Added property fitMapToBounds to get the map automatically resized to fit the bounds of the LayerGroup where this is set to true (so enables functionality like fitToMarkers, but for only selected items). Random behaviour will occur if this is set on multiple elements, but I think it's quite useful anyways.
Contains the changes from pull-request #38 as well.