@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.
@@ -11414,7 +11414,7 @@ class DataLabel {
11414
11414
  }
11415
11415
  }
11416
11416
  text = (!isNullOrUndefined(datasrcObj)) ? !isNullOrUndefined(datasrcObj[labelpath]) ?
11417
- datasrcObj[labelpath].toString() : datasrcObj[layer.shapeDataPath] : shapeData['properties'][labelpath];
11417
+ datasrcObj[labelpath].toString() : shapeData['properties'][labelpath] || datasrcObj[layer.shapeDataPath] : shapeData['properties'][labelpath];
11418
11418
  if ((Object.prototype.toString.call(layer.shapePropertyPath) === '[object Array]') &&
11419
11419
  (isNullOrUndefined(text) && (!isNullOrUndefined(layer.dataSource) && layer.dataSource['length'] === 0))) {
11420
11420
  for (let l = 0; l < layer.shapePropertyPath.length; l++) {
@@ -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);