@nextgis/ngw-map 1.19.1 → 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-map.cjs.js +1 -1
- package/lib/ngw-map.esm-browser.js +61 -3
- package/lib/ngw-map.esm-browser.js.map +1 -1
- package/lib/ngw-map.esm-browser.prod.js +1 -1
- package/lib/ngw-map.esm-browser.prod.js.map +1 -1
- package/lib/ngw-map.esm-bundler.js +1 -1
- package/lib/ngw-map.global.js +61 -3
- package/lib/ngw-map.global.js.map +1 -1
- package/lib/ngw-map.global.prod.js +1 -1
- package/lib/ngw-map.global.prod.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version: 1.19.
|
|
1
|
+
/** Bundle of @nextgis/ngw-map; version: 1.19.6; author: NextGIS */
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import CancelablePromise from '@nextgis/cancelable-promise';
|
|
4
4
|
import { deepmerge, deprecatedWarn, defined, isObject, getIdentifyRadius } from '@nextgis/utils';
|
package/lib/ngw-map.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version: 1.19.
|
|
1
|
+
/** Bundle of @nextgis/ngw-map; version: 1.19.6; author: NextGIS */
|
|
2
2
|
var NgwMap = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -4785,6 +4785,62 @@ var NgwMap = (function (exports) {
|
|
|
4785
4785
|
*/
|
|
4786
4786
|
var Cache = Cache$1;
|
|
4787
4787
|
|
|
4788
|
+
var pkg = {
|
|
4789
|
+
name: "@nextgis/ngw-connector",
|
|
4790
|
+
version: "1.19.6",
|
|
4791
|
+
_priority: 12,
|
|
4792
|
+
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
4793
|
+
main: "index.js",
|
|
4794
|
+
module: "lib/ngw-connector.esm-bundler.js",
|
|
4795
|
+
unpkg: "lib/ngw-connector.global.prod.js",
|
|
4796
|
+
jsdelivr: "lib/ngw-connector.global.prod.js",
|
|
4797
|
+
types: "lib/index.d.ts",
|
|
4798
|
+
dependencies: {
|
|
4799
|
+
"@nextgis/cache": "^1.19.0",
|
|
4800
|
+
"@nextgis/cancelable-promise": "^1.19.0",
|
|
4801
|
+
"@nextgis/utils": "^1.19.0",
|
|
4802
|
+
"@types/events": "^3.0.0",
|
|
4803
|
+
events: "^3.3.0",
|
|
4804
|
+
"form-data": "^4.0.0"
|
|
4805
|
+
},
|
|
4806
|
+
devDependencies: {
|
|
4807
|
+
"@nextgis/build-tools": "^1.19.0"
|
|
4808
|
+
},
|
|
4809
|
+
scripts: {
|
|
4810
|
+
clean: "rimraf ./lib",
|
|
4811
|
+
dev: "node ../build-tools/lib/build.js",
|
|
4812
|
+
prod: "npm run dev -- --release",
|
|
4813
|
+
lint: "eslint ./src/**/*.ts --fix --c ../../.eslintrc",
|
|
4814
|
+
watch: "npm run dev -- --watch",
|
|
4815
|
+
"gen:types": "node ./scripts/generator"
|
|
4816
|
+
},
|
|
4817
|
+
buildOptions: {
|
|
4818
|
+
name: "NgwConnector",
|
|
4819
|
+
formats: [
|
|
4820
|
+
"esm-bundler",
|
|
4821
|
+
"esm-browser",
|
|
4822
|
+
"cjs",
|
|
4823
|
+
"global"
|
|
4824
|
+
]
|
|
4825
|
+
},
|
|
4826
|
+
keywords: [
|
|
4827
|
+
"NextGIS",
|
|
4828
|
+
"MAP"
|
|
4829
|
+
],
|
|
4830
|
+
author: "NextGIS",
|
|
4831
|
+
files: [
|
|
4832
|
+
"index.js",
|
|
4833
|
+
"lib"
|
|
4834
|
+
],
|
|
4835
|
+
license: "MIT",
|
|
4836
|
+
homepage: "https://github.com/nextgis/nextgis_frontend/tree/master/packages/ngw-connector#readme",
|
|
4837
|
+
repository: {
|
|
4838
|
+
type: "git",
|
|
4839
|
+
url: "git://github.com/nextgis/nextgis_frontend.git"
|
|
4840
|
+
},
|
|
4841
|
+
gitHead: "edc68033f914f6c95c4125b9738bba6d36e990b4"
|
|
4842
|
+
};
|
|
4843
|
+
|
|
4788
4844
|
/**
|
|
4789
4845
|
* Thrown when...
|
|
4790
4846
|
*/
|
|
@@ -5375,6 +5431,7 @@ var NgwMap = (function (exports) {
|
|
|
5375
5431
|
this.options = options;
|
|
5376
5432
|
this.id = ID$1++;
|
|
5377
5433
|
this.emitter = new events.exports.EventEmitter();
|
|
5434
|
+
this.client = "NextGIS-NGW-Connector/".concat(pkg.version);
|
|
5378
5435
|
this.routeStr = '/api/component/pyramid/route';
|
|
5379
5436
|
this.activeRequests = [];
|
|
5380
5437
|
var exist = findConnector(options);
|
|
@@ -5428,7 +5485,8 @@ var NgwMap = (function (exports) {
|
|
|
5428
5485
|
var makeConnect = function () {
|
|
5429
5486
|
return new CancelablePromise(function (resolve, reject) {
|
|
5430
5487
|
var makeQuery = function () {
|
|
5431
|
-
|
|
5488
|
+
var routeUrl = "".concat(_this.routeStr, "?client=").concat(_this.client);
|
|
5489
|
+
return _this.makeQuery(routeUrl.toString(), {}, {})
|
|
5432
5490
|
.then(function (route) {
|
|
5433
5491
|
resolve(route);
|
|
5434
5492
|
})
|
|
@@ -6834,7 +6892,7 @@ var NgwMap = (function (exports) {
|
|
|
6834
6892
|
if (extensionsStr !== '*') {
|
|
6835
6893
|
params.extensions = extensionsStr;
|
|
6836
6894
|
}
|
|
6837
|
-
if (fields !== undefined) {
|
|
6895
|
+
if (fields !== undefined && fields !== null) {
|
|
6838
6896
|
params.fields = Array.isArray(fields) ? fields.join(',') : '';
|
|
6839
6897
|
}
|
|
6840
6898
|
if (geom !== undefined) {
|