@syncfusion/ej2-maps 20.4.44 → 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.
- package/CHANGELOG.md +24 -1
- package/dist/ej2-maps.min.js +2 -2
- package/dist/ej2-maps.umd.min.js +2 -2
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +11 -9
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +11 -9
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/maps/maps.js +8 -7
- package/src/maps/user-interaction/zoom.js +1 -0
- package/src/maps/utils/helper.js +2 -2
package/dist/es6/ej2-maps.es5.js
CHANGED
|
@@ -2005,7 +2005,7 @@ function getTranslate(mapObject, layer, animate) {
|
|
|
2005
2005
|
center = mapObject.zoomSettings.shouldZoomInitially
|
|
2006
2006
|
&& mapObject.markerZoomedState && !mapObject.zoomPersistence ? mapObject.markerZoomCenterPoint :
|
|
2007
2007
|
mapObject.centerPosition;
|
|
2008
|
-
if ((!isNullOrUndefined(centerLongitude) && !isNullOrUndefined(centerLatitude)) || checkMethodeZoom) {
|
|
2008
|
+
if (((!isNullOrUndefined(centerLongitude) && centerLongitude !== 0) && (!isNullOrUndefined(centerLatitude) && centerLatitude !== 0)) || checkMethodeZoom) {
|
|
2009
2009
|
var leftPosition = (((mapWidth + Math.abs(mapObject.mapAreaRect.width - mapWidth)) / 2) + mapObject.mapAreaRect.x) / factor;
|
|
2010
2010
|
var topPosition = (((mapHeight + Math.abs(mapObject.mapAreaRect.height - mapHeight)) / 2) + mapObject.mapAreaRect.y) / factor;
|
|
2011
2011
|
var point = checkMethodeZoom ? calculateCenterFromPixel(mapObject, layer) :
|
|
@@ -2189,7 +2189,7 @@ function getZoomTranslate(mapObject, layer, animate) {
|
|
|
2189
2189
|
var factor = animate ? 1 : mapObject.mapScaleValue;
|
|
2190
2190
|
var mapWidth = Math.abs(max['x'] - min['x']);
|
|
2191
2191
|
var mapHeight = Math.abs(min['y'] - max['y']);
|
|
2192
|
-
if ((!isNullOrUndefined(longitude) && !isNullOrUndefined(latitude)) || checkZoomMethod) {
|
|
2192
|
+
if (((!isNullOrUndefined(longitude) && longitude !== 0) && (!isNullOrUndefined(latitude) && latitude !== 0)) || checkZoomMethod) {
|
|
2193
2193
|
var topPosition = ((mapHeight + Math.abs(mapObject.mapAreaRect.height - mapHeight)) / 2) / factor;
|
|
2194
2194
|
var leftPosition = ((mapWidth + Math.abs(mapObject.mapAreaRect.width - mapWidth)) / 2) / factor;
|
|
2195
2195
|
var point = checkZoomMethod ? calculateCenterFromPixel(mapObject, layer) :
|
|
@@ -7820,33 +7820,33 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7820
7820
|
var bottom = void 0;
|
|
7821
7821
|
var top_1;
|
|
7822
7822
|
var left = void 0;
|
|
7823
|
-
left = parseFloat(tileElement.style.left)
|
|
7823
|
+
left = parseFloat(tileElement.style.left);
|
|
7824
7824
|
var titleTextSize = measureText(this.titleSettings.text, this.titleSettings.textStyle);
|
|
7825
7825
|
var subTitleTextSize = measureText(this.titleSettings.subtitleSettings.text, this.titleSettings.subtitleSettings.textStyle);
|
|
7826
7826
|
if (this.isTileMap && this.isTileMapSubLayer && this.legendSettings.position === 'Bottom' && this.legendSettings.visible) {
|
|
7827
7827
|
if (this.legendSettings.mode !== 'Default') {
|
|
7828
7828
|
if (titleTextSize.width !== 0 && titleTextSize.height !== 0) {
|
|
7829
|
-
top_1 = parseFloat(tileElement.style.top) +
|
|
7829
|
+
top_1 = parseFloat(tileElement.style.top) + (subTitleTextSize.height / 2)
|
|
7830
7830
|
- (this.legendModule.legendBorderRect.height / 2);
|
|
7831
7831
|
}
|
|
7832
7832
|
else {
|
|
7833
|
-
top_1 = parseFloat(tileElement.style.top)
|
|
7833
|
+
top_1 = parseFloat(tileElement.style.top) - this.mapAreaRect.y;
|
|
7834
7834
|
}
|
|
7835
7835
|
}
|
|
7836
7836
|
else {
|
|
7837
7837
|
left = this.legendModule.legendBorderRect.x;
|
|
7838
7838
|
if (titleTextSize.width !== 0 && titleTextSize.height !== 0) {
|
|
7839
|
-
top_1 = parseFloat(tileElement.style.top) +
|
|
7839
|
+
top_1 = parseFloat(tileElement.style.top) + (subTitleTextSize['height'] / 2)
|
|
7840
7840
|
- this.legendModule.legendBorderRect.y;
|
|
7841
7841
|
}
|
|
7842
7842
|
else {
|
|
7843
|
-
top_1 = parseFloat(tileElement.style.top) +
|
|
7843
|
+
top_1 = parseFloat(tileElement.style.top) + (subTitleTextSize['height'] / 2);
|
|
7844
7844
|
}
|
|
7845
7845
|
}
|
|
7846
7846
|
}
|
|
7847
7847
|
else {
|
|
7848
7848
|
bottom = svg.bottom - tile.bottom - element.offsetTop;
|
|
7849
|
-
top_1 = parseFloat(tileElement.style.top)
|
|
7849
|
+
top_1 = parseFloat(tileElement.style.top);
|
|
7850
7850
|
}
|
|
7851
7851
|
top_1 = (bottom <= 11) ? top_1 : (!isNullOrUndefined(this.legendModule) && this.legendSettings.position === 'Bottom') ? this.mapAreaRect.y : (top_1 * 2);
|
|
7852
7852
|
left = (bottom <= 11) ? left : !isNullOrUndefined(this.legendModule) ? left : (left * 2);
|
|
@@ -7866,6 +7866,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7866
7866
|
}
|
|
7867
7867
|
}
|
|
7868
7868
|
this.element.style.outline = 'none';
|
|
7869
|
+
this.element.style.position = 'relative';
|
|
7869
7870
|
for (var i = 0; i < document.getElementsByTagName('path').length - 1; i++) {
|
|
7870
7871
|
if (document.getElementsByTagName('path')[i].id.indexOf('shapeIndex') > -1) {
|
|
7871
7872
|
document.getElementsByTagName('path')[i].style.outline = 'none';
|
|
@@ -8043,7 +8044,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8043
8044
|
var secondaryElement = createElement('div', {
|
|
8044
8045
|
id: this.element.id + '_Secondary_Element'
|
|
8045
8046
|
});
|
|
8046
|
-
secondaryElement.style.cssText = 'position:
|
|
8047
|
+
secondaryElement.style.cssText = 'position: relative;z-index:2;';
|
|
8047
8048
|
this.element.appendChild(secondaryElement);
|
|
8048
8049
|
}
|
|
8049
8050
|
};
|
|
@@ -14526,6 +14527,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14526
14527
|
var datalabelTemplateElemement = getElementByID(maps.element.id + '_LayerIndex_'
|
|
14527
14528
|
+ i + '_Label_Template_Group');
|
|
14528
14529
|
if ((!isNullOrUndefined(markerTemplateElement)) && markerTemplateElement.childElementCount > 0) {
|
|
14530
|
+
markerTemplateElement.style.visibility = "visible";
|
|
14529
14531
|
for (var k = 0; k < markerTemplateElement.childElementCount; k++) {
|
|
14530
14532
|
this.markerTranslate(markerTemplateElement.childNodes[k], factor, x, y, scale, 'Template');
|
|
14531
14533
|
}
|