@nextgis/ngw-map 1.9.7 → 1.10.0
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 +39 -12
- package/lib/ngw-map.cjs.js +1 -1
- package/lib/ngw-map.esm-browser.js +27 -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 +27 -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.
|
|
1
|
+
/** Bundle of @nextgis/ngw-map; version: 1.10.0; author: NextGIS */
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import CancelablePromise from '@nextgis/cancelable-promise';
|
|
4
4
|
import { deepmerge, deprecatedWarn, defined, isObject } from '@nextgis/utils';
|
package/lib/ngw-map.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version: 1.
|
|
1
|
+
/** Bundle of @nextgis/ngw-map; version: 1.10.0; author: NextGIS */
|
|
2
2
|
var NgwMap = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -1859,7 +1859,7 @@ var NgwMap = (function (exports) {
|
|
|
1859
1859
|
minZoom: 0,
|
|
1860
1860
|
maxZoom: 20,
|
|
1861
1861
|
paint: {
|
|
1862
|
-
color: '
|
|
1862
|
+
color: '#0000ff',
|
|
1863
1863
|
opacity: 0.4,
|
|
1864
1864
|
strokeOpacity: 1,
|
|
1865
1865
|
stroke: true,
|
|
@@ -1867,7 +1867,7 @@ var NgwMap = (function (exports) {
|
|
|
1867
1867
|
weight: 1,
|
|
1868
1868
|
},
|
|
1869
1869
|
selectedPaint: {
|
|
1870
|
-
color: '
|
|
1870
|
+
color: '#00008b',
|
|
1871
1871
|
opacity: 0.4,
|
|
1872
1872
|
strokeOpacity: 1,
|
|
1873
1873
|
stroke: true,
|
|
@@ -3143,6 +3143,30 @@ var NgwMap = (function (exports) {
|
|
|
3143
3143
|
adapter.clearLayer(cb);
|
|
3144
3144
|
}
|
|
3145
3145
|
};
|
|
3146
|
+
WebMapLayers.prototype.setLayerPaint = function (layerDef, paint) {
|
|
3147
|
+
var layer = this.getLayer(layerDef);
|
|
3148
|
+
if (paint && layer && layer.setPaint) {
|
|
3149
|
+
layer.setPaint(paint);
|
|
3150
|
+
}
|
|
3151
|
+
};
|
|
3152
|
+
WebMapLayers.prototype.setLayerSelectedPaint = function (layerDef, paint) {
|
|
3153
|
+
var layer = this.getLayer(layerDef);
|
|
3154
|
+
if (paint && layer && layer.setSelectedPaint) {
|
|
3155
|
+
layer.setSelectedPaint(paint);
|
|
3156
|
+
}
|
|
3157
|
+
};
|
|
3158
|
+
WebMapLayers.prototype.updateLayerPaint = function (layerDef, paint) {
|
|
3159
|
+
var layer = this.getLayer(layerDef);
|
|
3160
|
+
if (paint && layer && layer.updatePaint) {
|
|
3161
|
+
layer.updatePaint(paint);
|
|
3162
|
+
}
|
|
3163
|
+
};
|
|
3164
|
+
WebMapLayers.prototype.updateLayerSelectedPaint = function (layerDef, paint) {
|
|
3165
|
+
var layer = this.getLayer(layerDef);
|
|
3166
|
+
if (paint && layer && layer.updateSelectedPaint) {
|
|
3167
|
+
layer.updateSelectedPaint(paint);
|
|
3168
|
+
}
|
|
3169
|
+
};
|
|
3146
3170
|
WebMapLayers.prototype.getAttributions = function (options) {
|
|
3147
3171
|
var attributions = [];
|
|
3148
3172
|
for (var l in this._layers) {
|