@syncfusion/ej2-maps 20.4.48 → 20.4.49

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.4.48
3
+ * version : 20.4.49
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-maps@*",
3
- "_id": "@syncfusion/ej2-maps@20.4.44",
3
+ "_id": "@syncfusion/ej2-maps@20.4.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-kIbapKUjj1tBztWAd7E/g7fomL2FOTSnoXV7duLRSUCVfZp7gwIQjIhc5eXch8+uElXzdAv4Fl7s56Yxym24mA==",
5
+ "_integrity": "sha512-223OUDfEl+Z1a+jXhD9ie4XYVHmPPJU3B4LjBpdq5ZcCDtEZmU6nEp/iDBUzj6bx2a4m4wfJ/XrfbgpeB/Ypxw==",
6
6
  "_location": "/@syncfusion/ej2-maps",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-maps",
24
24
  "/@syncfusion/ej2-vue-maps"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-20.4.44.tgz",
27
- "_shasum": "b341ba1e5a519f4842ef787647fd632a6fb3035b",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-20.4.48.tgz",
27
+ "_shasum": "4867f7d8ef1de1f2739c0af3a0a08dc4573b7012",
28
28
  "_spec": "@syncfusion/ej2-maps@*",
29
29
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
30
30
  "author": {
@@ -36,7 +36,7 @@
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~20.4.48",
39
- "@syncfusion/ej2-buttons": "~20.4.48",
39
+ "@syncfusion/ej2-buttons": "~20.4.49",
40
40
  "@syncfusion/ej2-compression": "~20.4.48",
41
41
  "@syncfusion/ej2-data": "~20.4.48",
42
42
  "@syncfusion/ej2-file-utils": "~20.4.48",
@@ -93,6 +93,6 @@
93
93
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
94
94
  },
95
95
  "typings": "index.d.ts",
96
- "version": "20.4.48",
96
+ "version": "20.4.49",
97
97
  "sideEffects": false
98
98
  }
package/src/maps/maps.js CHANGED
@@ -433,33 +433,33 @@ var Maps = /** @class */ (function (_super) {
433
433
  var bottom = void 0;
434
434
  var top_1;
435
435
  var left = void 0;
436
- left = parseFloat(tileElement.style.left) + element.offsetLeft;
436
+ left = parseFloat(tileElement.style.left);
437
437
  var titleTextSize = measureText(this.titleSettings.text, this.titleSettings.textStyle);
438
438
  var subTitleTextSize = measureText(this.titleSettings.subtitleSettings.text, this.titleSettings.subtitleSettings.textStyle);
439
439
  if (this.isTileMap && this.isTileMapSubLayer && this.legendSettings.position === 'Bottom' && this.legendSettings.visible) {
440
440
  if (this.legendSettings.mode !== 'Default') {
441
441
  if (titleTextSize.width !== 0 && titleTextSize.height !== 0) {
442
- top_1 = parseFloat(tileElement.style.top) + element.offsetTop + (subTitleTextSize.height / 2)
442
+ top_1 = parseFloat(tileElement.style.top) + (subTitleTextSize.height / 2)
443
443
  - (this.legendModule.legendBorderRect.height / 2);
444
444
  }
445
445
  else {
446
- top_1 = parseFloat(tileElement.style.top) + element.offsetTop - this.mapAreaRect.y;
446
+ top_1 = parseFloat(tileElement.style.top) - this.mapAreaRect.y;
447
447
  }
448
448
  }
449
449
  else {
450
450
  left = this.legendModule.legendBorderRect.x;
451
451
  if (titleTextSize.width !== 0 && titleTextSize.height !== 0) {
452
- top_1 = parseFloat(tileElement.style.top) + element.offsetTop + (subTitleTextSize['height'] / 2)
452
+ top_1 = parseFloat(tileElement.style.top) + (subTitleTextSize['height'] / 2)
453
453
  - this.legendModule.legendBorderRect.y;
454
454
  }
455
455
  else {
456
- top_1 = parseFloat(tileElement.style.top) + element.offsetTop + (subTitleTextSize['height'] / 2);
456
+ top_1 = parseFloat(tileElement.style.top) + (subTitleTextSize['height'] / 2);
457
457
  }
458
458
  }
459
459
  }
460
460
  else {
461
461
  bottom = svg.bottom - tile.bottom - element.offsetTop;
462
- top_1 = parseFloat(tileElement.style.top) + element.offsetTop;
462
+ top_1 = parseFloat(tileElement.style.top);
463
463
  }
464
464
  top_1 = (bottom <= 11) ? top_1 : (!isNullOrUndefined(this.legendModule) && this.legendSettings.position === 'Bottom') ? this.mapAreaRect.y : (top_1 * 2);
465
465
  left = (bottom <= 11) ? left : !isNullOrUndefined(this.legendModule) ? left : (left * 2);
@@ -479,6 +479,7 @@ var Maps = /** @class */ (function (_super) {
479
479
  }
480
480
  }
481
481
  this.element.style.outline = 'none';
482
+ this.element.style.position = 'relative';
482
483
  for (var i = 0; i < document.getElementsByTagName('path').length - 1; i++) {
483
484
  if (document.getElementsByTagName('path')[i].id.indexOf('shapeIndex') > -1) {
484
485
  document.getElementsByTagName('path')[i].style.outline = 'none';
@@ -656,7 +657,7 @@ var Maps = /** @class */ (function (_super) {
656
657
  var secondaryElement = createElement('div', {
657
658
  id: this.element.id + '_Secondary_Element'
658
659
  });
659
- secondaryElement.style.cssText = 'position: absolute;z-index:2;';
660
+ secondaryElement.style.cssText = 'position: relative;z-index:2;';
660
661
  this.element.appendChild(secondaryElement);
661
662
  }
662
663
  };
@@ -681,6 +681,7 @@ var Zoom = /** @class */ (function () {
681
681
  var datalabelTemplateElemement = getElementByID(maps.element.id + '_LayerIndex_'
682
682
  + i + '_Label_Template_Group');
683
683
  if ((!isNullOrUndefined(markerTemplateElement)) && markerTemplateElement.childElementCount > 0) {
684
+ markerTemplateElement.style.visibility = "visible";
684
685
  for (var k = 0; k < markerTemplateElement.childElementCount; k++) {
685
686
  this.markerTranslate(markerTemplateElement.childNodes[k], factor, x, y, scale, 'Template');
686
687
  }
@@ -2023,7 +2023,7 @@ export function getTranslate(mapObject, layer, animate) {
2023
2023
  center = mapObject.zoomSettings.shouldZoomInitially
2024
2024
  && mapObject.markerZoomedState && !mapObject.zoomPersistence ? mapObject.markerZoomCenterPoint :
2025
2025
  mapObject.centerPosition;
2026
- if ((!isNullOrUndefined(centerLongitude) && !isNullOrUndefined(centerLatitude)) || checkMethodeZoom) {
2026
+ if (((!isNullOrUndefined(centerLongitude) && centerLongitude !== 0) && (!isNullOrUndefined(centerLatitude) && centerLatitude !== 0)) || checkMethodeZoom) {
2027
2027
  var leftPosition = (((mapWidth + Math.abs(mapObject.mapAreaRect.width - mapWidth)) / 2) + mapObject.mapAreaRect.x) / factor;
2028
2028
  var topPosition = (((mapHeight + Math.abs(mapObject.mapAreaRect.height - mapHeight)) / 2) + mapObject.mapAreaRect.y) / factor;
2029
2029
  var point = checkMethodeZoom ? calculateCenterFromPixel(mapObject, layer) :
@@ -2207,7 +2207,7 @@ export function getZoomTranslate(mapObject, layer, animate) {
2207
2207
  var factor = animate ? 1 : mapObject.mapScaleValue;
2208
2208
  var mapWidth = Math.abs(max['x'] - min['x']);
2209
2209
  var mapHeight = Math.abs(min['y'] - max['y']);
2210
- if ((!isNullOrUndefined(longitude) && !isNullOrUndefined(latitude)) || checkZoomMethod) {
2210
+ if (((!isNullOrUndefined(longitude) && longitude !== 0) && (!isNullOrUndefined(latitude) && latitude !== 0)) || checkZoomMethod) {
2211
2211
  var topPosition = ((mapHeight + Math.abs(mapObject.mapAreaRect.height - mapHeight)) / 2) / factor;
2212
2212
  var leftPosition = ((mapWidth + Math.abs(mapObject.mapAreaRect.width - mapWidth)) / 2) / factor;
2213
2213
  var point = checkZoomMethod ? calculateCenterFromPixel(mapObject, layer) :