Add fit-to-markers / fit-padding / fit-max-zoom attributes to <leaflet-map>. When fit-to-markers is set the map ignores lat/lng/zoom and fitBounds()es a box around every locatable layer (getLatLng / getBounds); tile layers and open popups/tooltips are skipped. The only reframe trigger is a component registering into the tree -- initial load and later additions. Panning, zooming, opening a popup and removing a marker all leave the view untouched. Reframes coalesce onto a microtask so load produces one fitBounds call, not one per marker. |
||
|---|---|---|
| .. | ||
| controls-and-groups.test.ts | ||
| fit-to-markers.test.ts | ||
| geojson.test.ts | ||
| icons.test.ts | ||
| latlng-bindables.test.ts | ||
| overlays.test.ts | ||
| shapes.test.ts | ||
| tile-layers.test.ts | ||