@nextgis/ngw-leaflet 2.5.4 → 2.5.5
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/lib/ngw-leaflet.esm-browser.js +17 -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 +17 -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 +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 2.5.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 2.5.5; author: NextGIS */
|
|
2
2
|
function styleInject(css, ref) {
|
|
3
3
|
if ( ref === void 0 ) ref = {};
|
|
4
4
|
var insertAt = ref.insertAt;
|
|
@@ -18367,7 +18367,7 @@ let Cache = _Cache;
|
|
|
18367
18367
|
|
|
18368
18368
|
var pkg = {
|
|
18369
18369
|
name: "@nextgis/ngw-connector",
|
|
18370
|
-
version: "2.5.
|
|
18370
|
+
version: "2.5.5",
|
|
18371
18371
|
_priority: 12,
|
|
18372
18372
|
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
18373
18373
|
main: "index.js",
|
|
@@ -18633,7 +18633,8 @@ class ResourcesControl {
|
|
|
18633
18633
|
}
|
|
18634
18634
|
return this.connector.get("resource.search", requestOptions, __spreadValues$q({
|
|
18635
18635
|
serialization: "full"
|
|
18636
|
-
}, query)).then((
|
|
18636
|
+
}, query)).then((response) => {
|
|
18637
|
+
const resources = Array.isArray(response) ? response : response.items;
|
|
18637
18638
|
if (resources) {
|
|
18638
18639
|
for (const x of resources) {
|
|
18639
18640
|
this.cache.add("resource.item", CancelablePromise.resolve(x), {
|
|
@@ -20803,9 +20804,9 @@ function createBasemapLayerAdapter(_0) {
|
|
|
20803
20804
|
item
|
|
20804
20805
|
}) {
|
|
20805
20806
|
if (item.basemap_layer) {
|
|
20806
|
-
const
|
|
20807
|
-
const url =
|
|
20808
|
-
if (qms) {
|
|
20807
|
+
const basemap = item.basemap_layer;
|
|
20808
|
+
const { qms, url } = basemap;
|
|
20809
|
+
if (qms && typeof qms === "string") {
|
|
20809
20810
|
const qms_ = JSON.parse(qms);
|
|
20810
20811
|
const adapter = Promise.resolve(
|
|
20811
20812
|
QmsKit.utils.createQmsAdapter(webMap, void 0, {
|
|
@@ -20818,9 +20819,18 @@ function createBasemapLayerAdapter(_0) {
|
|
|
20818
20819
|
const TileAdapter = webMap.mapAdapter.layerAdapters.TILE;
|
|
20819
20820
|
if (TileAdapter) {
|
|
20820
20821
|
class BasemapTileAdapter extends TileAdapter {
|
|
20822
|
+
constructor(map, options) {
|
|
20823
|
+
super(map, __spreadProps$c(__spreadValues$g({}, options), { baselayer: true, order: 0 }));
|
|
20824
|
+
}
|
|
20821
20825
|
addLayer(opt) {
|
|
20822
20826
|
return __async$g(this, null, function* () {
|
|
20823
|
-
|
|
20827
|
+
var _a, _b, _c;
|
|
20828
|
+
return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$c(__spreadValues$g({}, opt), {
|
|
20829
|
+
url,
|
|
20830
|
+
minZoom: (_a = basemap.z_min) != null ? _a : opt.minZoom,
|
|
20831
|
+
maxZoom: (_b = basemap.z_max) != null ? _b : opt.maxZoom,
|
|
20832
|
+
attribution: (_c = basemap.copyright_text) != null ? _c : opt.attribution
|
|
20833
|
+
}));
|
|
20824
20834
|
});
|
|
20825
20835
|
}
|
|
20826
20836
|
}
|