@syncfusion/ej2-maps 21.2.3 → 21.2.5

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 : 21.2.3
3
+ * version : 21.2.5
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@21.1.41",
3
+ "_id": "@syncfusion/ej2-maps@21.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-wrk5UgYw27d3sQCC9Kp/O1U8oPFsQQi0RYg9FX5PTDYEiAVTB5iWS4dmFivYA2lm3STY1Sy5Emzcn8J9S60J3Q==",
5
+ "_integrity": "sha512-chFGr5RHKzsoD0m4uHhhzZ3VXh16ZKdd9/1B2U9+dlFU1fiQhS3X8tb+zlHpX436ajWxRfPdiH7F5y8HqNhBMQ==",
6
6
  "_location": "/@syncfusion/ej2-maps",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,10 +18,13 @@
18
18
  },
19
19
  "_requiredBy": [
20
20
  "/",
21
- "/@syncfusion/ej2"
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-maps",
23
+ "/@syncfusion/ej2-react-maps",
24
+ "/@syncfusion/ej2-vue-maps"
22
25
  ],
23
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-21.1.41.tgz",
24
- "_shasum": "4681f7e84b378e0caf1bf67faa220146bd4ed7ed",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-21.2.4.tgz",
27
+ "_shasum": "7cf07ae680629ddbb80aec3011aa1c7c7c3439b5",
25
28
  "_spec": "@syncfusion/ej2-maps@*",
26
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
27
30
  "author": {
@@ -33,9 +36,9 @@
33
36
  "bundleDependencies": false,
34
37
  "dependencies": {
35
38
  "@syncfusion/ej2-base": "~21.2.3",
36
- "@syncfusion/ej2-buttons": "~21.2.3",
39
+ "@syncfusion/ej2-buttons": "~21.2.5",
37
40
  "@syncfusion/ej2-compression": "~21.2.3",
38
- "@syncfusion/ej2-data": "~21.2.3",
41
+ "@syncfusion/ej2-data": "~21.2.4",
39
42
  "@syncfusion/ej2-file-utils": "~21.2.3",
40
43
  "@syncfusion/ej2-pdf-export": "~21.2.3",
41
44
  "@syncfusion/ej2-svg-base": "~21.2.3"
@@ -90,6 +93,6 @@
90
93
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
91
94
  },
92
95
  "typings": "index.d.ts",
93
- "version": "21.2.3",
96
+ "version": "21.2.5",
94
97
  "sideEffects": false
95
98
  }
@@ -400,7 +400,7 @@ var Marker = /** @class */ (function () {
400
400
  if ((target.indexOf('_cluster_') > -1)) {
401
401
  var isClusterSame = false;
402
402
  var clusterElement = document.getElementById(target.indexOf('_datalabel_') > -1 ? layer.markerClusterSettings.shape === 'Balloon' ? target.split('_datalabel_')[0] + '_Group' : target.split('_datalabel_')[0] : layer.markerClusterSettings.shape === 'Balloon' ? target + '_Group' : target);
403
- var indexes = layer.markerClusterSettings.shape === 'Balloon' ? clusterElement.children[0].innerText.split(',').map(Number) : clusterElement.innerText.split(',').map(Number);
403
+ var indexes = layer.markerClusterSettings.shape === 'Balloon' ? clusterElement.children[0].textContent.split(',').map(Number) : clusterElement.textContent.split(',').map(Number);
404
404
  collection_1 = [];
405
405
  for (var _i = 0, indexes_1 = indexes; _i < indexes_1.length; _i++) {
406
406
  var i = indexes_1[_i];
@@ -252,7 +252,7 @@ var MapsTooltip = /** @class */ (function () {
252
252
  }
253
253
  }
254
254
  else {
255
- _this.clearTooltip();
255
+ _this.clearTooltip(e.target);
256
256
  }
257
257
  });
258
258
  if (this.svgTooltip) {
@@ -267,7 +267,7 @@ var MapsTooltip = /** @class */ (function () {
267
267
  });
268
268
  }
269
269
  else {
270
- this.clearTooltip();
270
+ this.clearTooltip(e.target);
271
271
  }
272
272
  }
273
273
  else {
@@ -277,7 +277,7 @@ var MapsTooltip = /** @class */ (function () {
277
277
  this.maps.notify(click, this);
278
278
  }
279
279
  else {
280
- this.clearTooltip();
280
+ this.clearTooltip(e.target);
281
281
  }
282
282
  }
283
283
  };
@@ -336,11 +336,14 @@ var MapsTooltip = /** @class */ (function () {
336
336
  }
337
337
  return isTooltipRemoved;
338
338
  };
339
- MapsTooltip.prototype.clearTooltip = function () {
340
- var isTooltipRemoved = this.removeTooltip();
341
- if (isTooltipRemoved) {
342
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
343
- this.maps.clearTemplate();
339
+ MapsTooltip.prototype.clearTooltip = function (element) {
340
+ var tooltipElement = element.closest('#' + this.maps.element.id + '_mapsTooltipparent_template');
341
+ if (isNullOrUndefined(tooltipElement)) {
342
+ var isTooltipRemoved = this.removeTooltip();
343
+ if (isTooltipRemoved) {
344
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
345
+ this.maps.clearTemplate();
346
+ }
344
347
  }
345
348
  };
346
349
  // eslint-disable-next-line valid-jsdoc
@@ -1064,10 +1064,10 @@ export function clusterTemplate(currentLayer, markerTemplate, maps, layerIndex,
1064
1064
  var ele = drawSymbols(shapeCustom['shape'], shapeCustom['imageUrl'], { x: 0, y: 0 }, clusterID, shapeCustom, markerCollection, maps);
1065
1065
  ele.setAttribute('transform', 'translate( ' + tempX + ' ' + tempY + ' )');
1066
1066
  if (eventArg.shape === 'Balloon') {
1067
- ele.children[0].innerText = indexCollection.toString();
1067
+ ele.children[0].textContent = indexCollection.toString();
1068
1068
  }
1069
1069
  else {
1070
- ele.innerText = indexCollection.toString();
1070
+ ele.textContent = indexCollection.toString();
1071
1071
  }
1072
1072
  options = new TextOption(labelID, (0), postionY, 'middle', (colloideBounds.length + 1).toString(), '', '');
1073
1073
  textElement = renderTextElement(options, style, style.color, markerCollection);
@@ -1166,7 +1166,7 @@ export function mergeSeparateCluster(sameMarkerData, maps, markerElement) {
1166
1166
  var markerEle;
1167
1167
  var markerDataLength = sameMarkerData[0].data.length;
1168
1168
  for (var i = 0; i < markerDataLength; i++) {
1169
- markerEle = marker.shape === 'Balloon' ? getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
1169
+ markerEle = marker.shape === 'Balloon' && isNullOrUndefined(marker.template) ? getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
1170
1170
  markerEle['style']['visibility'] = 'hidden';
1171
1171
  }
1172
1172
  removeElement(maps.element.id + '_LayerIndex_' + layerIndex + '_MarkerIndex_' + markerIndex + '_markerClusterConnectorLine');
@@ -1195,7 +1195,7 @@ export function clusterSeparate(sameMarkerData, maps, markerElement, isDom) {
1195
1195
  var clusterEleLabel = getElementFunction(getQueryConnect + '' + clusterId + '_datalabel_' + clusterIndex);
1196
1196
  clusterEle.setAttribute('visibility', 'hidden');
1197
1197
  clusterEleLabel.setAttribute('visibility', 'hidden');
1198
- var markerEle = marker.shape === 'Balloon' ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex);
1198
+ var markerEle = marker.shape === 'Balloon' && isNullOrUndefined(marker.template) ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex);
1199
1199
  var height = markerEle.parentElement.id.indexOf('Template_Group') > -1 ? markerEle.getBoundingClientRect().height : marker.height;
1200
1200
  var width = markerEle.parentElement.id.indexOf('Template_Group') > -1 ? markerEle.getBoundingClientRect().width : marker.width;
1201
1201
  var centerX = +clusterEle.getAttribute('transform').split('translate(')[1].trim().split(' ')[0];
@@ -1231,7 +1231,7 @@ export function clusterSeparate(sameMarkerData, maps, markerElement, isDom) {
1231
1231
  var x1 = centerX + radius * Math.sin((Math.PI * 2 * newAngle) / 360);
1232
1232
  var y1 = centerY + radius * Math.cos((Math.PI * 2 * newAngle) / 360);
1233
1233
  path += start + 'L ' + (x1) + ' ' + y1 + ' ';
1234
- markerEle = marker.shape === 'Balloon' ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
1234
+ markerEle = marker.shape === 'Balloon' && isNullOrUndefined(marker.template) ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
1235
1235
  if (markerEle.parentElement.id.indexOf('Template_Group') > -1) {
1236
1236
  markerEle['style']['transform'] = '';
1237
1237
  markerEle['style']['left'] = maps.isTileMap ? x1 - (width / 2) + 'px' : (x1 - (width / 2) - 10) + 'px';