panInsideBounds method

LeafletMap panInsideBounds(
  1. LatLngBounds bounds, [
  2. PanOptions? options
])

Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.

Implementation

external LeafletMap panInsideBounds(LatLngBounds bounds,
    [PanOptions? options]);