@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.
@@ -13323,7 +13323,9 @@ class Legend {
13323
13323
  let imageSrc = null;
13324
13324
  const showLegend = isNullOrUndefined(data[this.maps.legendSettings.showLegendPath]) ? true :
13325
13325
  data[this.maps.legendSettings.showLegendPath];
13326
- if (marker.visible && showLegend && (!isNullOrUndefined(data['latitude'])) && (!isNullOrUndefined(data['longitude']))) {
13326
+ const latitude = !isNullOrUndefined(data['latitude']) || !isNullOrUndefined(data['Latitude']) || !isNullOrUndefined(data[marker.latitudeValuePath]);
13327
+ const longitude = !isNullOrUndefined(data['longitude']) || !isNullOrUndefined(data['Longitude']) || !isNullOrUndefined(data[marker.longitudeValuePath]);
13328
+ if (marker.visible && showLegend && latitude && longitude) {
13327
13329
  if (marker.template) {
13328
13330
  templateFn = getTemplateFunction(marker.template, this.maps);
13329
13331
  const templateElement = templateFn(this.maps);