@nextgis/ngw-leaflet 2.2.1 → 2.2.2

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/ngw-leaflet; version: 2.2.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 2.2.2; author: NextGIS */
2
2
  import 'leaflet/dist/leaflet.css';
3
3
  import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';
4
4
  import { NgwMap } from '@nextgis/ngw-map';
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-leaflet; version: 2.2.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 2.2.2; author: NextGIS */
2
2
  var NgwLeaflet = (function () {
3
3
  'use strict';
4
4
 
@@ -17019,9 +17019,10 @@ var NgwLeaflet = (function () {
17019
17019
  super._initImage();
17020
17020
  const headers = this.options.headers;
17021
17021
  const img = this._image;
17022
+ const src = img.src;
17022
17023
  img.src = "";
17023
17024
  imageQueue.add(() => {
17024
- const [promise, abortFunc] = callAjax(img.src, headers);
17025
+ const [promise, abortFunc] = callAjax(src, headers);
17025
17026
  promise.then((imgUrl) => {
17026
17027
  img.src = imgUrl;
17027
17028
  });