@nextgis/ngw-leaflet 1.19.5 → 1.19.6
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 +61 -3
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +2 -2
- 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 +61 -3
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +2 -2
- 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: 1.19.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; version: 1.19.6; author: NextGIS */
|
|
2
2
|
var NgwLeaflet = (function () {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -18858,6 +18858,62 @@ var NgwLeaflet = (function () {
|
|
|
18858
18858
|
return Cache;
|
|
18859
18859
|
}());
|
|
18860
18860
|
|
|
18861
|
+
var pkg = {
|
|
18862
|
+
name: "@nextgis/ngw-connector",
|
|
18863
|
+
version: "1.19.6",
|
|
18864
|
+
_priority: 12,
|
|
18865
|
+
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
18866
|
+
main: "index.js",
|
|
18867
|
+
module: "lib/ngw-connector.esm-bundler.js",
|
|
18868
|
+
unpkg: "lib/ngw-connector.global.prod.js",
|
|
18869
|
+
jsdelivr: "lib/ngw-connector.global.prod.js",
|
|
18870
|
+
types: "lib/index.d.ts",
|
|
18871
|
+
dependencies: {
|
|
18872
|
+
"@nextgis/cache": "^1.19.0",
|
|
18873
|
+
"@nextgis/cancelable-promise": "^1.19.0",
|
|
18874
|
+
"@nextgis/utils": "^1.19.0",
|
|
18875
|
+
"@types/events": "^3.0.0",
|
|
18876
|
+
events: "^3.3.0",
|
|
18877
|
+
"form-data": "^4.0.0"
|
|
18878
|
+
},
|
|
18879
|
+
devDependencies: {
|
|
18880
|
+
"@nextgis/build-tools": "^1.19.0"
|
|
18881
|
+
},
|
|
18882
|
+
scripts: {
|
|
18883
|
+
clean: "rimraf ./lib",
|
|
18884
|
+
dev: "node ../build-tools/lib/build.js",
|
|
18885
|
+
prod: "npm run dev -- --release",
|
|
18886
|
+
lint: "eslint ./src/**/*.ts --fix --c ../../.eslintrc",
|
|
18887
|
+
watch: "npm run dev -- --watch",
|
|
18888
|
+
"gen:types": "node ./scripts/generator"
|
|
18889
|
+
},
|
|
18890
|
+
buildOptions: {
|
|
18891
|
+
name: "NgwConnector",
|
|
18892
|
+
formats: [
|
|
18893
|
+
"esm-bundler",
|
|
18894
|
+
"esm-browser",
|
|
18895
|
+
"cjs",
|
|
18896
|
+
"global"
|
|
18897
|
+
]
|
|
18898
|
+
},
|
|
18899
|
+
keywords: [
|
|
18900
|
+
"NextGIS",
|
|
18901
|
+
"MAP"
|
|
18902
|
+
],
|
|
18903
|
+
author: "NextGIS",
|
|
18904
|
+
files: [
|
|
18905
|
+
"index.js",
|
|
18906
|
+
"lib"
|
|
18907
|
+
],
|
|
18908
|
+
license: "MIT",
|
|
18909
|
+
homepage: "https://github.com/nextgis/nextgis_frontend/tree/master/packages/ngw-connector#readme",
|
|
18910
|
+
repository: {
|
|
18911
|
+
type: "git",
|
|
18912
|
+
url: "git://github.com/nextgis/nextgis_frontend.git"
|
|
18913
|
+
},
|
|
18914
|
+
gitHead: "edc68033f914f6c95c4125b9738bba6d36e990b4"
|
|
18915
|
+
};
|
|
18916
|
+
|
|
18861
18917
|
/**
|
|
18862
18918
|
* Thrown when...
|
|
18863
18919
|
*/
|
|
@@ -19448,6 +19504,7 @@ var NgwLeaflet = (function () {
|
|
|
19448
19504
|
this.options = options;
|
|
19449
19505
|
this.id = ID$1++;
|
|
19450
19506
|
this.emitter = new events.exports.EventEmitter();
|
|
19507
|
+
this.client = "NextGIS-NGW-Connector/".concat(pkg.version);
|
|
19451
19508
|
this.routeStr = '/api/component/pyramid/route';
|
|
19452
19509
|
this.activeRequests = [];
|
|
19453
19510
|
var exist = findConnector(options);
|
|
@@ -19501,7 +19558,8 @@ var NgwLeaflet = (function () {
|
|
|
19501
19558
|
var makeConnect = function () {
|
|
19502
19559
|
return new CancelablePromise(function (resolve, reject) {
|
|
19503
19560
|
var makeQuery = function () {
|
|
19504
|
-
|
|
19561
|
+
var routeUrl = "".concat(_this.routeStr, "?client=").concat(_this.client);
|
|
19562
|
+
return _this.makeQuery(routeUrl.toString(), {}, {})
|
|
19505
19563
|
.then(function (route) {
|
|
19506
19564
|
resolve(route);
|
|
19507
19565
|
})
|
|
@@ -20896,7 +20954,7 @@ var NgwLeaflet = (function () {
|
|
|
20896
20954
|
if (extensionsStr !== '*') {
|
|
20897
20955
|
params.extensions = extensionsStr;
|
|
20898
20956
|
}
|
|
20899
|
-
if (fields !== undefined) {
|
|
20957
|
+
if (fields !== undefined && fields !== null) {
|
|
20900
20958
|
params.fields = Array.isArray(fields) ? fields.join(',') : '';
|
|
20901
20959
|
}
|
|
20902
20960
|
if (geom !== undefined) {
|