@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.
@@ -10163,8 +10163,8 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
10163
10163
  for (var _a = 0, navigationLine_1 = navigationLine; _a < navigationLine_1.length; _a++) {
10164
10164
  var navigation = navigationLine_1[_a];
10165
10165
  if (navigation.visible) {
10166
- isSelection = navigation.highlightSettings.enable || isSelection;
10167
- isHighlight = navigation.selectionSettings.enable || isHighlight;
10166
+ isSelection = (!isNullOrUndefined(navigation.highlightSettings) && navigation.highlightSettings.enable) || isSelection;
10167
+ isHighlight = (!isNullOrUndefined(navigation.selectionSettings) && navigation.selectionSettings.enable) || isHighlight;
10168
10168
  }
10169
10169
  }
10170
10170
  for (var _b = 0, markers_1 = markers; _b < markers_1.length; _b++) {
@@ -11224,17 +11224,17 @@ var NavigationLine = /** @__PURE__ @class */ (function () {
11224
11224
  id: this.maps.element.id + '_LayerIndex_' + layerIndex + '_line_Group'
11225
11225
  }));
11226
11226
  for (var i = 0; i < navigation.length; i++) {
11227
- latitude = navigation[i]['properties']['latitude'];
11228
- longitude = navigation[i]['properties']['longitude'];
11229
- visible = navigation[i]['properties']['visible'];
11230
- angle = navigation[i]['angle'];
11231
- width = navigation[i]['width'] || 1;
11232
- color = navigation[i]['color'];
11233
- dashArray = navigation[i]['properties']['dashArray'];
11234
- arrowSettings = navigation[i]['properties']['arrowSettings'];
11235
- showArrow = (isNullOrUndefined(arrowSettings)) ? false : arrowSettings['properties']['showArrow'];
11236
- if (longitude['length'] === latitude['length'] && visible) {
11237
- for (var i_1 = 0; i_1 < longitude['length']; i_1++) {
11227
+ latitude = navigation[i].latitude;
11228
+ longitude = navigation[i].longitude;
11229
+ visible = !isNullOrUndefined(navigation[i].visible) ? navigation[i].visible : false;
11230
+ angle = !isNullOrUndefined(navigation[i].angle) ? navigation[i].angle : 0;
11231
+ width = navigation[i].width || 1;
11232
+ color = navigation[i].color;
11233
+ dashArray = navigation[i].dashArray;
11234
+ arrowSettings = navigation[i].arrowSettings;
11235
+ showArrow = !isNullOrUndefined(arrowSettings) ? arrowSettings.showArrow : false;
11236
+ if (longitude.length === latitude.length && visible) {
11237
+ for (var i_1 = 0; i_1 < longitude.length; i_1++) {
11238
11238
  var location_1 = (this.maps.isTileMap) ? convertTileLatLongToPoint(new Point(longitude[i_1], latitude[i_1]), factor, this.maps.tileTranslatePoint, true) : convertGeoToPoint(latitude[i_1], longitude[i_1], factor, layer, this.maps);
11239
11239
  point.push(location_1);
11240
11240
  }
@@ -11242,7 +11242,7 @@ var NavigationLine = /** @__PURE__ @class */ (function () {
11242
11242
  navigationGroup = (this.maps.renderer.createGroup({
11243
11243
  id: this.maps.element.id + '_LayerIndex_' + layerIndex + '_NavigationGroup' + i + ''
11244
11244
  }));
11245
- for (var j = 0; j < point['length'] - 1; j++) {
11245
+ for (var j = 0; j < point.length - 1; j++) {
11246
11246
  angle = (-1 > angle) ? -1 : angle;
11247
11247
  angle = (1 < angle) ? 1 : angle;
11248
11248
  var arcId = this.maps.element.id + '_LayerIndex_' + layerIndex + '_NavigationIndex_' + i + '_Line' + j + '';
@@ -11260,11 +11260,11 @@ var NavigationLine = /** @__PURE__ @class */ (function () {
11260
11260
  }
11261
11261
  }
11262
11262
  if (showArrow) {
11263
- arrowColor = arrowSettings['properties']['color'];
11264
- arrowSize = arrowSettings['properties']['size'];
11265
- offSetValue = (arrowSettings['properties']['offSet'] === undefined) ? 0 : arrowSettings['properties']['offSet'];
11263
+ arrowColor = arrowSettings.color;
11264
+ arrowSize = arrowSettings.size;
11265
+ offSetValue = !isNullOrUndefined(arrowSettings.offSet) ? arrowSettings.offSet : 0;
11266
11266
  var divide = (Math.round(arrowSize / 2));
11267
- arrowPosition = arrowSettings['properties']['position'];
11267
+ arrowPosition = arrowSettings.position;
11268
11268
  startArrow = (arrowPosition === 'Start') ? 'url(#triangle' + i + ')' : null;
11269
11269
  endArrow = (arrowPosition === 'End') ? 'url(#triangle' + i + ')' : null;
11270
11270
  if (offSet !== 0 && angle === 0) {