@nextgis/ngw-map 1.16.5 → 1.16.7
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/index.d.ts +6 -7
- package/lib/ngw-map.cjs.js +7 -7
- package/lib/ngw-map.cjs.js.map +1 -1
- package/lib/ngw-map.cjs.prod.js.map +1 -1
- package/lib/ngw-map.esm-browser.js +55 -29
- 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 +7 -7
- package/lib/ngw-map.esm-bundler.js.map +1 -1
- package/lib/ngw-map.esm-bundler.prod.js.map +1 -1
- package/lib/ngw-map.global.js +55 -29
- 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 +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version: 1.16.
|
|
1
|
+
/** Bundle of @nextgis/ngw-map; version: 1.16.7; author: NextGIS */
|
|
2
2
|
/******************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -3001,11 +3001,27 @@ var WebMapLayers = /** @class */ (function (_super) {
|
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
};
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3004
|
+
WebMapLayers.prototype.showLayerLabel = function (layerDef) {
|
|
3005
|
+
this.toggleLayerLabel(layerDef, true);
|
|
3006
|
+
};
|
|
3007
|
+
WebMapLayers.prototype.hideLayerLabel = function (layerDef) {
|
|
3008
|
+
this.toggleLayerLabel(layerDef, false);
|
|
3009
|
+
};
|
|
3010
|
+
WebMapLayers.prototype.toggleLayerLabel = function (layerDef, status) {
|
|
3011
|
+
var layer = this.getLayer(layerDef);
|
|
3012
|
+
if (layer) {
|
|
3013
|
+
if (status) {
|
|
3014
|
+
if (layer.showLabel) {
|
|
3015
|
+
layer.showLabel();
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
else {
|
|
3019
|
+
if (layer.hideLabel) {
|
|
3020
|
+
layer.hideLabel();
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
}
|
|
3024
|
+
};
|
|
3009
3025
|
/**
|
|
3010
3026
|
* Mark the layer as selected.
|
|
3011
3027
|
* If the adapter is a vector layer and supports data selection,
|
|
@@ -3559,7 +3575,7 @@ var WebMapControls = /** @class */ (function (_super) {
|
|
|
3559
3575
|
/**
|
|
3560
3576
|
*
|
|
3561
3577
|
* @param control - Instance of WEB-GIS framework control.
|
|
3562
|
-
* What is returned by the {@
|
|
3578
|
+
* What is returned by the {@link createControl | create} method
|
|
3563
3579
|
*/
|
|
3564
3580
|
WebMapControls.prototype.removeControl = function (control) {
|
|
3565
3581
|
var _this = this;
|
|
@@ -4692,7 +4708,7 @@ var NgwConnector$1 = /** @class */ (function () {
|
|
|
4692
4708
|
/**
|
|
4693
4709
|
* Establishing a connection with NextGIS Web to fulfill all other requests.
|
|
4694
4710
|
* @remarks
|
|
4695
|
-
* This method need not be called manually as it is used when forming a request in {@link
|
|
4711
|
+
* This method need not be called manually as it is used when forming a request in {@link apiRequest | apiRequest}.
|
|
4696
4712
|
* Can be used to check connection.
|
|
4697
4713
|
* @example
|
|
4698
4714
|
* ```javascript
|
|
@@ -4937,73 +4953,73 @@ var NgwConnector$1 = /** @class */ (function () {
|
|
|
4937
4953
|
// Resource Methods
|
|
4938
4954
|
// -------------------------------------------------------------------------
|
|
4939
4955
|
/**
|
|
4940
|
-
* {@
|
|
4956
|
+
* {@link ResourcesControl.getOne}
|
|
4941
4957
|
*/
|
|
4942
4958
|
NgwConnector.prototype.getResource = function (resource, requestOptions) {
|
|
4943
4959
|
return this.resources.getOne(resource, requestOptions);
|
|
4944
4960
|
};
|
|
4945
4961
|
/**
|
|
4946
|
-
* {@
|
|
4962
|
+
* {@link ResourcesControl.getOneOrFail}
|
|
4947
4963
|
*/
|
|
4948
4964
|
NgwConnector.prototype.getResourceOrFail = function (resource, requestOptions) {
|
|
4949
4965
|
return this.resources.getOneOrFail(resource, requestOptions);
|
|
4950
4966
|
};
|
|
4951
4967
|
/**
|
|
4952
|
-
* @deprecated - use {@link
|
|
4968
|
+
* @deprecated - use {@link getResource}
|
|
4953
4969
|
*/
|
|
4954
4970
|
NgwConnector.prototype.getResourceBy = function (resource) {
|
|
4955
4971
|
return this.resources.getOne(resource);
|
|
4956
4972
|
};
|
|
4957
4973
|
/**
|
|
4958
|
-
* @deprecated - use {@link
|
|
4974
|
+
* @deprecated - use {@link getResource}
|
|
4959
4975
|
*/
|
|
4960
4976
|
NgwConnector.prototype.getResourceByKeyname = function (keyname) {
|
|
4961
4977
|
return this.resources.getOne(keyname);
|
|
4962
4978
|
};
|
|
4963
4979
|
/**
|
|
4964
|
-
* @deprecated - use {@link
|
|
4980
|
+
* @deprecated - use {@link getResource}
|
|
4965
4981
|
*/
|
|
4966
4982
|
NgwConnector.prototype.getResourceById = function (id) {
|
|
4967
4983
|
return this.resources.getOne(id);
|
|
4968
4984
|
};
|
|
4969
4985
|
/**
|
|
4970
|
-
* {@
|
|
4986
|
+
* {@link ResourcesControl.getId}
|
|
4971
4987
|
*/
|
|
4972
4988
|
NgwConnector.prototype.getResourceId = function (resource, requestOptions) {
|
|
4973
4989
|
return this.resources.getId(resource, requestOptions);
|
|
4974
4990
|
};
|
|
4975
4991
|
/**
|
|
4976
|
-
* {@
|
|
4992
|
+
* {@link ResourcesControl.getIdOrFail}
|
|
4977
4993
|
*/
|
|
4978
4994
|
NgwConnector.prototype.getResourceIdOrFail = function (resource, requestOptions) {
|
|
4979
4995
|
return this.resources.getIdOrFail(resource, requestOptions);
|
|
4980
4996
|
};
|
|
4981
4997
|
/**
|
|
4982
|
-
* {@
|
|
4998
|
+
* {@link ResourcesControl.getMany}
|
|
4983
4999
|
*/
|
|
4984
5000
|
NgwConnector.prototype.getResourcesBy = function (resource, requestOptions) {
|
|
4985
5001
|
return this.resources.getMany(resource, requestOptions);
|
|
4986
5002
|
};
|
|
4987
5003
|
/**
|
|
4988
|
-
* {@
|
|
5004
|
+
* {@link ResourcesControl.getParent}
|
|
4989
5005
|
*/
|
|
4990
5006
|
NgwConnector.prototype.getResourceParent = function (resource, requestOptions) {
|
|
4991
5007
|
return this.resources.getParent(resource, requestOptions);
|
|
4992
5008
|
};
|
|
4993
5009
|
/**
|
|
4994
|
-
* {@
|
|
5010
|
+
* {@link ResourcesControl.getChildrenOf}
|
|
4995
5011
|
*/
|
|
4996
5012
|
NgwConnector.prototype.getResourceChildren = function (resource, requestOptions) {
|
|
4997
5013
|
return this.resources.getChildrenOf(resource, requestOptions);
|
|
4998
5014
|
};
|
|
4999
5015
|
/**
|
|
5000
|
-
* {@
|
|
5016
|
+
* {@link ResourcesControl.update}
|
|
5001
5017
|
*/
|
|
5002
5018
|
NgwConnector.prototype.updateResource = function (resource, data) {
|
|
5003
5019
|
return this.resources.update(resource, data);
|
|
5004
5020
|
};
|
|
5005
5021
|
/**
|
|
5006
|
-
* {@
|
|
5022
|
+
* {@link ResourcesControl.delete}
|
|
5007
5023
|
*/
|
|
5008
5024
|
NgwConnector.prototype.deleteResource = function (resource) {
|
|
5009
5025
|
return this.resources.delete(resource);
|
|
@@ -5103,7 +5119,6 @@ var NgwConnector$1 = /** @class */ (function () {
|
|
|
5103
5119
|
* @packageDocumentation
|
|
5104
5120
|
* @module ngw-connector
|
|
5105
5121
|
*/
|
|
5106
|
-
// export { NgwConnector };
|
|
5107
5122
|
var NgwConnector = NgwConnector$1;
|
|
5108
5123
|
|
|
5109
5124
|
function getNgwWebmapExtent(webmap) {
|
|
@@ -7501,9 +7516,20 @@ function getSubdomainsOriginUrl(originUrl) {
|
|
|
7501
7516
|
}
|
|
7502
7517
|
|
|
7503
7518
|
var URL = 'https://qms.nextgis.com';
|
|
7504
|
-
function createQmsAdapter(
|
|
7519
|
+
function createQmsAdapter(webMapOrOptions, url, createOpt) {
|
|
7505
7520
|
if (url === void 0) { url = URL; }
|
|
7506
7521
|
if (createOpt === void 0) { createOpt = {}; }
|
|
7522
|
+
var webMap;
|
|
7523
|
+
if ('webMap' in webMapOrOptions) {
|
|
7524
|
+
var webMap_ = webMapOrOptions.webMap, url_ = webMapOrOptions.url, adapterOptions = __rest(webMapOrOptions, ["webMap", "url"]);
|
|
7525
|
+
webMap = webMap_;
|
|
7526
|
+
if (url_) {
|
|
7527
|
+
url = url_;
|
|
7528
|
+
}
|
|
7529
|
+
if (adapterOptions) {
|
|
7530
|
+
createOpt = adapterOptions;
|
|
7531
|
+
}
|
|
7532
|
+
}
|
|
7507
7533
|
if (!url) {
|
|
7508
7534
|
url = URL;
|
|
7509
7535
|
}
|
|
@@ -7591,7 +7617,7 @@ var QmsKit = /** @class */ (function () {
|
|
|
7591
7617
|
]);
|
|
7592
7618
|
};
|
|
7593
7619
|
QmsKit.prototype._createAdapter = function (webMap) {
|
|
7594
|
-
return createQmsAdapter(webMap, this.url);
|
|
7620
|
+
return createQmsAdapter({ webMap: webMap, url: this.url });
|
|
7595
7621
|
};
|
|
7596
7622
|
QmsKit.utils = {
|
|
7597
7623
|
createQmsAdapter: createQmsAdapter,
|
|
@@ -8667,7 +8693,7 @@ var NgwMap = /** @class */ (function (_super) {
|
|
|
8667
8693
|
});
|
|
8668
8694
|
});
|
|
8669
8695
|
};
|
|
8670
|
-
/** @deprecated use {@link
|
|
8696
|
+
/** @deprecated use {@link fitLayer} instead */
|
|
8671
8697
|
NgwMap.prototype.zoomToLayer = function (layerDef) {
|
|
8672
8698
|
return __awaiter(this, void 0, void 0, function () {
|
|
8673
8699
|
return __generator(this, function (_a) {
|
|
@@ -8719,30 +8745,30 @@ var NgwMap = /** @class */ (function (_super) {
|
|
|
8719
8745
|
}
|
|
8720
8746
|
};
|
|
8721
8747
|
/**
|
|
8722
|
-
* @deprecated use {@link
|
|
8748
|
+
* @deprecated use {@link fetchNgwLayerItem} instead
|
|
8723
8749
|
*/
|
|
8724
8750
|
NgwMap.prototype.getNgwLayerItem = function (options) {
|
|
8725
8751
|
return this.fetchNgwLayerItem(options);
|
|
8726
8752
|
};
|
|
8727
8753
|
/**
|
|
8728
|
-
* @deprecated use {@link
|
|
8754
|
+
* @deprecated use {@link fetchNgwLayerItems} instead
|
|
8729
8755
|
*/
|
|
8730
8756
|
NgwMap.prototype.getNgwLayerItems = function (options) {
|
|
8731
8757
|
return this.fetchNgwLayerItems(options);
|
|
8732
8758
|
};
|
|
8733
8759
|
/**
|
|
8734
|
-
* @deprecated use {@link
|
|
8760
|
+
* @deprecated use {@link fetchNgwLayerFeature} instead
|
|
8735
8761
|
*/
|
|
8736
8762
|
NgwMap.prototype.getNgwLayerFeature = function (options) {
|
|
8737
8763
|
return this.fetchNgwLayerFeature(options);
|
|
8738
8764
|
};
|
|
8739
8765
|
/**
|
|
8740
|
-
* @deprecated use {@link
|
|
8766
|
+
* @deprecated use {@link fetchNgwLayerFeatures} instead
|
|
8741
8767
|
*/
|
|
8742
8768
|
NgwMap.prototype.getNgwLayerFeatures = function (options) {
|
|
8743
8769
|
return this.fetchNgwLayerFeatures(options);
|
|
8744
8770
|
};
|
|
8745
|
-
/** @deprecated use {@link
|
|
8771
|
+
/** @deprecated use {@link cancelPromises} instead */
|
|
8746
8772
|
NgwMap.prototype.cancelPromise = function () {
|
|
8747
8773
|
var args = [];
|
|
8748
8774
|
for (var _i = 0; _i < arguments.length; _i++) {
|