@syncfusion/ej2-maps 32.1.19 → 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.
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * filename: index.d.ts
3
+ * version : 32.1.21
4
+ * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
1
10
  import * as _maps from '@syncfusion/ej2-maps';
2
11
 
3
12
  export declare namespace ej {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-maps",
3
- "version": "32.1.19",
3
+ "version": "32.1.21",
4
4
  "description": "The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
7
7
  "dependencies": {
8
8
  "@syncfusion/ej2-base": "~32.1.19",
9
- "@syncfusion/ej2-buttons": "~32.1.19",
9
+ "@syncfusion/ej2-buttons": "~32.1.21",
10
10
  "@syncfusion/ej2-compression": "~32.1.19",
11
11
  "@syncfusion/ej2-data": "~32.1.19",
12
12
  "@syncfusion/ej2-file-utils": "~32.1.19",
@@ -1664,15 +1664,23 @@ var Legend = /** @class */ (function () {
1664
1664
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1665
1665
  Array.prototype.forEach.call(dataSource, function (data, dataIndex) {
1666
1666
  range_1 = false;
1667
- var rangeValue = data[colorValuePath];
1667
+ var colorValue = data[colorValuePath];
1668
+ var isEmpty = colorValue === '' || isNullOrUndefined(colorValue);
1669
+ var rangeValue = !isEmpty ? Number(colorValue) : NaN;
1670
+ var hasNumeric = !isEmpty && Number.isFinite(rangeValue);
1671
+ var equalValue = !isEmpty ? colorValue : null;
1668
1672
  for (var z = 0; z < colorMapping.length; z++) {
1669
- if (!isNullOrUndefined(rangeValue) && !isNaN(rangeValue)) {
1670
- if (rangeValue >= colorMapping[z].from && rangeValue <= colorMapping[z].to) {
1673
+ var colorMap_1 = colorMapping[z];
1674
+ if (hasNumeric && !isNaN(rangeValue) && colorMap_1.from != null && colorMap_1.to != null) {
1675
+ if (rangeValue >= colorMap_1.from && rangeValue <= colorMap_1.to) {
1671
1676
  range_1 = true;
1677
+ break;
1672
1678
  }
1673
1679
  }
1674
- else if (!range_1) {
1675
- range_1 = false;
1680
+ else if (!hasNumeric && equalValue !== null && !isNullOrUndefined(colorMap_1.value)
1681
+ && equalValue === colorMap_1.value) {
1682
+ range_1 = true;
1683
+ break;
1676
1684
  }
1677
1685
  }
1678
1686
  if (!range_1) {