panInside method

LeafletMap panInside(
  1. LatLng latlng, [
  2. PanOptions? options
])

Pans the map the minimum amount to make the latlng visible. Use padding, paddingTopLeft and paddingTopRight options to fit the display to more restricted bounds, like fitBounds. If latlng is already within the (optionally padded) display bounds, the map will not be panned.

Implementation

external LeafletMap panInside(LatLng latlng, [PanOptions? options]);