@syncfusion/ej2-maps 20.3.47 → 20.3.49

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.
@@ -1690,7 +1690,7 @@ function checkShapeDataFields(dataSource, properties, dataPath, propertyPath, la
1690
1690
  dataSource[i][dataPath]);
1691
1691
  var shapePath = checkPropertyPath(shapeDataPath, propertyPath, properties);
1692
1692
  var shapeDataPathValue = !isNullOrUndefined(shapeDataPath) && isNaN(properties[shapePath])
1693
- ? shapeDataPath.toLowerCase() : shapeDataPath;
1693
+ ? (typeof shapeDataPath === 'string' ? shapeDataPath.toLowerCase() : shapeDataPath) : shapeDataPath;
1694
1694
  var propertiesShapePathValue = !isNullOrUndefined(properties[shapePath]) && isNaN(properties[shapePath])
1695
1695
  ? properties[shapePath].toLowerCase() : properties[shapePath];
1696
1696
  if (shapeDataPathValue === propertiesShapePathValue) {
@@ -1714,7 +1714,8 @@ function checkPropertyPath(shapeData, shapePropertyPath, shape) {
1714
1714
  var properties = (Object.prototype.toString.call(shapePropertyPath) === '[object Array]' ?
1715
1715
  shapePropertyPath : [shapePropertyPath]);
1716
1716
  for (var i = 0; i < properties.length; i++) {
1717
- var shapeDataValue = !isNullOrUndefined(shapeData) ? shapeData.toLowerCase() : shapeData;
1717
+ var shapeDataValue = !isNullOrUndefined(shapeData) && typeof shapeData === 'string' ?
1718
+ shapeData.toLowerCase() : shapeData;
1718
1719
  var shapePropertiesValue = !isNullOrUndefined(shape[properties[i]])
1719
1720
  && isNaN(shape[properties[i]])
1720
1721
  ? shape[properties[i]].toLowerCase() : shape[properties[i]];
@@ -8821,7 +8822,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8821
8822
  var propertyName_1 = !isNullOrUndefined(shapeData[i]['properties'][popertyNameArray[j]])
8822
8823
  && isNaN(shapeData[i]['properties'][popertyNameArray[j]]) ?
8823
8824
  shapeData[i]['properties'][popertyNameArray[j]].toLowerCase() : shapeData[i]['properties'][popertyNameArray[j]];
8824
- var shapeName = !isNullOrUndefined(name) ? name.toLowerCase() : name;
8825
+ var shapeName = !isNullOrUndefined(name) && typeof name === 'string' ? name.toLowerCase() : name;
8825
8826
  var k = void 0;
8826
8827
  if (propertyName_1 === shapeName) {
8827
8828
  if (!isNullOrUndefined(this.layers[layerIndex].shapeSettings.colorValuePath)) {
@@ -9969,10 +9970,10 @@ var DataLabel = /** @__PURE__ @class */ (function () {
9969
9970
  for (var i = 0; i < dataSource.length; i++) {
9970
9971
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9971
9972
  var data = dataSource[i];
9972
- var dataShapePathValue = !isNullOrUndefined(data[shapeDataPath]) && isNaN(data[shapeDataPath]) ?
9973
- data[shapeDataPath].toLowerCase() : data[shapeDataPath];
9974
- shapeName = !isNullOrUndefined(shapeName) ? shapeName.toString() : shapeName;
9975
- shapeNameValue = !isNullOrUndefined(shapeName) ? shapeName.toLowerCase() : shapeName;
9973
+ var dataShapePathValue = !isNullOrUndefined(data[shapeDataPath]) && isNaN(data[shapeDataPath]) &&
9974
+ typeof data[shapeDataPath] === 'string' ? data[shapeDataPath].toLowerCase() : data[shapeDataPath];
9975
+ shapeName = !isNullOrUndefined(shapeName) && typeof shapeName === 'string' ? shapeName.toString() : shapeName;
9976
+ shapeNameValue = !isNullOrUndefined(shapeName) && typeof shapeName === 'string' ? shapeName.toLowerCase() : shapeName;
9976
9977
  if ((dataShapePathValue) === shapeNameValue) {
9977
9978
  text = data;
9978
9979
  break;
@@ -12588,10 +12589,11 @@ var Legend = /** @__PURE__ @class */ (function () {
12588
12589
  var shapeData = layerData[i];
12589
12590
  var dataPathValue = (dataPath.indexOf('.') > -1) ? getValueFromObject(data, dataPath) : data[dataPath];
12590
12591
  var shapePath = checkPropertyPath(data[dataPath], shapePropertyPath, shapeData['properties']);
12591
- var dataPathValueCase = !isNullOrUndefined(dataPathValue)
12592
- ? dataPathValue.toLowerCase() : dataPathValue;
12592
+ var dataPathValueCase = !isNullOrUndefined(dataPathValue) &&
12593
+ typeof dataPathValue === 'string' ? dataPathValue.toLowerCase() : dataPathValue;
12593
12594
  var shapeDataValueCase = !isNullOrUndefined(shapeData['properties'][shapePath])
12594
- && isNaN(shapeData['properties'][shapePath]) ? shapeData['properties'][shapePath].toLowerCase() : shapeData['properties'][shapePath];
12595
+ && isNaN(shapeData['properties'][shapePath]) ?
12596
+ shapeData['properties'][shapePath].toLowerCase() : shapeData['properties'][shapePath];
12595
12597
  if (shapeDataValueCase === dataPathValueCase) {
12596
12598
  if (shapeData['geometry']['type'] != 'MultiPoint') {
12597
12599
  legendData.push({