@syncfusion/ej2-maps 28.2.5 → 28.2.6

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.
@@ -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);