@nextgis/leaflet-map-adapter 4.1.1 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/leaflet-map-adapter; version: 4.1.1; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 4.1.3; author: NextGIS */
2
2
  import { LeafletControlContainer, createControl, createButtonControl, createToggleControl } from '@nextgis/leaflet-control-container';
3
3
  import { EventEmitter } from 'events';
4
4
  import { Control, GeoJSON, DomEvent, DivIcon, Marker, CircleMarker, FeatureGroup, ImageOverlay as ImageOverlay$1, Util, Layer, GridLayer, DomUtil, TileLayer as TileLayer$1, Map, latLngBounds, latLng } from 'leaflet';
@@ -1922,6 +1922,10 @@ const _LeafletMapAdapter = class _LeafletMapAdapter {
1922
1922
  const map = this.map;
1923
1923
  if (container && map && window.ResizeObserver) {
1924
1924
  this._resizeObserver = new ResizeObserver(() => {
1925
+ map.invalidateSize({
1926
+ pan: false,
1927
+ debounceMoveend: true
1928
+ });
1925
1929
  this._updateMinZoomForBounds();
1926
1930
  });
1927
1931
  this._resizeObserver.observe(container);