@syncfusion/ej2-maps 28.1.38 → 28.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.
- 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 +23 -8
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +24 -8
- 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/layers/legend.js +7 -3
- package/src/maps/model/base-model.d.ts +2 -2
- package/src/maps/model/base.d.ts +2 -2
- package/src/maps/user-interaction/zoom.js +1 -1
- package/src/maps/utils/helper.d.ts +16 -0
- package/src/maps/utils/helper.js +16 -3
package/dist/es6/ej2-maps.es5.js
CHANGED
|
@@ -382,6 +382,18 @@ var Point = /** @__PURE__ @class */ (function () {
|
|
|
382
382
|
}
|
|
383
383
|
return Point;
|
|
384
384
|
}());
|
|
385
|
+
/**
|
|
386
|
+
* Specifies the position of the legend on the map, with options to set the
|
|
387
|
+
* position values as percentages. The legend is placed relative to the Maps,
|
|
388
|
+
* ensuring responsiveness.
|
|
389
|
+
*/
|
|
390
|
+
var RelativePoint = /** @__PURE__ @class */ (function () {
|
|
391
|
+
function RelativePoint(x, y) {
|
|
392
|
+
this.x = x;
|
|
393
|
+
this.y = y;
|
|
394
|
+
}
|
|
395
|
+
return RelativePoint;
|
|
396
|
+
}());
|
|
385
397
|
/**
|
|
386
398
|
* Defines the latitude and longitude values that define a map location.
|
|
387
399
|
*/
|
|
@@ -1330,7 +1342,7 @@ function mergeSeparateCluster(sameMarkerData, maps) {
|
|
|
1330
1342
|
var markerEle;
|
|
1331
1343
|
var markerDataLength = sameMarkerData[0].data.length;
|
|
1332
1344
|
for (var i = 0; i < markerDataLength; i++) {
|
|
1333
|
-
markerEle =
|
|
1345
|
+
markerEle = getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') ? getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
|
|
1334
1346
|
markerEle['style']['visibility'] = 'hidden';
|
|
1335
1347
|
if (markerEle.id.indexOf('Group') > -1) {
|
|
1336
1348
|
var marker_1 = getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
|
|
@@ -1367,7 +1379,7 @@ function clusterSeparate(sameMarkerData, maps, markerElement, isDom) {
|
|
|
1367
1379
|
var clusterEleLabel = getElementFunction(getQueryConnect + '' + clusterId + '_datalabel_' + clusterIndex);
|
|
1368
1380
|
clusterEle.setAttribute('visibility', 'hidden');
|
|
1369
1381
|
clusterEleLabel.setAttribute('visibility', 'hidden');
|
|
1370
|
-
var markerEle =
|
|
1382
|
+
var markerEle = getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex);
|
|
1371
1383
|
var height = markerEle.parentElement.id.indexOf('Template_Group') > -1 ? markerEle.getBoundingClientRect().height : marker.height;
|
|
1372
1384
|
var width = markerEle.parentElement.id.indexOf('Template_Group') > -1 ? markerEle.getBoundingClientRect().width : marker.width;
|
|
1373
1385
|
var centerX = +clusterEle.getAttribute('transform').split('translate(')[1].trim().split(' ')[0];
|
|
@@ -1404,7 +1416,7 @@ function clusterSeparate(sameMarkerData, maps, markerElement, isDom) {
|
|
|
1404
1416
|
var x1 = centerX + radius * Math.sin((Math.PI * 2 * newAngle) / 360);
|
|
1405
1417
|
var y1 = centerY + radius * Math.cos((Math.PI * 2 * newAngle) / 360);
|
|
1406
1418
|
path += start + 'L ' + (x1) + ' ' + y1 + ' ';
|
|
1407
|
-
markerEle =
|
|
1419
|
+
markerEle = getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
|
|
1408
1420
|
if (markerEle.parentElement.id.indexOf('Template_Group') > -1) {
|
|
1409
1421
|
markerEle['style']['transform'] = '';
|
|
1410
1422
|
markerEle['style']['left'] = maps.isTileMap ? x1 - (width / 2) + 'px' : (x1 - (width / 2) - 10) + 'px';
|
|
@@ -12398,7 +12410,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
12398
12410
|
else {
|
|
12399
12411
|
legendText = '';
|
|
12400
12412
|
}
|
|
12401
|
-
if (legend.position === 'Left' || legend.position === 'Right') {
|
|
12413
|
+
if (legend.position === 'Left' || legend.position === 'Right' || legend.position === 'Float') {
|
|
12402
12414
|
for (var i_1 = 0; i_1 < this.legendCollection.length; i_1++) {
|
|
12403
12415
|
var legendItem = this.legendCollection[i_1];
|
|
12404
12416
|
var legendTextSize = measureText(legendItem['text'], legend.textStyle);
|
|
@@ -13573,8 +13585,12 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13573
13585
|
var areaWidth = totalRect.width;
|
|
13574
13586
|
var totalWidth = map.availableSize.width;
|
|
13575
13587
|
var totalHeight = map.availableSize.height;
|
|
13576
|
-
var locationX = !isNullOrUndefined(legend.location.x) ? legend.location.x
|
|
13577
|
-
|
|
13588
|
+
var locationX = !isNullOrUndefined(legend.location.x) ? (typeof (legend.location.x) === 'string' &&
|
|
13589
|
+
legend.location.x.indexOf('%') > -1 ? (map.availableSize.width / 100) * parseFloat(legend.location.x) :
|
|
13590
|
+
typeof (legend.location.x) === 'string' ? parseFloat(legend.location.x) : legend.location.x) : 0;
|
|
13591
|
+
var locationY = !isNullOrUndefined(legend.location.y) ? (typeof (legend.location.y) === 'string' &&
|
|
13592
|
+
legend.location.y.indexOf('%') > -1 ? (map.availableSize.height / 100) * parseFloat(legend.location.y) :
|
|
13593
|
+
typeof (legend.location.y) === 'string' ? parseFloat(legend.location.y) : legend.location.y) : 0;
|
|
13578
13594
|
if (legend.position === 'Float') {
|
|
13579
13595
|
this.translate = map.isTileMap ? new Point(locationX, locationY + (spacing / 4)) :
|
|
13580
13596
|
new Point(locationX + map.mapAreaRect.x, locationY + map.mapAreaRect.y);
|
|
@@ -15729,7 +15745,6 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15729
15745
|
map.markerZoomedState = map.isMarkerZoomCompleted = false;
|
|
15730
15746
|
map.zoomPersistence = map.enablePersistence;
|
|
15731
15747
|
var prevLevel = map.tileZoomLevel;
|
|
15732
|
-
var scale = map.previousScale = map.scale;
|
|
15733
15748
|
var maxZoom = map.zoomSettings.maxZoom;
|
|
15734
15749
|
var minZoom = map.zoomSettings.minZoom;
|
|
15735
15750
|
newZoomFactor = maxZoom >= newZoomFactor ? newZoomFactor : maxZoom;
|
|
@@ -15743,6 +15758,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15743
15758
|
break;
|
|
15744
15759
|
}
|
|
15745
15760
|
if (isToolbarPerform) {
|
|
15761
|
+
var scale = map.previousScale = map.scale;
|
|
15746
15762
|
var prevTilePoint = map.tileTranslatePoint;
|
|
15747
15763
|
if ((!map.isTileMap) && ((type === 'ZoomIn' ? newZoomFactor >= minZoom && newZoomFactor <= maxZoom : newZoomFactor >= minZoom)
|
|
15748
15764
|
|| map.isReset)) {
|
|
@@ -18482,5 +18498,5 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
18482
18498
|
return PdfExport;
|
|
18483
18499
|
}());
|
|
18484
18500
|
|
|
18485
|
-
export { Annotation, Annotations, Arrow, BingMap, Border, Bubble, BubbleSettings, CenterPosition, CircleOption, ColorMapping, ColorMappingSettings, ColorValue, CommonTitleSettings, ConnectorLineSettings, Coordinate, DataLabel, DataLabelSettings, Font, GeoLocation, Highlight, HighlightSettings, ImageExport, InitialMarkerSelectionSettings, InitialShapeSelectionSettings, Internalize, LayerPanel, LayerSettings, Legend, LegendSettings, Line, LineOption, MapAjax, MapLocation, Maps, MapsAreaSettings, MapsTooltip, Margin, Marker, MarkerBase, MarkerClusterData, MarkerClusterSettings, MarkerSettings, MinMax, NavigationLine, NavigationLineSettings, PathOption, PatternOptions, PdfExport, Point, Polygon, PolygonOption, PolygonSetting, PolygonSettings, PolygonTooltipSettings, PolylineOption, Print, Rect, RectOption, Selection, SelectionSettings, ShapeSettings, Size, SubTitleSettings, TextOption, Tile, TitleSettings, ToggleLegendSettings, TooltipSettings, Zoom, ZoomSettings, ZoomToolbarButtonSettings, ZoomToolbarSettings, ZoomToolbarTooltipSettings, acos, aitoff, animate, animationComplete, annotationRendering, appendShape, beforePrint, bubbleClick, bubbleMouseMove, bubbleRendering, calculateBound, calculateCenterFromPixel, calculatePolygonPath, calculateScale, calculateShapes, calculateSize, calculateZoomLevel, changeBorderWidth, changeNavaigationLineWidth, checkPropertyPath, checkShapeDataFields, click, clusterSeparate, clusterTemplate, compareZoomFactor, convertElement, convertElementFromLabel, convertGeoToPoint, convertStringToValue, convertTileLatLongToPoint, createStyle, createSvg, createTooltip, customizeStyle, dataLabelRendering, degreesToRadians, doubleClick, drawBalloon, drawCircle, drawCross, drawDiamond, drawHorizontalLine, drawLine, drawPath, drawPattern, drawPolygon, drawPolyline, drawRectangle, drawStar, drawSymbol, drawSymbols, drawTriangle, drawVerticalLine, elementAnimate, filter, findMidPointOfPolygon, findPosition, fixInitialScaleForTile, formatValue, getDistance, getElement, getElementByID, getElementOffset, getElementsByClassName, getFieldData, getHexColor, getMousePosition, getProcessedMarginValue, getRatioOfBubble, getShapeData, getTargetElement, getTemplateFunction, getTouchCenter, getTouches, getTranslate, getValueFromObject, getZoomTranslate, isCustomPath, itemHighlight, itemSelection, layerRendering, legendRendering, load, loaded, maintainSelection, maintainStyleClass, maintainToggleSelection, marker, markerBoundsComparer, markerClick, markerClusterClick, markerClusterListHandler, markerClusterMouseMove, markerClusterRendering, markerColorChoose, markerDragEnd, markerDragStart, markerMouseMove, markerRendering, markerShapeChoose, markerTemplate, measureText, measureTextElement, mergeSeparateCluster, mouseMove, mousedown, mousemove, mouseup, onclick, pan, panComplete, processResult, querySelector, radiansToDegrees, removeClass, removeElement, renderLegendShape, renderTextElement, resize, rightClick, roundTo, shapeHighlight, shapeRendering, shapeSelected, showTooltip, sinci, smoothTranslate, stringToNumber, sum, targetTouches, textTrim, timeout, tooltipRender, triggerDownload, triggerItemSelectionEvent, triggerShapeEvent, wordWrap, xToCoordinate, yToCoordinate, zoomAnimate, zoomComplete, zoomIn, zoomOut };
|
|
18501
|
+
export { Annotation, Annotations, Arrow, BingMap, Border, Bubble, BubbleSettings, CenterPosition, CircleOption, ColorMapping, ColorMappingSettings, ColorValue, CommonTitleSettings, ConnectorLineSettings, Coordinate, DataLabel, DataLabelSettings, Font, GeoLocation, Highlight, HighlightSettings, ImageExport, InitialMarkerSelectionSettings, InitialShapeSelectionSettings, Internalize, LayerPanel, LayerSettings, Legend, LegendSettings, Line, LineOption, MapAjax, MapLocation, Maps, MapsAreaSettings, MapsTooltip, Margin, Marker, MarkerBase, MarkerClusterData, MarkerClusterSettings, MarkerSettings, MinMax, NavigationLine, NavigationLineSettings, PathOption, PatternOptions, PdfExport, Point, Polygon, PolygonOption, PolygonSetting, PolygonSettings, PolygonTooltipSettings, PolylineOption, Print, Rect, RectOption, RelativePoint, Selection, SelectionSettings, ShapeSettings, Size, SubTitleSettings, TextOption, Tile, TitleSettings, ToggleLegendSettings, TooltipSettings, Zoom, ZoomSettings, ZoomToolbarButtonSettings, ZoomToolbarSettings, ZoomToolbarTooltipSettings, acos, aitoff, animate, animationComplete, annotationRendering, appendShape, beforePrint, bubbleClick, bubbleMouseMove, bubbleRendering, calculateBound, calculateCenterFromPixel, calculatePolygonPath, calculateScale, calculateShapes, calculateSize, calculateZoomLevel, changeBorderWidth, changeNavaigationLineWidth, checkPropertyPath, checkShapeDataFields, click, clusterSeparate, clusterTemplate, compareZoomFactor, convertElement, convertElementFromLabel, convertGeoToPoint, convertStringToValue, convertTileLatLongToPoint, createStyle, createSvg, createTooltip, customizeStyle, dataLabelRendering, degreesToRadians, doubleClick, drawBalloon, drawCircle, drawCross, drawDiamond, drawHorizontalLine, drawLine, drawPath, drawPattern, drawPolygon, drawPolyline, drawRectangle, drawStar, drawSymbol, drawSymbols, drawTriangle, drawVerticalLine, elementAnimate, filter, findMidPointOfPolygon, findPosition, fixInitialScaleForTile, formatValue, getDistance, getElement, getElementByID, getElementOffset, getElementsByClassName, getFieldData, getHexColor, getMousePosition, getProcessedMarginValue, getRatioOfBubble, getShapeData, getTargetElement, getTemplateFunction, getTouchCenter, getTouches, getTranslate, getValueFromObject, getZoomTranslate, isCustomPath, itemHighlight, itemSelection, layerRendering, legendRendering, load, loaded, maintainSelection, maintainStyleClass, maintainToggleSelection, marker, markerBoundsComparer, markerClick, markerClusterClick, markerClusterListHandler, markerClusterMouseMove, markerClusterRendering, markerColorChoose, markerDragEnd, markerDragStart, markerMouseMove, markerRendering, markerShapeChoose, markerTemplate, measureText, measureTextElement, mergeSeparateCluster, mouseMove, mousedown, mousemove, mouseup, onclick, pan, panComplete, processResult, querySelector, radiansToDegrees, removeClass, removeElement, renderLegendShape, renderTextElement, resize, rightClick, roundTo, shapeHighlight, shapeRendering, shapeSelected, showTooltip, sinci, smoothTranslate, stringToNumber, sum, targetTouches, textTrim, timeout, tooltipRender, triggerDownload, triggerItemSelectionEvent, triggerShapeEvent, wordWrap, xToCoordinate, yToCoordinate, zoomAnimate, zoomComplete, zoomIn, zoomOut };
|
|
18486
18502
|
//# sourceMappingURL=ej2-maps.es5.js.map
|