invalidateSize method

LeafletMap invalidateSize([
  1. ZoomPanOptions? options
])

Checks if the map container size changed and updates the map if so — call it after you've changed the map size dynamically, also animating pan by default. If options.pan is false, panning will not occur. If options.debounceMoveend is true, it will delay moveend event so that it doesn't happen often even if the method is called many times in a row

Implementation

external LeafletMap invalidateSize([ZoomPanOptions? options]);