@syncfusion/ej2-maps 28.2.5 → 28.2.9

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.
@@ -11746,7 +11746,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
11746
11746
  }
11747
11747
  }
11748
11748
  text = (!isNullOrUndefined(datasrcObj)) ? !isNullOrUndefined(datasrcObj[labelpath]) ?
11749
- datasrcObj[labelpath].toString() : datasrcObj[layer.shapeDataPath] : shapeData['properties'][labelpath];
11749
+ datasrcObj[labelpath].toString() : shapeData['properties'][labelpath] || datasrcObj[layer.shapeDataPath] : shapeData['properties'][labelpath];
11750
11750
  if ((Object.prototype.toString.call(layer.shapePropertyPath) === '[object Array]') &&
11751
11751
  (isNullOrUndefined(text) && (!isNullOrUndefined(layer.dataSource) && layer.dataSource['length'] === 0))) {
11752
11752
  for (var l = 0; l < layer.shapePropertyPath.length; l++) {
@@ -13660,7 +13660,9 @@ var Legend = /** @__PURE__ @class */ (function () {
13660
13660
  var imageSrc = null;
13661
13661
  var showLegend = isNullOrUndefined(data[_this.maps.legendSettings.showLegendPath]) ? true :
13662
13662
  data[_this.maps.legendSettings.showLegendPath];
13663
- if (marker.visible && showLegend && (!isNullOrUndefined(data['latitude'])) && (!isNullOrUndefined(data['longitude']))) {
13663
+ var latitude = !isNullOrUndefined(data['latitude']) || !isNullOrUndefined(data['Latitude']) || !isNullOrUndefined(data[marker.latitudeValuePath]);
13664
+ var longitude = !isNullOrUndefined(data['longitude']) || !isNullOrUndefined(data['Longitude']) || !isNullOrUndefined(data[marker.longitudeValuePath]);
13665
+ if (marker.visible && showLegend && latitude && longitude) {
13664
13666
  if (marker.template) {
13665
13667
  templateFn = getTemplateFunction(marker.template, _this.maps);
13666
13668
  var templateElement = templateFn(_this.maps);