@nextgis/ngw-leaflet 4.0.0 → 4.0.1
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.
- package/README.md +1 -1
- package/lib/ngw-leaflet.esm-browser.js +16 -7
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.esm-bundler.js +1 -1
- package/lib/ngw-leaflet.global.js +16 -7
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +1 -1
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 4.0.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 4.0.1; author: NextGIS */
|
|
2
2
|
import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';
|
|
3
3
|
import { NgwMap } from '@nextgis/ngw-map';
|
|
4
4
|
import { Icon } from 'leaflet';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 4.0.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 4.0.1; author: NextGIS */
|
|
2
2
|
var NgwLeaflet = (function () {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -21275,7 +21275,7 @@ var NgwLeaflet = (function () {
|
|
|
21275
21275
|
let Cache = _Cache;
|
|
21276
21276
|
|
|
21277
21277
|
var pkg = {
|
|
21278
|
-
version: "4.0.
|
|
21278
|
+
version: "4.0.1"};
|
|
21279
21279
|
|
|
21280
21280
|
class AbortError extends Error {
|
|
21281
21281
|
constructor(message = "AbortError") {
|
|
@@ -24983,7 +24983,7 @@ var NgwLeaflet = (function () {
|
|
|
24983
24983
|
return webmap.bookmark_resource.id;
|
|
24984
24984
|
}
|
|
24985
24985
|
}
|
|
24986
|
-
fetchBookmarks(options) {
|
|
24986
|
+
fetchBookmarks(options = {}) {
|
|
24987
24987
|
const bookmarkResId = this.getBookmarksResourceId();
|
|
24988
24988
|
const connector = this.options.connector;
|
|
24989
24989
|
if (bookmarkResId) {
|
|
@@ -25647,9 +25647,9 @@ var NgwLeaflet = (function () {
|
|
|
25647
25647
|
item
|
|
25648
25648
|
}) {
|
|
25649
25649
|
if (item.basemap_layer) {
|
|
25650
|
-
const
|
|
25651
|
-
const url =
|
|
25652
|
-
if (qms) {
|
|
25650
|
+
const basemap = item.basemap_layer;
|
|
25651
|
+
const { qms, url } = basemap;
|
|
25652
|
+
if (qms && typeof qms === "string") {
|
|
25653
25653
|
const qms_ = JSON.parse(qms);
|
|
25654
25654
|
const adapter = Promise.resolve(
|
|
25655
25655
|
createQmsAdapter(webMap, {
|
|
@@ -25662,10 +25662,19 @@ var NgwLeaflet = (function () {
|
|
|
25662
25662
|
const TileAdapter = webMap.mapAdapter.layerAdapters.TILE;
|
|
25663
25663
|
if (TileAdapter) {
|
|
25664
25664
|
class BasemapTileAdapter extends TileAdapter {
|
|
25665
|
+
constructor(map, options) {
|
|
25666
|
+
super(map, __spreadProps$8(__spreadValues$a({}, options), { baselayer: true, order: 0 }));
|
|
25667
|
+
}
|
|
25665
25668
|
addLayer(opt) {
|
|
25666
25669
|
return __async$b(this, null, function* () {
|
|
25670
|
+
var _a, _b, _c;
|
|
25667
25671
|
if (url) {
|
|
25668
|
-
return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$8(__spreadValues$a({}, opt), {
|
|
25672
|
+
return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$8(__spreadValues$a({}, opt), {
|
|
25673
|
+
url,
|
|
25674
|
+
minZoom: (_a = basemap.z_min) != null ? _a : opt.minZoom,
|
|
25675
|
+
maxZoom: (_b = basemap.z_max) != null ? _b : opt.maxZoom,
|
|
25676
|
+
attribution: (_c = basemap.copyright_text) != null ? _c : opt.attribution
|
|
25677
|
+
}));
|
|
25669
25678
|
}
|
|
25670
25679
|
});
|
|
25671
25680
|
}
|