@syncfusion/ej2-maps 31.2.12 → 32.1.21
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/.gitleaksignore +8 -8
- package/aceconfig.js +17 -0
- package/dist/ej2-maps.min.js +2 -2
- package/dist/ej2-maps.umd.min.js +2 -2
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +19 -5
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +19 -5
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/maps/layers/layer-panel.js +6 -0
- package/src/maps/layers/legend.js +13 -5
package/dist/es6/ej2-maps.es5.js
CHANGED
|
@@ -6619,14 +6619,19 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
6619
6619
|
this.rectBounds = null;
|
|
6620
6620
|
var shapeSettings = this.currentLayer.shapeSettings;
|
|
6621
6621
|
for (var r = 0; r < renderData.length; r++) {
|
|
6622
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6622
6623
|
var geometryData = renderData[r];
|
|
6624
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6623
6625
|
var geom = geometryData['geometry'];
|
|
6624
6626
|
var hasGeom = !isNullOrUndefined(geom);
|
|
6625
6627
|
var hasCoords = !isNullOrUndefined(geometryData['coordinates']);
|
|
6626
6628
|
if (hasGeom || hasCoords) {
|
|
6627
6629
|
var type = hasGeom ? geom['type'] : geometryData['type'];
|
|
6630
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6628
6631
|
var coords = hasGeom ? geom['coordinates'] : geometryData['coordinates'];
|
|
6632
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6629
6633
|
var data = geom;
|
|
6634
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6630
6635
|
var properties = geometryData['properties'];
|
|
6631
6636
|
this.generatePoints(type, coords, data, properties);
|
|
6632
6637
|
}
|
|
@@ -6691,6 +6696,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
6691
6696
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6692
6697
|
this_1.currentLayer.dataSource, currentShapeData['property'], this_1.currentLayer.shapeDataPath, this_1.currentLayer.shapePropertyPath, this_1.currentLayer);
|
|
6693
6698
|
if (k !== null) {
|
|
6699
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6694
6700
|
var currentDataSource = this_1.currentLayer.dataSource[k];
|
|
6695
6701
|
if (currentDataSource[shapeSettings.borderColorValuePath]) {
|
|
6696
6702
|
borderValue.color = currentDataSource[shapeSettings.borderColorValuePath];
|
|
@@ -13930,15 +13936,23 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13930
13936
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13931
13937
|
Array.prototype.forEach.call(dataSource, function (data, dataIndex) {
|
|
13932
13938
|
range_1 = false;
|
|
13933
|
-
var
|
|
13939
|
+
var colorValue = data[colorValuePath];
|
|
13940
|
+
var isEmpty = colorValue === '' || isNullOrUndefined(colorValue);
|
|
13941
|
+
var rangeValue = !isEmpty ? Number(colorValue) : NaN;
|
|
13942
|
+
var hasNumeric = !isEmpty && Number.isFinite(rangeValue);
|
|
13943
|
+
var equalValue = !isEmpty ? colorValue : null;
|
|
13934
13944
|
for (var z = 0; z < colorMapping.length; z++) {
|
|
13935
|
-
|
|
13936
|
-
|
|
13945
|
+
var colorMap_1 = colorMapping[z];
|
|
13946
|
+
if (hasNumeric && !isNaN(rangeValue) && colorMap_1.from != null && colorMap_1.to != null) {
|
|
13947
|
+
if (rangeValue >= colorMap_1.from && rangeValue <= colorMap_1.to) {
|
|
13937
13948
|
range_1 = true;
|
|
13949
|
+
break;
|
|
13938
13950
|
}
|
|
13939
13951
|
}
|
|
13940
|
-
else if (!
|
|
13941
|
-
|
|
13952
|
+
else if (!hasNumeric && equalValue !== null && !isNullOrUndefined(colorMap_1.value)
|
|
13953
|
+
&& equalValue === colorMap_1.value) {
|
|
13954
|
+
range_1 = true;
|
|
13955
|
+
break;
|
|
13942
13956
|
}
|
|
13943
13957
|
}
|
|
13944
13958
|
if (!range_1) {
|