@syncfusion/ej2-maps 23.1.44 → 23.2.7

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.
@@ -9856,8 +9856,8 @@ let Maps = class Maps extends Component {
9856
9856
  navigationLine = layer.navigationLineSettings;
9857
9857
  for (const navigation of navigationLine) {
9858
9858
  if (navigation.visible) {
9859
- isSelection = navigation.highlightSettings.enable || isSelection;
9860
- isHighlight = navigation.selectionSettings.enable || isHighlight;
9859
+ isSelection = (!isNullOrUndefined(navigation.highlightSettings) && navigation.highlightSettings.enable) || isSelection;
9860
+ isHighlight = (!isNullOrUndefined(navigation.selectionSettings) && navigation.selectionSettings.enable) || isHighlight;
9861
9861
  }
9862
9862
  }
9863
9863
  for (const marker$$1 of markers) {
@@ -10910,17 +10910,17 @@ class NavigationLine {
10910
10910
  id: this.maps.element.id + '_LayerIndex_' + layerIndex + '_line_Group'
10911
10911
  }));
10912
10912
  for (let i = 0; i < navigation.length; i++) {
10913
- latitude = navigation[i]['properties']['latitude'];
10914
- longitude = navigation[i]['properties']['longitude'];
10915
- visible = navigation[i]['properties']['visible'];
10916
- angle = navigation[i]['angle'];
10917
- width = navigation[i]['width'] || 1;
10918
- color = navigation[i]['color'];
10919
- dashArray = navigation[i]['properties']['dashArray'];
10920
- arrowSettings = navigation[i]['properties']['arrowSettings'];
10921
- showArrow = (isNullOrUndefined(arrowSettings)) ? false : arrowSettings['properties']['showArrow'];
10922
- if (longitude['length'] === latitude['length'] && visible) {
10923
- for (let i = 0; i < longitude['length']; i++) {
10913
+ latitude = navigation[i].latitude;
10914
+ longitude = navigation[i].longitude;
10915
+ visible = !isNullOrUndefined(navigation[i].visible) ? navigation[i].visible : false;
10916
+ angle = !isNullOrUndefined(navigation[i].angle) ? navigation[i].angle : 0;
10917
+ width = navigation[i].width || 1;
10918
+ color = navigation[i].color;
10919
+ dashArray = navigation[i].dashArray;
10920
+ arrowSettings = navigation[i].arrowSettings;
10921
+ showArrow = !isNullOrUndefined(arrowSettings) ? arrowSettings.showArrow : false;
10922
+ if (longitude.length === latitude.length && visible) {
10923
+ for (let i = 0; i < longitude.length; i++) {
10924
10924
  const location = (this.maps.isTileMap) ? convertTileLatLongToPoint(new Point(longitude[i], latitude[i]), factor, this.maps.tileTranslatePoint, true) : convertGeoToPoint(latitude[i], longitude[i], factor, layer, this.maps);
10925
10925
  point.push(location);
10926
10926
  }
@@ -10928,7 +10928,7 @@ class NavigationLine {
10928
10928
  navigationGroup = (this.maps.renderer.createGroup({
10929
10929
  id: this.maps.element.id + '_LayerIndex_' + layerIndex + '_NavigationGroup' + i + ''
10930
10930
  }));
10931
- for (let j = 0; j < point['length'] - 1; j++) {
10931
+ for (let j = 0; j < point.length - 1; j++) {
10932
10932
  angle = (-1 > angle) ? -1 : angle;
10933
10933
  angle = (1 < angle) ? 1 : angle;
10934
10934
  const arcId = this.maps.element.id + '_LayerIndex_' + layerIndex + '_NavigationIndex_' + i + '_Line' + j + '';
@@ -10946,11 +10946,11 @@ class NavigationLine {
10946
10946
  }
10947
10947
  }
10948
10948
  if (showArrow) {
10949
- arrowColor = arrowSettings['properties']['color'];
10950
- arrowSize = arrowSettings['properties']['size'];
10951
- offSetValue = (arrowSettings['properties']['offSet'] === undefined) ? 0 : arrowSettings['properties']['offSet'];
10949
+ arrowColor = arrowSettings.color;
10950
+ arrowSize = arrowSettings.size;
10951
+ offSetValue = !isNullOrUndefined(arrowSettings.offSet) ? arrowSettings.offSet : 0;
10952
10952
  const divide = (Math.round(arrowSize / 2));
10953
- arrowPosition = arrowSettings['properties']['position'];
10953
+ arrowPosition = arrowSettings.position;
10954
10954
  startArrow = (arrowPosition === 'Start') ? 'url(#triangle' + i + ')' : null;
10955
10955
  endArrow = (arrowPosition === 'End') ? 'url(#triangle' + i + ')' : null;
10956
10956
  if (offSet !== 0 && angle === 0) {