@syncfusion/ej2-maps 21.2.4 → 21.2.10

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.4
3
+ * version : 21.2.10
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.2.3",
3
+ "_id": "@syncfusion/ej2-maps@21.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-PSiITREcLYnKvsKTv1UDiFpid89kYPUC7VdGSeKHtCKgdU8pgrj3c374QiHCpuarpMm3FN1OZ+SQoCeZlOM9Nw==",
5
+ "_integrity": "sha512-Y9gEOgvl0qWaIIlYpBQp7w9xQI5d3bhqHv56MQU/W0kvmmL5uc6/9K7+KgOIVpr2OpQ63e67o3vSvSjIITHECA==",
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-21.2.3.tgz",
27
- "_shasum": "db740bd3feb13b219448114efef68f484d65c33f",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-21.2.5.tgz",
27
+ "_shasum": "2ffb4ec8a22e88bf01bc6aeb6f96e8d420a169ba",
28
28
  "_spec": "@syncfusion/ej2-maps@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
30
30
  "author": {
@@ -35,12 +35,12 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~21.2.3",
39
- "@syncfusion/ej2-buttons": "~21.2.3",
38
+ "@syncfusion/ej2-base": "~21.2.9",
39
+ "@syncfusion/ej2-buttons": "~21.2.10",
40
40
  "@syncfusion/ej2-compression": "~21.2.3",
41
- "@syncfusion/ej2-data": "~21.2.4",
41
+ "@syncfusion/ej2-data": "~21.2.9",
42
42
  "@syncfusion/ej2-file-utils": "~21.2.3",
43
- "@syncfusion/ej2-pdf-export": "~21.2.3",
43
+ "@syncfusion/ej2-pdf-export": "~21.2.10",
44
44
  "@syncfusion/ej2-svg-base": "~21.2.3"
45
45
  },
46
46
  "deprecated": false,
@@ -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": "21.2.4",
96
+ "version": "21.2.10",
97
97
  "sideEffects": false
98
98
  }
@@ -1293,6 +1293,7 @@ var LayerPanel = /** @class */ (function () {
1293
1293
  imgElement.setAttribute('width', '256px');
1294
1294
  imgElement.setAttribute('src', tile.src);
1295
1295
  imgElement.setAttribute('alt', _this.mapObject.getLocalizedLabel('ImageNotFound'));
1296
+ imgElement.style.setProperty('user-select', 'none');
1296
1297
  child.appendChild(imgElement);
1297
1298
  animateElement.appendChild(child);
1298
1299
  }
@@ -1303,6 +1304,7 @@ var LayerPanel = /** @class */ (function () {
1303
1304
  imgElement.setAttribute('width', '256px');
1304
1305
  imgElement.setAttribute('src', tile.src);
1305
1306
  imgElement.setAttribute('alt', _this.mapObject.getLocalizedLabel('ImageNotFound'));
1307
+ imgElement.style.setProperty('user-select', 'none');
1306
1308
  var child = createElement('div', { id: mapId + '_tile_' + id });
1307
1309
  child.style.position = 'absolute';
1308
1310
  child.style.left = tile.left + 'px';
@@ -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];
@@ -73,93 +73,103 @@ var Zoom = /** @class */ (function () {
73
73
  var scale = map.previousScale = map.scale;
74
74
  var maxZoom = map.zoomSettings.maxZoom;
75
75
  var minZoom = map.zoomSettings.minZoom;
76
- newZoomFactor = (minZoom > newZoomFactor && type === 'ZoomIn') ? minZoom + 1 : newZoomFactor;
77
76
  newZoomFactor = maxZoom >= newZoomFactor ? newZoomFactor : maxZoom;
78
- var prevTilePoint = map.tileTranslatePoint;
79
- if ((!map.isTileMap) && ((type === 'ZoomIn' ? newZoomFactor >= minZoom && newZoomFactor <= maxZoom : newZoomFactor >= minZoom)
80
- || map.isReset)) {
81
- var availSize = map.mapAreaRect;
82
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
83
- var minBounds = map.baseMapRectBounds['min'];
84
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
- var maxBounds = map.baseMapRectBounds['max'];
86
- var mapTotalWidth = Math.abs(minBounds['x'] - maxBounds['x']);
87
- var mapTotalHeight = Math.abs(minBounds['y'] - maxBounds['y']);
88
- var translatePointX = void 0;
89
- var translatePointY = void 0;
90
- if (newZoomFactor < 1.2 && map.projectionType !== 'Eckert5') {
91
- if (mapTotalWidth === 0 || mapTotalHeight === 0 || mapTotalWidth === mapTotalHeight) {
92
- mapTotalWidth = availSize.width / 2;
93
- mapTotalHeight = availSize.height;
77
+ var isToolbarPerform = true;
78
+ switch (type.toLowerCase()) {
79
+ case 'zoomin':
80
+ isToolbarPerform = newZoomFactor <= this.maps.zoomSettings.maxZoom;
81
+ break;
82
+ case 'zoomout':
83
+ isToolbarPerform = newZoomFactor >= this.maps.zoomSettings.minZoom;
84
+ break;
85
+ }
86
+ if (isToolbarPerform) {
87
+ var prevTilePoint = map.tileTranslatePoint;
88
+ if ((!map.isTileMap) && ((type === 'ZoomIn' ? newZoomFactor >= minZoom && newZoomFactor <= maxZoom : newZoomFactor >= minZoom)
89
+ || map.isReset)) {
90
+ var availSize = map.mapAreaRect;
91
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
92
+ var minBounds = map.baseMapRectBounds['min'];
93
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
94
+ var maxBounds = map.baseMapRectBounds['max'];
95
+ var mapTotalWidth = Math.abs(minBounds['x'] - maxBounds['x']);
96
+ var mapTotalHeight = Math.abs(minBounds['y'] - maxBounds['y']);
97
+ var translatePointX = void 0;
98
+ var translatePointY = void 0;
99
+ if (newZoomFactor < 1.2 && map.projectionType !== 'Eckert5') {
100
+ if (mapTotalWidth === 0 || mapTotalHeight === 0 || mapTotalWidth === mapTotalHeight) {
101
+ mapTotalWidth = availSize.width / 2;
102
+ mapTotalHeight = availSize.height;
103
+ }
104
+ newZoomFactor = parseFloat(Math.min(availSize.width / mapTotalWidth, availSize.height / mapTotalHeight).toFixed(2));
105
+ newZoomFactor = newZoomFactor > 1.05 ? 1 : newZoomFactor;
106
+ map.translatePoint = this.calculateInitalZoomTranslatePoint(newZoomFactor, mapTotalWidth, mapTotalHeight, availSize, minBounds, map);
107
+ }
108
+ else {
109
+ var point = map.translatePoint;
110
+ translatePointX = point.x - (((availSize.width / scale) - (availSize.width / newZoomFactor)) / (availSize.width / position.x));
111
+ translatePointY = point.y - (((availSize.height / scale) - (availSize.height / newZoomFactor)) / (availSize.height / position.y));
112
+ var currentHeight = Math.abs(map.baseMapRectBounds['max']['y'] - map.baseMapRectBounds['min']['y']) * newZoomFactor;
113
+ translatePointX = (currentHeight < map.mapAreaRect.height) ? (availSize.x + ((-(minBounds['x'])) + ((availSize.width / 2) - (mapTotalWidth / 2)))) : translatePointX;
114
+ translatePointY = (currentHeight < map.mapAreaRect.height) ? (availSize.y + ((-(minBounds['y'])) + ((availSize.height / 2) - (mapTotalHeight / 2)))) : translatePointY;
115
+ map.translatePoint = new Point(translatePointX, translatePointY);
116
+ }
117
+ map.scale = newZoomFactor;
118
+ if (this.triggerZoomEvent(prevTilePoint, prevLevel, type)) {
119
+ map.translatePoint = map.previousPoint;
120
+ map.scale = map.mapScaleValue = map.previousScale;
121
+ }
122
+ else {
123
+ this.applyTransform(map);
94
124
  }
95
- newZoomFactor = parseFloat(Math.min(availSize.width / mapTotalWidth, availSize.height / mapTotalHeight).toFixed(2));
96
- newZoomFactor = newZoomFactor > 1.05 ? 1 : newZoomFactor;
97
- map.translatePoint = this.calculateInitalZoomTranslatePoint(newZoomFactor, mapTotalWidth, mapTotalHeight, availSize, minBounds, map);
98
- }
99
- else {
100
- var point = map.translatePoint;
101
- translatePointX = point.x - (((availSize.width / scale) - (availSize.width / newZoomFactor)) / (availSize.width / position.x));
102
- translatePointY = point.y - (((availSize.height / scale) - (availSize.height / newZoomFactor)) / (availSize.height / position.y));
103
- var currentHeight = Math.abs(map.baseMapRectBounds['max']['y'] - map.baseMapRectBounds['min']['y']) * newZoomFactor;
104
- translatePointX = (currentHeight < map.mapAreaRect.height) ? (availSize.x + ((-(minBounds['x'])) + ((availSize.width / 2) - (mapTotalWidth / 2)))) : translatePointX;
105
- translatePointY = (currentHeight < map.mapAreaRect.height) ? (availSize.y + ((-(minBounds['y'])) + ((availSize.height / 2) - (mapTotalHeight / 2)))) : translatePointY;
106
- map.translatePoint = new Point(translatePointX, translatePointY);
107
- }
108
- map.scale = newZoomFactor;
109
- if (this.triggerZoomEvent(prevTilePoint, prevLevel, type)) {
110
- map.translatePoint = map.previousPoint;
111
- map.scale = map.mapScaleValue = map.previousScale;
112
- }
113
- else {
114
- this.applyTransform(map);
115
125
  }
116
- }
117
- else if ((map.isTileMap) && (newZoomFactor >= minZoom && newZoomFactor <= maxZoom)) {
118
- this.getTileTranslatePosition(prevLevel, newZoomFactor, position, type);
119
- map.tileZoomLevel = newZoomFactor;
120
- map.zoomSettings.zoomFactor = newZoomFactor;
121
- map.scale = Math.pow(2, newZoomFactor - 1);
122
- if (type === 'ZoomOut' && map.zoomSettings.resetToInitial && map.applyZoomReset && newZoomFactor <= map.initialZoomLevel) {
123
- map.initialCheck = true;
124
- map.zoomPersistence = false;
125
- map.tileTranslatePoint.x = map.initialTileTranslate.x;
126
- map.tileTranslatePoint.y = map.initialTileTranslate.y;
127
- newZoomFactor = map.tileZoomLevel = map.mapScaleValue = map.initialZoomLevel;
126
+ else if ((map.isTileMap) && (newZoomFactor >= minZoom && newZoomFactor <= maxZoom)) {
127
+ this.getTileTranslatePosition(prevLevel, newZoomFactor, position, type);
128
+ map.tileZoomLevel = newZoomFactor;
129
+ map.zoomSettings.zoomFactor = newZoomFactor;
128
130
  map.scale = Math.pow(2, newZoomFactor - 1);
129
- }
130
- map.translatePoint.y = (map.tileTranslatePoint.y - (0.01 * map.mapScaleValue)) / map.scale;
131
- map.translatePoint.x = (map.tileTranslatePoint.x - (0.01 * map.mapScaleValue)) / map.scale;
132
- if (this.triggerZoomEvent(prevTilePoint, prevLevel, type)) {
133
- map.translatePoint = map.tileTranslatePoint = new Point(0, 0);
134
- map.scale = map.previousScale;
135
- map.tileZoomLevel = prevLevel;
136
- map.zoomSettings.zoomFactor = map.previousScale;
137
- }
138
- else {
139
- if (document.querySelector('.GroupElement')) {
140
- document.querySelector('.GroupElement').style.display = 'none';
131
+ if (type === 'ZoomOut' && map.zoomSettings.resetToInitial && map.applyZoomReset && newZoomFactor <= map.initialZoomLevel) {
132
+ map.initialCheck = true;
133
+ map.zoomPersistence = false;
134
+ map.tileTranslatePoint.x = map.initialTileTranslate.x;
135
+ map.tileTranslatePoint.y = map.initialTileTranslate.y;
136
+ newZoomFactor = map.tileZoomLevel = map.mapScaleValue = map.initialZoomLevel;
137
+ map.scale = Math.pow(2, newZoomFactor - 1);
141
138
  }
142
- if (document.getElementById(this.maps.element.id + '_LayerIndex_1')) {
143
- document.getElementById(this.maps.element.id + '_LayerIndex_1').style.display = 'none';
139
+ map.translatePoint.y = (map.tileTranslatePoint.y - (0.01 * map.mapScaleValue)) / map.scale;
140
+ map.translatePoint.x = (map.tileTranslatePoint.x - (0.01 * map.mapScaleValue)) / map.scale;
141
+ if (this.triggerZoomEvent(prevTilePoint, prevLevel, type)) {
142
+ map.translatePoint = map.tileTranslatePoint = new Point(0, 0);
143
+ map.scale = map.previousScale;
144
+ map.tileZoomLevel = prevLevel;
145
+ map.zoomSettings.zoomFactor = map.previousScale;
144
146
  }
145
- this.markerLineAnimation(map);
146
- map.mapLayerPanel.generateTiles(newZoomFactor, map.tileTranslatePoint, type + 'wheel', null, position);
147
- var element1 = document.getElementById(this.maps.element.id + '_tiles');
148
- var animationDuration = this.maps.layersCollection[0].animationDuration;
149
- setTimeout(function () {
150
- // if (type === 'ZoomOut') {
151
- // element1.removeChild(element1.children[element1.childElementCount - 1]);
152
- // if (element1.childElementCount) {
153
- // element1.removeChild(element1.children[element1.childElementCount - 1]);
154
- // } else {
155
- // element1 = element1;
156
- // }
157
- // }
158
- _this.applyTransform(_this.maps);
159
- if (document.getElementById(_this.maps.element.id + '_LayerIndex_1')) {
160
- document.getElementById(_this.maps.element.id + '_LayerIndex_1').style.display = 'block';
147
+ else {
148
+ if (document.querySelector('.GroupElement')) {
149
+ document.querySelector('.GroupElement').style.display = 'none';
161
150
  }
162
- }, animationDuration);
151
+ if (document.getElementById(this.maps.element.id + '_LayerIndex_1')) {
152
+ document.getElementById(this.maps.element.id + '_LayerIndex_1').style.display = 'none';
153
+ }
154
+ this.markerLineAnimation(map);
155
+ map.mapLayerPanel.generateTiles(newZoomFactor, map.tileTranslatePoint, type + 'wheel', null, position);
156
+ var element1 = document.getElementById(this.maps.element.id + '_tiles');
157
+ var animationDuration = this.maps.layersCollection[0].animationDuration;
158
+ setTimeout(function () {
159
+ // if (type === 'ZoomOut') {
160
+ // element1.removeChild(element1.children[element1.childElementCount - 1]);
161
+ // if (element1.childElementCount) {
162
+ // element1.removeChild(element1.children[element1.childElementCount - 1]);
163
+ // } else {
164
+ // element1 = element1;
165
+ // }
166
+ // }
167
+ _this.applyTransform(_this.maps);
168
+ if (document.getElementById(_this.maps.element.id + '_LayerIndex_1')) {
169
+ document.getElementById(_this.maps.element.id + '_LayerIndex_1').style.display = 'block';
170
+ }
171
+ }, animationDuration);
172
+ }
163
173
  }
164
174
  }
165
175
  this.maps.zoomNotApplied = false;
@@ -1338,11 +1348,23 @@ var Zoom = /** @class */ (function () {
1338
1348
  e.stopImmediatePropagation();
1339
1349
  var isTouch = e.pointerType === 'touch' || e.pointerType === '2' || (e.type.indexOf('touch') > -1);
1340
1350
  var toolbar = target.id.split('_Zooming_ToolBar_')[1].split('_')[0];
1341
- if (isTouch) {
1351
+ var isToolbarPerform = true;
1352
+ switch (toolbar.toLowerCase()) {
1353
+ case 'zoomin':
1354
+ isToolbarPerform = (this.maps.isTileMap ? this.maps.tileZoomLevel : this.maps.scale) + 1 <= this.maps.zoomSettings.maxZoom;
1355
+ break;
1356
+ case 'zoomout':
1357
+ isToolbarPerform = (this.maps.isTileMap ? this.maps.tileZoomLevel : this.maps.scale) - 1 >= this.maps.zoomSettings.minZoom;
1358
+ break;
1359
+ case 'reset':
1360
+ isToolbarPerform = Math.round(this.maps.isTileMap ? this.maps.tileZoomLevel : this.maps.scale) != this.maps.zoomSettings.minZoom;
1361
+ break;
1362
+ }
1363
+ if (isTouch && isToolbarPerform) {
1342
1364
  this.handled = true;
1343
1365
  this.performZoomingByToolBar(toolbar);
1344
1366
  }
1345
- else if ((e.type === 'mousedown' || e.type === 'pointerdown') && !this.handled) {
1367
+ else if ((e.type === 'mousedown' || e.type === 'pointerdown') && !this.handled && isToolbarPerform) {
1346
1368
  this.handled = false;
1347
1369
  this.performZoomingByToolBar(toolbar);
1348
1370
  }
@@ -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';