@syncfusion/ej2-maps 25.2.4 → 25.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/CHANGELOG.md +21 -0
- 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 +322 -202
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +331 -205
- 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 +7 -7
- package/src/maps/layers/bubble.d.ts +3 -4
- package/src/maps/layers/bubble.js +3 -4
- package/src/maps/layers/color-mapping.d.ts +2 -2
- package/src/maps/layers/color-mapping.js +2 -2
- package/src/maps/layers/data-label.d.ts +1 -1
- package/src/maps/layers/data-label.js +1 -1
- package/src/maps/layers/layer-panel.d.ts +7 -7
- package/src/maps/layers/layer-panel.js +11 -20
- package/src/maps/layers/legend.d.ts +9 -0
- package/src/maps/layers/legend.js +96 -19
- package/src/maps/layers/marker.d.ts +8 -8
- package/src/maps/layers/marker.js +8 -8
- package/src/maps/layers/navigation-selected-line.d.ts +1 -1
- package/src/maps/layers/navigation-selected-line.js +1 -1
- package/src/maps/layers/polygon.d.ts +1 -1
- package/src/maps/layers/polygon.js +1 -1
- package/src/maps/maps.d.ts +24 -26
- package/src/maps/maps.js +32 -30
- package/src/maps/model/base-model.d.ts +18 -2
- package/src/maps/model/base.d.ts +16 -2
- package/src/maps/model/base.js +7 -1
- package/src/maps/model/constants.d.ts +0 -4
- package/src/maps/model/constants.js +0 -4
- package/src/maps/model/interface.d.ts +2 -1
- package/src/maps/model/print.d.ts +3 -3
- package/src/maps/model/print.js +3 -3
- package/src/maps/model/theme.d.ts +1 -1
- package/src/maps/model/theme.js +1 -1
- package/src/maps/user-interaction/annotation.d.ts +1 -2
- package/src/maps/user-interaction/annotation.js +1 -2
- package/src/maps/user-interaction/highlight.d.ts +4 -4
- package/src/maps/user-interaction/highlight.js +4 -4
- package/src/maps/user-interaction/selection.d.ts +5 -5
- package/src/maps/user-interaction/selection.js +5 -5
- package/src/maps/user-interaction/tooltip.d.ts +6 -6
- package/src/maps/user-interaction/tooltip.js +18 -11
- package/src/maps/user-interaction/zoom.d.ts +6 -4
- package/src/maps/user-interaction/zoom.js +23 -10
- package/src/maps/utils/helper.d.ts +87 -72
- package/src/maps/utils/helper.js +114 -78
package/dist/es6/ej2-maps.es5.js
CHANGED
|
@@ -31,7 +31,7 @@ var Size = /** @__PURE__ @class */ (function () {
|
|
|
31
31
|
return Size;
|
|
32
32
|
}());
|
|
33
33
|
/**
|
|
34
|
-
* To find number from string
|
|
34
|
+
* To find number from string.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} value Specifies the value
|
|
37
37
|
* @param {number} containerSize Specifies the container size
|
|
@@ -45,7 +45,7 @@ function stringToNumber(value, containerSize) {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
* Method to calculate the width and height of the maps
|
|
48
|
+
* Method to calculate the width and height of the maps.
|
|
49
49
|
*
|
|
50
50
|
* @param {Maps} maps Specifies the maps instance
|
|
51
51
|
* @returns {void}
|
|
@@ -90,7 +90,7 @@ function createSvg(maps) {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* Method to get the mouse position
|
|
93
|
+
* Method to get the mouse position.
|
|
94
94
|
*
|
|
95
95
|
* @param {number} pageX - Specifies the pageX.
|
|
96
96
|
* @param {number} pageY - Specifies the pageY.
|
|
@@ -109,7 +109,7 @@ function getMousePosition(pageX, pageY, element) {
|
|
|
109
109
|
return new MapLocation((pageX - positionX), (pageY - positionY));
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
* Method to convert degrees to radians
|
|
112
|
+
* Method to convert degrees to radians.
|
|
113
113
|
*
|
|
114
114
|
* @param {number} deg Specifies the degree value
|
|
115
115
|
* @returns {number} Returns the number
|
|
@@ -119,7 +119,7 @@ function degreesToRadians(deg) {
|
|
|
119
119
|
return deg * (Math.PI / 180);
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
-
* Convert radians to degrees method
|
|
122
|
+
* Convert radians to degrees method.
|
|
123
123
|
*
|
|
124
124
|
* @param {number} radian Specifies the radian value
|
|
125
125
|
* @returns {number} Returns the number
|
|
@@ -129,7 +129,7 @@ function radiansToDegrees(radian) {
|
|
|
129
129
|
return radian * (180 / Math.PI);
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
|
-
* Method for converting from latitude and longitude values to points
|
|
132
|
+
* Method for converting from latitude and longitude values to points.
|
|
133
133
|
*
|
|
134
134
|
* @param {number} latitude - Specifies the latitude.
|
|
135
135
|
* @param {number} longitude - Specifies the longitude.
|
|
@@ -238,7 +238,7 @@ function calculatePolygonPath(maps, factor, currentLayer, markerData) {
|
|
|
238
238
|
return path;
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
|
-
* Converting tile latitude and longitude to point
|
|
241
|
+
* Converting tile latitude and longitude to point.
|
|
242
242
|
*
|
|
243
243
|
* @param {MapLocation} center Specifies the map center location
|
|
244
244
|
* @param {number} zoomLevel Specifies the zoom level
|
|
@@ -261,7 +261,7 @@ function convertTileLatLongToPoint(center, zoomLevel, tileTranslatePoint, isMapC
|
|
|
261
261
|
return { x: pixelX, y: pixelY };
|
|
262
262
|
}
|
|
263
263
|
/**
|
|
264
|
-
* Method for calculate x point
|
|
264
|
+
* Method for calculate x point.
|
|
265
265
|
*
|
|
266
266
|
* @param {Maps} mapObject - Specifies the maps.
|
|
267
267
|
* @param {number} val - Specifies the value.
|
|
@@ -275,7 +275,7 @@ function xToCoordinate(mapObject, val) {
|
|
|
275
275
|
return Math.round(totalSize * (val - longitudeMinMax.min) / (longitudeMinMax.max - longitudeMinMax.min) * 100) / 100;
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
|
-
* Method for calculate y point
|
|
278
|
+
* Method for calculate y point.
|
|
279
279
|
*
|
|
280
280
|
* @param {Maps} mapObject - Specifies the maps.
|
|
281
281
|
* @param {number} val - Specifies the value.
|
|
@@ -287,7 +287,7 @@ function yToCoordinate(mapObject, val) {
|
|
|
287
287
|
return Math.round(mapObject.mapAreaRect.height * (val - latitudeMinMax.min) / (latitudeMinMax.max - latitudeMinMax.min) * 100) / 100;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
|
-
* Method for calculate aitoff projection
|
|
290
|
+
* Method for calculate aitoff projection.
|
|
291
291
|
*
|
|
292
292
|
* @param {number} x - Specifies the x value.
|
|
293
293
|
* @param {number} y - Specifies the y value.
|
|
@@ -300,7 +300,7 @@ function aitoff(x, y) {
|
|
|
300
300
|
return new Point(2 * cosy * Math.sin(x) * sincia, Math.sin(y) * sincia);
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
|
-
* Method to round the number
|
|
303
|
+
* Method to round the number.
|
|
304
304
|
*
|
|
305
305
|
* @param {number} a - Specifies the a value
|
|
306
306
|
* @param {number} b - Specifies the b value
|
|
@@ -330,7 +330,7 @@ function acos(a) {
|
|
|
330
330
|
return Math.acos(a);
|
|
331
331
|
}
|
|
332
332
|
/**
|
|
333
|
-
* Method to calculate bound
|
|
333
|
+
* Method to calculate bound.
|
|
334
334
|
*
|
|
335
335
|
* @param {number} value Specifies the value
|
|
336
336
|
* @param {number} min Specifies the minimum value
|
|
@@ -348,7 +348,7 @@ function calculateBound(value, min, max) {
|
|
|
348
348
|
return value;
|
|
349
349
|
}
|
|
350
350
|
/**
|
|
351
|
-
* To trigger the download element
|
|
351
|
+
* To trigger the download element.
|
|
352
352
|
*
|
|
353
353
|
* @param {string} fileName Specifies the file name
|
|
354
354
|
* @param {ExportType} type Specifies the type
|
|
@@ -435,7 +435,8 @@ function measureText(text, font) {
|
|
|
435
435
|
* @param {string} text - Specifies the text.
|
|
436
436
|
* @param {FontModel} font - Specifies the font.
|
|
437
437
|
* @returns {Size} - Returns the size of text.
|
|
438
|
-
* @private
|
|
438
|
+
* @private
|
|
439
|
+
*/
|
|
439
440
|
function measureTextElement(text, font) {
|
|
440
441
|
var canvas = document.createElement('canvas');
|
|
441
442
|
// eslint-disable-next-line @typescript-eslint/tslint/config
|
|
@@ -447,7 +448,7 @@ function measureTextElement(text, font) {
|
|
|
447
448
|
return new Size(width, height);
|
|
448
449
|
}
|
|
449
450
|
/**
|
|
450
|
-
* Internal use of text options
|
|
451
|
+
* Internal use of text options.
|
|
451
452
|
*
|
|
452
453
|
* @private
|
|
453
454
|
*/
|
|
@@ -467,7 +468,7 @@ var TextOption = /** @__PURE__ @class */ (function () {
|
|
|
467
468
|
return TextOption;
|
|
468
469
|
}());
|
|
469
470
|
/**
|
|
470
|
-
* Internal use of path options
|
|
471
|
+
* Internal use of path options.
|
|
471
472
|
*
|
|
472
473
|
* @private
|
|
473
474
|
*/
|
|
@@ -494,7 +495,7 @@ var ColorValue = /** @__PURE__ @class */ (function () {
|
|
|
494
495
|
return ColorValue;
|
|
495
496
|
}());
|
|
496
497
|
/**
|
|
497
|
-
* Internal use of rectangle options
|
|
498
|
+
* Internal use of rectangle options.
|
|
498
499
|
*
|
|
499
500
|
* @private
|
|
500
501
|
*/
|
|
@@ -517,7 +518,7 @@ var RectOption = /** @__PURE__ @class */ (function (_super) {
|
|
|
517
518
|
return RectOption;
|
|
518
519
|
}(PathOption));
|
|
519
520
|
/**
|
|
520
|
-
* Internal use of circle options
|
|
521
|
+
* Internal use of circle options.
|
|
521
522
|
*
|
|
522
523
|
* @private
|
|
523
524
|
*/
|
|
@@ -536,7 +537,7 @@ var CircleOption = /** @__PURE__ @class */ (function (_super) {
|
|
|
536
537
|
return CircleOption;
|
|
537
538
|
}(PathOption));
|
|
538
539
|
/**
|
|
539
|
-
* Internal use of polygon options
|
|
540
|
+
* Internal use of polygon options.
|
|
540
541
|
*
|
|
541
542
|
* @private
|
|
542
543
|
*/
|
|
@@ -553,7 +554,7 @@ var PolygonOption = /** @__PURE__ @class */ (function (_super) {
|
|
|
553
554
|
return PolygonOption;
|
|
554
555
|
}(PathOption));
|
|
555
556
|
/**
|
|
556
|
-
* Internal use of polyline options
|
|
557
|
+
* Internal use of polyline options.
|
|
557
558
|
*
|
|
558
559
|
* @private
|
|
559
560
|
*/
|
|
@@ -568,7 +569,7 @@ var PolylineOption = /** @__PURE__ @class */ (function (_super) {
|
|
|
568
569
|
return PolylineOption;
|
|
569
570
|
}(PolygonOption));
|
|
570
571
|
/**
|
|
571
|
-
* Internal use of line options
|
|
572
|
+
* Internal use of line options.
|
|
572
573
|
*
|
|
573
574
|
* @private
|
|
574
575
|
*/
|
|
@@ -588,7 +589,7 @@ var LineOption = /** @__PURE__ @class */ (function (_super) {
|
|
|
588
589
|
return LineOption;
|
|
589
590
|
}(PathOption));
|
|
590
591
|
/**
|
|
591
|
-
* Internal use of line
|
|
592
|
+
* Internal use of line.
|
|
592
593
|
*
|
|
593
594
|
* @property {number} Line - Specifies the line class
|
|
594
595
|
* @private
|
|
@@ -603,7 +604,7 @@ var Line = /** @__PURE__ @class */ (function () {
|
|
|
603
604
|
return Line;
|
|
604
605
|
}());
|
|
605
606
|
/**
|
|
606
|
-
* Internal use of map location type
|
|
607
|
+
* Internal use of map location type.
|
|
607
608
|
*
|
|
608
609
|
* @private
|
|
609
610
|
*/
|
|
@@ -615,7 +616,7 @@ var MapLocation = /** @__PURE__ @class */ (function () {
|
|
|
615
616
|
return MapLocation;
|
|
616
617
|
}());
|
|
617
618
|
/**
|
|
618
|
-
* Internal use of type rect
|
|
619
|
+
* Internal use of type rect.
|
|
619
620
|
*
|
|
620
621
|
* @private
|
|
621
622
|
*/
|
|
@@ -653,7 +654,7 @@ var PatternOptions = /** @__PURE__ @class */ (function () {
|
|
|
653
654
|
return PatternOptions;
|
|
654
655
|
}());
|
|
655
656
|
/**
|
|
656
|
-
* Internal rendering of text
|
|
657
|
+
* Internal rendering of text.
|
|
657
658
|
*
|
|
658
659
|
* @param {TextOption} option Specifies the text option
|
|
659
660
|
* @param {FontModel} style Specifies the style
|
|
@@ -833,7 +834,7 @@ function convertElementFromLabel(element, labelId, data) {
|
|
|
833
834
|
* @returns {Element} - Returns the element
|
|
834
835
|
* @private
|
|
835
836
|
*/
|
|
836
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
837
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
837
838
|
function drawSymbols(shape, imageUrl, location, markerID, shapeCustom, markerCollection, maps) {
|
|
838
839
|
var markerEle;
|
|
839
840
|
var x;
|
|
@@ -1191,7 +1192,8 @@ function clusterTemplate(currentLayer, markerTemplate, maps, layerIndex, markerC
|
|
|
1191
1192
|
* @param {number} index - Specifies the index.
|
|
1192
1193
|
* @param {number} indexCollection - Specifies the index Collection.
|
|
1193
1194
|
* @returns {void}
|
|
1194
|
-
* @private
|
|
1195
|
+
* @private
|
|
1196
|
+
*/
|
|
1195
1197
|
function markerClusterListHandler(maps, currentZoomFactor, layerIndex, index, indexCollection) {
|
|
1196
1198
|
if (currentZoomFactor === 1) {
|
|
1197
1199
|
var initialMarkerClusterList = isNullOrUndefined(maps.markerModule.initialMarkerCluster[layerIndex][index]) ? [] : indexCollection.length > 1 ? indexCollection : [];
|
|
@@ -1210,7 +1212,8 @@ function markerClusterListHandler(maps, currentZoomFactor, layerIndex, index, in
|
|
|
1210
1212
|
* @param {number[]} indexCollection - Specifies the index collection.
|
|
1211
1213
|
* @param {number} p - Specifies the p.
|
|
1212
1214
|
* @returns {void}
|
|
1213
|
-
* @private
|
|
1215
|
+
* @private
|
|
1216
|
+
*/
|
|
1214
1217
|
function markerBoundsComparer(tempElement, markerBounds, colloideBounds, indexCollection, p) {
|
|
1215
1218
|
// eslint-disable-next-line @typescript-eslint/tslint/config
|
|
1216
1219
|
var currentMarkerBound = tempElement.getBoundingClientRect();
|
|
@@ -1370,6 +1373,11 @@ function marker(eventArgs, markerSettings, markerData, dataIndex, location, tran
|
|
|
1370
1373
|
var y = (maps.isTileMap ? location.y : (location.y + transPoint.y) * scale) + offset.y;
|
|
1371
1374
|
ele.setAttribute('transform', 'translate( ' + x + ' ' + y + ' )');
|
|
1372
1375
|
maintainSelection(maps.selectedMarkerElementId, maps.markerSelectionClass, ele, 'MarkerselectionMapStyle');
|
|
1376
|
+
if (maps.legendSettings.toggleLegendSettings.enable && maps.legendSettings.type === 'Markers') {
|
|
1377
|
+
var layerIndex = parseInt(ele.id.split('_LayerIndex_')[1], 10);
|
|
1378
|
+
maintainToggleSelection(maps.toggledElementId, ele.tagName === 'g' ? ele.children[0] : ele, maps.legendSettings.toggleLegendSettings.applyShapeSettings ?
|
|
1379
|
+
maps.layers[layerIndex].shapeSettings : maps.legendSettings.toggleLegendSettings);
|
|
1380
|
+
}
|
|
1373
1381
|
markerCollection.appendChild(ele);
|
|
1374
1382
|
var element = (markerData.length - 1) === dataIndex ? 'marker' : null;
|
|
1375
1383
|
var markerPoint = new Point(x, y);
|
|
@@ -1394,7 +1402,7 @@ function marker(eventArgs, markerSettings, markerData, dataIndex, location, tran
|
|
|
1394
1402
|
* @returns {HTMLElement} - Returns the html element
|
|
1395
1403
|
* @private
|
|
1396
1404
|
*/
|
|
1397
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1405
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1398
1406
|
function markerTemplate(eventArgs, templateFn, markerID, data, markerIndex, markerTemplate, location, transPoint, scale, offset, maps) {
|
|
1399
1407
|
templateFn = getTemplateFunction(eventArgs.template, maps);
|
|
1400
1408
|
if (templateFn && (templateFn(data, maps, eventArgs.template, maps.element.id + '_MarkerTemplate' + markerIndex, false).length)) {
|
|
@@ -1419,7 +1427,7 @@ function markerTemplate(eventArgs, templateFn, markerID, data, markerIndex, mark
|
|
|
1419
1427
|
return markerTemplate;
|
|
1420
1428
|
}
|
|
1421
1429
|
/**
|
|
1422
|
-
* To maintain selection during page resize
|
|
1430
|
+
* To maintain selection during page resize.
|
|
1423
1431
|
*
|
|
1424
1432
|
* @param {string[]} elementId - Specifies the element id
|
|
1425
1433
|
* @param {Element} elementClass - Specifies the element class
|
|
@@ -1446,7 +1454,30 @@ function maintainSelection(elementId, elementClass, element, className) {
|
|
|
1446
1454
|
}
|
|
1447
1455
|
}
|
|
1448
1456
|
/**
|
|
1449
|
-
* To maintain
|
|
1457
|
+
* To maintain toggle state during page resize.
|
|
1458
|
+
*
|
|
1459
|
+
* @param {string[]} toggledElements - Specifies the list of toggled elements
|
|
1460
|
+
* @param {Element} element - Specifies the element id
|
|
1461
|
+
* @param {any} styleProperty - Specifies the style properties
|
|
1462
|
+
* @returns {void}
|
|
1463
|
+
* @private
|
|
1464
|
+
*/
|
|
1465
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1466
|
+
function maintainToggleSelection(toggledElements, element, styleProperty) {
|
|
1467
|
+
if (!isNullOrUndefined(toggledElements) && toggledElements.length > 0) {
|
|
1468
|
+
for (var j = 0; j < toggledElements.length; j++) {
|
|
1469
|
+
if (toggledElements[j] === element.id) {
|
|
1470
|
+
element.setAttribute('fill', styleProperty.fill);
|
|
1471
|
+
element.setAttribute('stroke', styleProperty.border.color);
|
|
1472
|
+
element.setAttribute('fill-opacity', (styleProperty.opacity).toString());
|
|
1473
|
+
element.setAttribute('stroke-opacity', (isNullOrUndefined(styleProperty.border.opacity) ? styleProperty.opacity : styleProperty.border.opacity).toString());
|
|
1474
|
+
element.setAttribute('stroke-width', (isNullOrUndefined(styleProperty.border.width) ? 0 : styleProperty.border.width).toString());
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* To maintain selection style class.
|
|
1450
1481
|
*
|
|
1451
1482
|
* @param {string} id - Specifies the id
|
|
1452
1483
|
* @param {string} idClass - Specifies the class id
|
|
@@ -1472,7 +1503,7 @@ function maintainStyleClass(id, idClass, fill, opacity, borderColor, borderWidth
|
|
|
1472
1503
|
}
|
|
1473
1504
|
}
|
|
1474
1505
|
/**
|
|
1475
|
-
* Internal use of append shape element
|
|
1506
|
+
* Internal use of append shape element.
|
|
1476
1507
|
*
|
|
1477
1508
|
* @param {Element} shape - Specifies the shape
|
|
1478
1509
|
* @param {Element} element - Specifies the element
|
|
@@ -1486,7 +1517,7 @@ function appendShape(shape, element) {
|
|
|
1486
1517
|
return shape;
|
|
1487
1518
|
}
|
|
1488
1519
|
/**
|
|
1489
|
-
* Internal rendering of Circle
|
|
1520
|
+
* Internal rendering of Circle.
|
|
1490
1521
|
*
|
|
1491
1522
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1492
1523
|
* @param {CircleOption} options - Specifies the circle options
|
|
@@ -1498,7 +1529,7 @@ function drawCircle(maps, options, element) {
|
|
|
1498
1529
|
return appendShape(maps.renderer.drawCircle(options), element);
|
|
1499
1530
|
}
|
|
1500
1531
|
/**
|
|
1501
|
-
* Internal rendering of Rectangle
|
|
1532
|
+
* Internal rendering of Rectangle.
|
|
1502
1533
|
*
|
|
1503
1534
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1504
1535
|
* @param {RectOption} options - Specifies the rect options
|
|
@@ -1510,7 +1541,7 @@ function drawRectangle(maps, options, element) {
|
|
|
1510
1541
|
return appendShape(maps.renderer.drawRectangle(options), element);
|
|
1511
1542
|
}
|
|
1512
1543
|
/**
|
|
1513
|
-
* Internal rendering of Path
|
|
1544
|
+
* Internal rendering of Path.
|
|
1514
1545
|
*
|
|
1515
1546
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1516
1547
|
* @param {PathOption} options - Specifies the polygon options
|
|
@@ -1522,7 +1553,7 @@ function drawPath(maps, options, element) {
|
|
|
1522
1553
|
return appendShape(maps.renderer.drawPath(options), element);
|
|
1523
1554
|
}
|
|
1524
1555
|
/**
|
|
1525
|
-
* Internal rendering of Polygon
|
|
1556
|
+
* Internal rendering of Polygon.
|
|
1526
1557
|
*
|
|
1527
1558
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1528
1559
|
* @param {PolygonOption} options - Specifies the polygon options
|
|
@@ -1534,7 +1565,7 @@ function drawPolygon(maps, options, element) {
|
|
|
1534
1565
|
return appendShape(maps.renderer.drawPolygon(options), element);
|
|
1535
1566
|
}
|
|
1536
1567
|
/**
|
|
1537
|
-
* Internal rendering of Polyline
|
|
1568
|
+
* Internal rendering of Polyline.
|
|
1538
1569
|
*
|
|
1539
1570
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1540
1571
|
* @param {PolylineOption} options - Specifies the poly line options
|
|
@@ -1546,7 +1577,7 @@ function drawPolyline(maps, options, element) {
|
|
|
1546
1577
|
return appendShape(maps.renderer.drawPolyline(options), element);
|
|
1547
1578
|
}
|
|
1548
1579
|
/**
|
|
1549
|
-
* Internal rendering of Line
|
|
1580
|
+
* Internal rendering of Line.
|
|
1550
1581
|
*
|
|
1551
1582
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1552
1583
|
* @param {LineOption} options - Specifies the line options
|
|
@@ -1558,7 +1589,7 @@ function drawLine(maps, options, element) {
|
|
|
1558
1589
|
return appendShape(maps.renderer.drawLine(options), element);
|
|
1559
1590
|
}
|
|
1560
1591
|
/**
|
|
1561
|
-
* Calculate marker shapes
|
|
1592
|
+
* Calculate marker shapes.
|
|
1562
1593
|
*
|
|
1563
1594
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1564
1595
|
* @param {MarkerType} shape - Specifies the marker type
|
|
@@ -1625,7 +1656,7 @@ function calculateShapes(maps, shape, options, size, location, markerEle) {
|
|
|
1625
1656
|
return shape === 'Balloon' ? tempGroup : maps.renderer.drawPath(options);
|
|
1626
1657
|
}
|
|
1627
1658
|
/**
|
|
1628
|
-
* Internal rendering of Diamond
|
|
1659
|
+
* Internal rendering of Diamond.
|
|
1629
1660
|
*
|
|
1630
1661
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1631
1662
|
* @param {PathOption} options - Specifies the path options
|
|
@@ -1641,7 +1672,7 @@ function drawDiamond(maps, options, size, location, element) {
|
|
|
1641
1672
|
return appendShape(maps.renderer.drawPath(options), element);
|
|
1642
1673
|
}
|
|
1643
1674
|
/**
|
|
1644
|
-
* Internal rendering of Triangle
|
|
1675
|
+
* Internal rendering of Triangle.
|
|
1645
1676
|
*
|
|
1646
1677
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1647
1678
|
* @param {PathOption} options - Specifies the path options
|
|
@@ -1657,7 +1688,7 @@ function drawTriangle(maps, options, size, location, element) {
|
|
|
1657
1688
|
return appendShape(maps.renderer.drawPath(options), element);
|
|
1658
1689
|
}
|
|
1659
1690
|
/**
|
|
1660
|
-
* Internal rendering of Cross
|
|
1691
|
+
* Internal rendering of Cross.
|
|
1661
1692
|
*
|
|
1662
1693
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1663
1694
|
* @param {PathOption} options - Specifies the path options
|
|
@@ -1673,7 +1704,7 @@ function drawCross(maps, options, size, location, element) {
|
|
|
1673
1704
|
return appendShape(maps.renderer.drawPath(options), element);
|
|
1674
1705
|
}
|
|
1675
1706
|
/**
|
|
1676
|
-
* Internal rendering of HorizontalLine
|
|
1707
|
+
* Internal rendering of HorizontalLine.
|
|
1677
1708
|
*
|
|
1678
1709
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1679
1710
|
* @param {PathOption} options - Specifies the path options
|
|
@@ -1688,7 +1719,7 @@ function drawHorizontalLine(maps, options, size, location, element) {
|
|
|
1688
1719
|
return appendShape(maps.renderer.drawPath(options), element);
|
|
1689
1720
|
}
|
|
1690
1721
|
/**
|
|
1691
|
-
* Internal rendering of VerticalLine
|
|
1722
|
+
* Internal rendering of VerticalLine.
|
|
1692
1723
|
*
|
|
1693
1724
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1694
1725
|
* @param {PathOption} options - Specifies the path options
|
|
@@ -1703,7 +1734,7 @@ function drawVerticalLine(maps, options, size, location, element) {
|
|
|
1703
1734
|
return appendShape(maps.renderer.drawPath(options), element);
|
|
1704
1735
|
}
|
|
1705
1736
|
/**
|
|
1706
|
-
* Internal rendering of Star
|
|
1737
|
+
* Internal rendering of Star.
|
|
1707
1738
|
*
|
|
1708
1739
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1709
1740
|
* @param {PathOption} options - Specifies the path options
|
|
@@ -1721,7 +1752,7 @@ function drawStar(maps, options, size, location, element) {
|
|
|
1721
1752
|
return appendShape(maps.renderer.drawPath(options), element);
|
|
1722
1753
|
}
|
|
1723
1754
|
/**
|
|
1724
|
-
* Internal rendering of Balloon
|
|
1755
|
+
* Internal rendering of Balloon.
|
|
1725
1756
|
*
|
|
1726
1757
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1727
1758
|
* @param {PathOption} options - Specifies the path options
|
|
@@ -1755,7 +1786,7 @@ function drawBalloon(maps, options, size, location, type, element) {
|
|
|
1755
1786
|
return pathElement;
|
|
1756
1787
|
}
|
|
1757
1788
|
/**
|
|
1758
|
-
* Internal rendering of Pattern
|
|
1789
|
+
* Internal rendering of Pattern.
|
|
1759
1790
|
*
|
|
1760
1791
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
1761
1792
|
* @param {PatternOptions} options - Specifies the pattern options
|
|
@@ -1802,7 +1833,7 @@ function getFieldData(dataSource, fields) {
|
|
|
1802
1833
|
return newData;
|
|
1803
1834
|
}
|
|
1804
1835
|
/**
|
|
1805
|
-
* To find the index of dataSource from shape properties
|
|
1836
|
+
* To find the index of dataSource from shape properties.
|
|
1806
1837
|
*
|
|
1807
1838
|
* @param {any[]} dataSource - Specifies the data source
|
|
1808
1839
|
* @param {any} properties - Specifies the properties
|
|
@@ -1812,7 +1843,7 @@ function getFieldData(dataSource, fields) {
|
|
|
1812
1843
|
* @returns {number} - Returns the number
|
|
1813
1844
|
* @private
|
|
1814
1845
|
*/
|
|
1815
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1846
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1816
1847
|
function checkShapeDataFields(dataSource, properties, dataPath, propertyPath,
|
|
1817
1848
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1818
1849
|
layer) {
|
|
@@ -1895,7 +1926,7 @@ function getRatioOfBubble(min, max, value, minValue, maxValue) {
|
|
|
1895
1926
|
return bubbleRadius;
|
|
1896
1927
|
}
|
|
1897
1928
|
/**
|
|
1898
|
-
* To find the midpoint of the polygon from points
|
|
1929
|
+
* To find the midpoint of the polygon from points.
|
|
1899
1930
|
*
|
|
1900
1931
|
* @param {MapLocation[]} points - Specifies the points
|
|
1901
1932
|
* @param {string} type - Specifies the type
|
|
@@ -1991,7 +2022,7 @@ function findMidPointOfPolygon(points, type, geometryType) {
|
|
|
1991
2022
|
};
|
|
1992
2023
|
}
|
|
1993
2024
|
/**
|
|
1994
|
-
* Check custom path
|
|
2025
|
+
* Check custom path.
|
|
1995
2026
|
*
|
|
1996
2027
|
* @param {any[]} layerData - Specifies the layer data
|
|
1997
2028
|
* @returns {boolean} - Returns the boolean vlue
|
|
@@ -2010,7 +2041,7 @@ function isCustomPath(layerData) {
|
|
|
2010
2041
|
return customPath;
|
|
2011
2042
|
}
|
|
2012
2043
|
/**
|
|
2013
|
-
* Trim the title text
|
|
2044
|
+
* Trim the title text.
|
|
2014
2045
|
*
|
|
2015
2046
|
* @param {number} maxWidth - Specifies the maximum width
|
|
2016
2047
|
* @param {string} text - Specifies the text
|
|
@@ -2058,7 +2089,7 @@ function textTrim(maxWidth, text, font, width, isCanvasMeasure, widthList) {
|
|
|
2058
2089
|
return label;
|
|
2059
2090
|
}
|
|
2060
2091
|
/**
|
|
2061
|
-
* Method to calculate x position of title
|
|
2092
|
+
* Method to calculate x position of title.
|
|
2062
2093
|
*
|
|
2063
2094
|
* @param {Rect} location - Specifies the location
|
|
2064
2095
|
* @param {Alignment} alignment - Specifies the alignment
|
|
@@ -2086,7 +2117,7 @@ function findPosition(location, alignment, textSize, type) {
|
|
|
2086
2117
|
return new Point(x, y);
|
|
2087
2118
|
}
|
|
2088
2119
|
/**
|
|
2089
|
-
* To remove element by id
|
|
2120
|
+
* To remove element by id.
|
|
2090
2121
|
*
|
|
2091
2122
|
* @param {string} id - Specifies the id
|
|
2092
2123
|
* @returns {void}
|
|
@@ -2097,7 +2128,7 @@ function removeElement(id) {
|
|
|
2097
2128
|
return element ? remove(element) : null;
|
|
2098
2129
|
}
|
|
2099
2130
|
/**
|
|
2100
|
-
* To calculate map center position from pixel values
|
|
2131
|
+
* To calculate map center position from pixel values.
|
|
2101
2132
|
*
|
|
2102
2133
|
* @param {Maps} mapObject - Specifies the map object
|
|
2103
2134
|
* @param {LayerSettings} layer - Specifies the layer settings
|
|
@@ -2432,7 +2463,7 @@ function getZoomTranslate(mapObject, layer, animate) {
|
|
|
2432
2463
|
return { scale: animate ? 1 : scaleFactor, location: new Point(x, y) };
|
|
2433
2464
|
}
|
|
2434
2465
|
/**
|
|
2435
|
-
* To get the html element by specified id
|
|
2466
|
+
* To get the html element by specified id.
|
|
2436
2467
|
*
|
|
2437
2468
|
* @param {Maps} map - Specifies the instance of the maps
|
|
2438
2469
|
* @returns {void}
|
|
@@ -2449,7 +2480,7 @@ function fixInitialScaleForTile(map) {
|
|
|
2449
2480
|
map.previousTileHeight = map.availableSize.height;
|
|
2450
2481
|
}
|
|
2451
2482
|
/**
|
|
2452
|
-
* To get the html element by specified id
|
|
2483
|
+
* To get the html element by specified id.
|
|
2453
2484
|
*
|
|
2454
2485
|
* @param {string} id - Specifies the id
|
|
2455
2486
|
* @returns {Element} - Returns the element
|
|
@@ -2475,7 +2506,7 @@ function getClientElement(id) {
|
|
|
2475
2506
|
}
|
|
2476
2507
|
}
|
|
2477
2508
|
/**
|
|
2478
|
-
* To apply internalization
|
|
2509
|
+
* To apply internalization.
|
|
2479
2510
|
*
|
|
2480
2511
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
2481
2512
|
* @param {number} value - Specifies the value
|
|
@@ -2527,7 +2558,7 @@ function getElement(id) {
|
|
|
2527
2558
|
return document.getElementById(id);
|
|
2528
2559
|
}
|
|
2529
2560
|
/**
|
|
2530
|
-
* Function to get shape data using target id
|
|
2561
|
+
* Function to get shape data using target id.
|
|
2531
2562
|
*
|
|
2532
2563
|
* @param {string} targetId - Specifies the target id
|
|
2533
2564
|
* @param {Maps} map - Specifies the instance of the maps
|
|
@@ -2550,7 +2581,7 @@ function getShapeData(targetId, map) {
|
|
|
2550
2581
|
return { shapeData: shapeData, data: data };
|
|
2551
2582
|
}
|
|
2552
2583
|
/**
|
|
2553
|
-
* Function to trigger shapeSelected event
|
|
2584
|
+
* Function to trigger shapeSelected event.
|
|
2554
2585
|
*
|
|
2555
2586
|
* @param {string} targetId - Specifies the target id
|
|
2556
2587
|
* @param {SelectionSettingsModel} selection - Specifies the selection
|
|
@@ -2594,7 +2625,7 @@ function triggerShapeEvent(targetId, selection, maps, eventName) {
|
|
|
2594
2625
|
return eventArgs;
|
|
2595
2626
|
}
|
|
2596
2627
|
/**
|
|
2597
|
-
* Function to get elements using class name
|
|
2628
|
+
* Function to get elements using class name.
|
|
2598
2629
|
*
|
|
2599
2630
|
* @param {string} className - Specifies the class name
|
|
2600
2631
|
* @returns {HTMLCollectionOf<Element>} - Returns the collection
|
|
@@ -2610,7 +2641,7 @@ function getElementsByClassName(className) {
|
|
|
2610
2641
|
// return element.querySelectorAll('.' + args);
|
|
2611
2642
|
// }
|
|
2612
2643
|
/**
|
|
2613
|
-
* Function to get elements using querySelector
|
|
2644
|
+
* Function to get elements using querySelector.
|
|
2614
2645
|
*
|
|
2615
2646
|
* @param {string} args - Specifies the args
|
|
2616
2647
|
* @param {string} elementSelector - Specifies the element selector
|
|
@@ -2625,7 +2656,7 @@ function querySelector(args, elementSelector) {
|
|
|
2625
2656
|
return targetEle;
|
|
2626
2657
|
}
|
|
2627
2658
|
/**
|
|
2628
|
-
* Function to get the element for selection and highlight using public method
|
|
2659
|
+
* Function to get the element for selection and highlight using public method.
|
|
2629
2660
|
*
|
|
2630
2661
|
* @param {number} layerIndex - Specifies the layer index
|
|
2631
2662
|
* @param {string} name - Specifies the layer name
|
|
@@ -2648,7 +2679,7 @@ function getTargetElement(layerIndex, name, enable, map) {
|
|
|
2648
2679
|
return targetEle;
|
|
2649
2680
|
}
|
|
2650
2681
|
/**
|
|
2651
|
-
* Function to create style element for highlight and selection
|
|
2682
|
+
* Function to create style element for highlight and selection.
|
|
2652
2683
|
*
|
|
2653
2684
|
* @param {string} id - Specifies the id
|
|
2654
2685
|
* @param {string} className - Specifies the class name
|
|
@@ -2669,7 +2700,7 @@ function createStyle(id, className, eventArgs) {
|
|
|
2669
2700
|
return styleEle;
|
|
2670
2701
|
}
|
|
2671
2702
|
/**
|
|
2672
|
-
* Function to customize the style for highlight and selection
|
|
2703
|
+
* Function to customize the style for highlight and selection.
|
|
2673
2704
|
*
|
|
2674
2705
|
* @param {string} id - Specifies the id
|
|
2675
2706
|
* @param {string} className - Specifies the class name
|
|
@@ -2689,7 +2720,7 @@ function customizeStyle(id, className, eventArgs) {
|
|
|
2689
2720
|
}
|
|
2690
2721
|
}
|
|
2691
2722
|
/**
|
|
2692
|
-
* Function to trigger itemSelection event for legend selection and public method
|
|
2723
|
+
* Function to trigger itemSelection event for legend selection and public method.
|
|
2693
2724
|
*
|
|
2694
2725
|
* @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
|
|
2695
2726
|
* @param {Maps} map - Specifies the instance of the maps
|
|
@@ -2730,7 +2761,7 @@ function triggerItemSelectionEvent(selectionSettings, map, targetElement, shapeD
|
|
|
2730
2761
|
});
|
|
2731
2762
|
}
|
|
2732
2763
|
/**
|
|
2733
|
-
* Function to remove class from element
|
|
2764
|
+
* Function to remove class from element.
|
|
2734
2765
|
*
|
|
2735
2766
|
* @param {Element} element - Specifies the element
|
|
2736
2767
|
* @returns {void}
|
|
@@ -2762,7 +2793,7 @@ function elementAnimate(element, delay, duration, point, maps, ele, radius) {
|
|
|
2762
2793
|
duration: (duration === 0 && animationMode === 'Enable') ? 1000 : duration,
|
|
2763
2794
|
delay: delay,
|
|
2764
2795
|
progress: function (args) {
|
|
2765
|
-
if (args.timeStamp > args.delay) {
|
|
2796
|
+
if ((args.timeStamp > args.delay) && !maps.zoomModule.isPanningInProgress) {
|
|
2766
2797
|
if (maps.isTileMap && height === 0) {
|
|
2767
2798
|
var layerGroupElement = document.querySelector('.GroupElement');
|
|
2768
2799
|
if (!isNullOrUndefined(layerGroupElement)) {
|
|
@@ -2776,7 +2807,10 @@ function elementAnimate(element, delay, duration, point, maps, ele, radius) {
|
|
|
2776
2807
|
},
|
|
2777
2808
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2778
2809
|
end: function (model) {
|
|
2779
|
-
|
|
2810
|
+
if (!maps.zoomModule.isPanningInProgress) {
|
|
2811
|
+
element.setAttribute('transform', transform);
|
|
2812
|
+
}
|
|
2813
|
+
maps.zoomModule.isPanningInProgress = false;
|
|
2780
2814
|
if (!ele) {
|
|
2781
2815
|
return;
|
|
2782
2816
|
}
|
|
@@ -3208,7 +3242,8 @@ function changeNavaigationLineWidth(element, index, scale, maps) {
|
|
|
3208
3242
|
/**
|
|
3209
3243
|
* @param {PointerEvent | TouchEvent} event - Specifies the pointer or touch event
|
|
3210
3244
|
* @returns {ITouches[]} - Returns the target
|
|
3211
|
-
* @private
|
|
3245
|
+
* @private
|
|
3246
|
+
*/
|
|
3212
3247
|
function targetTouches(event) {
|
|
3213
3248
|
var targetTouches = [];
|
|
3214
3249
|
var touches = event.touches;
|
|
@@ -3232,7 +3267,8 @@ function calculateScale(startTouches, endTouches) {
|
|
|
3232
3267
|
* @param {ITouches} a - Specifies the a value
|
|
3233
3268
|
* @param {ITouches} b - Specifies the b value
|
|
3234
3269
|
* @returns {number} - Returns the number
|
|
3235
|
-
* @private
|
|
3270
|
+
* @private
|
|
3271
|
+
*/
|
|
3236
3272
|
function getDistance(a, b) {
|
|
3237
3273
|
var x = a.pageX - b.pageX;
|
|
3238
3274
|
var y = a.pageY - b.pageY;
|
|
@@ -3280,7 +3316,7 @@ function sum(a, b) {
|
|
|
3280
3316
|
return a + b;
|
|
3281
3317
|
}
|
|
3282
3318
|
/**
|
|
3283
|
-
* Animation Effect Calculation End
|
|
3319
|
+
* Animation Effect Calculation End.
|
|
3284
3320
|
*
|
|
3285
3321
|
* @param {Element} element - Specifies the element.
|
|
3286
3322
|
* @param {number} delay - Specifies the delay.
|
|
@@ -3346,7 +3382,7 @@ function zoomAnimate(element, delay, duration, point, scale, size, maps) {
|
|
|
3346
3382
|
});
|
|
3347
3383
|
}
|
|
3348
3384
|
/**
|
|
3349
|
-
* To process custom animation
|
|
3385
|
+
* To process custom animation.
|
|
3350
3386
|
*
|
|
3351
3387
|
* @param {Element} element - Specifies the element
|
|
3352
3388
|
* @param {number} delay - Specifies the delay
|
|
@@ -3398,7 +3434,7 @@ var MapAjax = /** @__PURE__ @class */ (function () {
|
|
|
3398
3434
|
return MapAjax;
|
|
3399
3435
|
}());
|
|
3400
3436
|
/**
|
|
3401
|
-
* Animation Translate
|
|
3437
|
+
* Animation Translate.
|
|
3402
3438
|
*
|
|
3403
3439
|
* @param {Element} element - Specifies the element
|
|
3404
3440
|
* @param {number} delay - Specifies the delay
|
|
@@ -3430,7 +3466,7 @@ function smoothTranslate(element, delay, duration, point) {
|
|
|
3430
3466
|
});
|
|
3431
3467
|
}
|
|
3432
3468
|
/**
|
|
3433
|
-
* To find compare should zoom factor with previous factor and current factor
|
|
3469
|
+
* To find compare should zoom factor with previous factor and current factor.
|
|
3434
3470
|
*
|
|
3435
3471
|
* @param {number} scaleFactor - Specifies the scale factor
|
|
3436
3472
|
* @param {Maps} maps - Specifies the instance of the maps
|
|
@@ -3456,7 +3492,7 @@ function compareZoomFactor(scaleFactor, maps) {
|
|
|
3456
3492
|
}
|
|
3457
3493
|
}
|
|
3458
3494
|
/**
|
|
3459
|
-
* To find zoom level for the min and max latitude values
|
|
3495
|
+
* To find zoom level for the min and max latitude values.
|
|
3460
3496
|
*
|
|
3461
3497
|
* @param {number} minLat - Specifies the minimum latitude
|
|
3462
3498
|
* @param {number} maxLat - Specifies the maximum latitude
|
|
@@ -3501,13 +3537,13 @@ function calculateZoomLevel(minLat, maxLat, minLong, maxLong, mapWidth, mapHeigh
|
|
|
3501
3537
|
return scaleFactor;
|
|
3502
3538
|
}
|
|
3503
3539
|
/**
|
|
3504
|
-
* Method to get the result
|
|
3540
|
+
* Method to get the result.
|
|
3505
3541
|
*
|
|
3506
3542
|
* @param {any} e - Specifies the any type value
|
|
3507
3543
|
* @returns {any} - Returns the data value
|
|
3508
3544
|
* @private
|
|
3509
3545
|
*/
|
|
3510
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3546
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3511
3547
|
function processResult(e) {
|
|
3512
3548
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3513
3549
|
var dataValue;
|
|
@@ -3835,7 +3871,7 @@ var DarkTheme;
|
|
|
3835
3871
|
};
|
|
3836
3872
|
})(DarkTheme || (DarkTheme = {}));
|
|
3837
3873
|
/**
|
|
3838
|
-
* Method to get the theme style
|
|
3874
|
+
* Method to get the theme style.
|
|
3839
3875
|
*
|
|
3840
3876
|
* @param {MapsTheme} theme - Specifies the theme.
|
|
3841
3877
|
* @returns {IThemeStyle} - Returns the theme style.
|
|
@@ -4482,6 +4518,9 @@ var TooltipSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
4482
4518
|
__decorate$1([
|
|
4483
4519
|
Property(null)
|
|
4484
4520
|
], TooltipSettings.prototype, "valuePath", void 0);
|
|
4521
|
+
__decorate$1([
|
|
4522
|
+
Property(2000)
|
|
4523
|
+
], TooltipSettings.prototype, "duration", void 0);
|
|
4485
4524
|
return TooltipSettings;
|
|
4486
4525
|
}(ChildProperty));
|
|
4487
4526
|
/**
|
|
@@ -4504,6 +4543,9 @@ var PolygonTooltipSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
4504
4543
|
__decorate$1([
|
|
4505
4544
|
Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
|
|
4506
4545
|
], PolygonTooltipSettings.prototype, "textStyle", void 0);
|
|
4546
|
+
__decorate$1([
|
|
4547
|
+
Property(2000)
|
|
4548
|
+
], PolygonTooltipSettings.prototype, "duration", void 0);
|
|
4507
4549
|
return PolygonTooltipSettings;
|
|
4508
4550
|
}(ChildProperty));
|
|
4509
4551
|
/**
|
|
@@ -5313,7 +5355,7 @@ var MarkerBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
5313
5355
|
*/
|
|
5314
5356
|
var MarkerSettings = /** @__PURE__ @class */ (function (_super) {
|
|
5315
5357
|
__extends$2(MarkerSettings, _super);
|
|
5316
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5358
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5317
5359
|
function MarkerSettings(parent, propName, defaultValue, isArray) {
|
|
5318
5360
|
return _super.call(this, parent, propName, defaultValue, isArray) || this;
|
|
5319
5361
|
}
|
|
@@ -5654,22 +5696,18 @@ var zoomComplete = 'zoomComplete';
|
|
|
5654
5696
|
var itemHighlight = 'itemHighlight';
|
|
5655
5697
|
/**
|
|
5656
5698
|
* Specifies the maps before print event name.
|
|
5657
|
-
*
|
|
5658
5699
|
*/
|
|
5659
5700
|
var beforePrint = 'beforePrint';
|
|
5660
5701
|
/**
|
|
5661
5702
|
* Specifies the maps zoom in event name.
|
|
5662
|
-
*
|
|
5663
5703
|
*/
|
|
5664
5704
|
var zoomIn = 'zoomIn';
|
|
5665
5705
|
/**
|
|
5666
5706
|
* Specifies the maps zoom out event name.
|
|
5667
|
-
*
|
|
5668
5707
|
*/
|
|
5669
5708
|
var zoomOut = 'zoomOut';
|
|
5670
5709
|
/**
|
|
5671
5710
|
* Specifies the maps pan event name.
|
|
5672
|
-
*
|
|
5673
5711
|
*/
|
|
5674
5712
|
var pan = 'pan';
|
|
5675
5713
|
|
|
@@ -5730,7 +5768,7 @@ var ColorMapping = /** @__PURE__ @class */ (function () {
|
|
|
5730
5768
|
* @param { ShapeSettingsModel } shapeSettings - Specifies the shape settings.
|
|
5731
5769
|
* @param { object } layerData - Specifies the layer data.
|
|
5732
5770
|
* @param { string } color - Specifies the color.
|
|
5733
|
-
* @returns {
|
|
5771
|
+
* @returns {object} - Returns the object.
|
|
5734
5772
|
* @private
|
|
5735
5773
|
*/
|
|
5736
5774
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -5744,7 +5782,7 @@ var ColorMapping = /** @__PURE__ @class */ (function () {
|
|
|
5744
5782
|
return !isNullOrUndefined(shapeColor) ? shapeColor : color;
|
|
5745
5783
|
};
|
|
5746
5784
|
/**
|
|
5747
|
-
* To color by value and color mapping
|
|
5785
|
+
* To color by value and color mapping.
|
|
5748
5786
|
*
|
|
5749
5787
|
* @param {ColorMappingSettingsModel[]} colorMapping - Specifies the color mapping instance.
|
|
5750
5788
|
* @param {number} colorValue - Specifies the color value
|
|
@@ -6578,18 +6616,9 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
6578
6616
|
pathEle.style.cssText = 'outline:none';
|
|
6579
6617
|
}
|
|
6580
6618
|
maintainSelection(this.mapObject.selectedElementId, this.mapObject.shapeSelectionClass, pathEle, 'ShapeselectionMapStyle');
|
|
6581
|
-
if (this.mapObject.
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
this.currentLayer.shapeSettings : this.mapObject.legendSettings.toggleLegendSettings;
|
|
6585
|
-
if (this.mapObject.toggledShapeElementId[j] === pathEle.id) {
|
|
6586
|
-
pathEle.setAttribute('fill', styleProperty.fill);
|
|
6587
|
-
pathEle.setAttribute('stroke', styleProperty.border.color);
|
|
6588
|
-
pathEle.setAttribute('fill-opacity', (styleProperty.opacity).toString());
|
|
6589
|
-
pathEle.setAttribute('stroke-opacity', (isNullOrUndefined(styleProperty.border.opacity) ? styleProperty.opacity : styleProperty.border.opacity).toString());
|
|
6590
|
-
pathEle.setAttribute('stroke-width', (isNullOrUndefined(styleProperty.border.width) ? 0 : styleProperty.border.width).toString());
|
|
6591
|
-
}
|
|
6592
|
-
}
|
|
6619
|
+
if (this.mapObject.legendSettings.toggleLegendSettings.enable && this.mapObject.legendSettings.type === 'Layers') {
|
|
6620
|
+
maintainToggleSelection(this.mapObject.toggledElementId, pathEle, this.mapObject.legendSettings.toggleLegendSettings.applyShapeSettings ? this.currentLayer.shapeSettings
|
|
6621
|
+
: this.mapObject.legendSettings.toggleLegendSettings);
|
|
6593
6622
|
}
|
|
6594
6623
|
groupElement.appendChild(pathEle);
|
|
6595
6624
|
};
|
|
@@ -6664,7 +6693,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
6664
6693
|
this.layerGroup.appendChild(this.layerObject);
|
|
6665
6694
|
};
|
|
6666
6695
|
/**
|
|
6667
|
-
* render datalabel
|
|
6696
|
+
* render datalabel.
|
|
6668
6697
|
*
|
|
6669
6698
|
* @param {LayerSettings} layer - Specifies the layer
|
|
6670
6699
|
* @param {number} layerIndex - Specifies the layer index
|
|
@@ -6681,7 +6710,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
6681
6710
|
this.mapObject.dataLabelModule.renderLabel(layer, layerIndex, shape, layer.layerData, group, labelTemplateEle, shapeIndex, intersect);
|
|
6682
6711
|
};
|
|
6683
6712
|
/**
|
|
6684
|
-
* To render path for multipolygon
|
|
6713
|
+
* To render path for multipolygon.
|
|
6685
6714
|
*
|
|
6686
6715
|
* @param {any[]} currentShapeData Specifies the current shape data
|
|
6687
6716
|
* @returns {string} Returns the path
|
|
@@ -6703,7 +6732,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
6703
6732
|
return path;
|
|
6704
6733
|
};
|
|
6705
6734
|
/**
|
|
6706
|
-
* To render bubble
|
|
6735
|
+
* To render bubble.
|
|
6707
6736
|
*
|
|
6708
6737
|
* @param {LayerSettings} layer - Specifies the layer
|
|
6709
6738
|
* @param {object} bubbleData - Specifies the bubble data
|
|
@@ -6730,7 +6759,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
6730
6759
|
this.mapObject.bubbleModule.renderBubble(bubbleSettings, bubbleData, color, range, bubbleIndex, dataIndex, layerIndex, layer, group, this.mapObject.bubbleModule.id);
|
|
6731
6760
|
};
|
|
6732
6761
|
/**
|
|
6733
|
-
* To get the shape color from color mapping module
|
|
6762
|
+
* To get the shape color from color mapping module.
|
|
6734
6763
|
*
|
|
6735
6764
|
* @param {LayerSettingsModel} layer - Specifies the layer
|
|
6736
6765
|
* @param {any} shape - Specifies the shape
|
|
@@ -7298,7 +7327,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
7298
7327
|
}
|
|
7299
7328
|
};
|
|
7300
7329
|
/**
|
|
7301
|
-
* Animation for tile layers and hide the group element until the tile layer rendering
|
|
7330
|
+
* Animation for tile layers and hide the group element until the tile layer rendering.
|
|
7302
7331
|
*
|
|
7303
7332
|
* @param {string} zoomType - Specifies the zoom type
|
|
7304
7333
|
* @param {number} translateX - Specifies the x translate point
|
|
@@ -7327,7 +7356,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
7327
7356
|
}
|
|
7328
7357
|
};
|
|
7329
7358
|
/**
|
|
7330
|
-
* Static map rendering
|
|
7359
|
+
* Static map rendering.
|
|
7331
7360
|
*
|
|
7332
7361
|
* @param {string} apikey - Specifies the api key
|
|
7333
7362
|
* @param {number} zoom - Specifies the zoom value
|
|
@@ -7384,7 +7413,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
7384
7413
|
+ eleHeight + 'px"><img src="' + staticMapString + '"' + 'alt="' + this.mapObject.getLocalizedLabel('ImageNotFound') + '"></div>';
|
|
7385
7414
|
};
|
|
7386
7415
|
/**
|
|
7387
|
-
* To find the tile translate point
|
|
7416
|
+
* To find the tile translate point.
|
|
7388
7417
|
*
|
|
7389
7418
|
* @param {number} factorX - Specifies the x factor
|
|
7390
7419
|
* @param {number} factorY - Specifies the x factor
|
|
@@ -7489,13 +7518,12 @@ var Annotations = /** @__PURE__ @class */ (function () {
|
|
|
7489
7518
|
this.map.renderReactTemplates();
|
|
7490
7519
|
};
|
|
7491
7520
|
/**
|
|
7492
|
-
* To create annotation elements
|
|
7521
|
+
* To create annotation elements.
|
|
7493
7522
|
*
|
|
7494
7523
|
* @param {HTMLElement} parentElement - Specifies the parent element in the map.
|
|
7495
7524
|
* @param {Annotation} annotation - Specifies the options for customizing the annotation element in maps.
|
|
7496
7525
|
* @param {number} annotationIndex - Specifies the index of the annotation.
|
|
7497
7526
|
* @returns {void}
|
|
7498
|
-
*
|
|
7499
7527
|
* @private
|
|
7500
7528
|
*/
|
|
7501
7529
|
Annotations.prototype.createAnnotationTemplate = function (parentElement, annotation, annotationIndex) {
|
|
@@ -7625,7 +7653,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
7625
7653
|
var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
7626
7654
|
__extends(Maps, _super);
|
|
7627
7655
|
/**
|
|
7628
|
-
* Constructor for creating the widget
|
|
7656
|
+
* Constructor for creating the widget.
|
|
7629
7657
|
*
|
|
7630
7658
|
* @param {MapsModel} options Specifies the options
|
|
7631
7659
|
* @param {string | HTMLElement} element Specifies the element
|
|
@@ -7633,7 +7661,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7633
7661
|
function Maps(options, element) {
|
|
7634
7662
|
var _this = _super.call(this, options, element) || this;
|
|
7635
7663
|
/**
|
|
7636
|
-
* Check layer whether is geometry or tile
|
|
7664
|
+
* Check layer whether is geometry or tile.
|
|
7637
7665
|
*
|
|
7638
7666
|
* @private
|
|
7639
7667
|
*/
|
|
@@ -7705,7 +7733,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7705
7733
|
/** @private */
|
|
7706
7734
|
_this.toggledLegendId = [];
|
|
7707
7735
|
/** @private */
|
|
7708
|
-
_this.
|
|
7736
|
+
_this.toggledElementId = [];
|
|
7709
7737
|
/** @private */
|
|
7710
7738
|
_this.checkInitialRender = true;
|
|
7711
7739
|
/** @private */
|
|
@@ -7747,7 +7775,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7747
7775
|
configurable: true
|
|
7748
7776
|
});
|
|
7749
7777
|
/**
|
|
7750
|
-
* To manage persist maps data
|
|
7778
|
+
* To manage persist maps data.
|
|
7751
7779
|
*
|
|
7752
7780
|
* @returns {void}
|
|
7753
7781
|
*/
|
|
@@ -8106,7 +8134,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8106
8134
|
//eslint-enable @typescript-eslint/prefer-const
|
|
8107
8135
|
};
|
|
8108
8136
|
/**
|
|
8109
|
-
* To apply color to the initial selected marker
|
|
8137
|
+
* To apply color to the initial selected marker.
|
|
8110
8138
|
*
|
|
8111
8139
|
* @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
|
|
8112
8140
|
* @param {Maps} map - Specifies the instance of the maps
|
|
@@ -8148,7 +8176,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8148
8176
|
}
|
|
8149
8177
|
};
|
|
8150
8178
|
/**
|
|
8151
|
-
* initial selection of marker
|
|
8179
|
+
* initial selection of marker.
|
|
8152
8180
|
*
|
|
8153
8181
|
* @param {number} layerIndex - Specifies the layer index
|
|
8154
8182
|
* @param {number} markerIndex - Specifies the marker index
|
|
@@ -8173,7 +8201,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8173
8201
|
}
|
|
8174
8202
|
};
|
|
8175
8203
|
/**
|
|
8176
|
-
* Render the map area border
|
|
8204
|
+
* Render the map area border.
|
|
8177
8205
|
*
|
|
8178
8206
|
* @returns {void}
|
|
8179
8207
|
*/
|
|
@@ -8190,7 +8218,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8190
8218
|
}
|
|
8191
8219
|
};
|
|
8192
8220
|
/**
|
|
8193
|
-
* To add tab index for map element
|
|
8221
|
+
* To add tab index for map element.
|
|
8194
8222
|
*
|
|
8195
8223
|
* @returns {void}
|
|
8196
8224
|
*/
|
|
@@ -8413,7 +8441,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8413
8441
|
});
|
|
8414
8442
|
};
|
|
8415
8443
|
/**
|
|
8416
|
-
* Render the map border
|
|
8444
|
+
* Render the map border.
|
|
8417
8445
|
*
|
|
8418
8446
|
* @private
|
|
8419
8447
|
* @returns {void}
|
|
@@ -8434,7 +8462,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8434
8462
|
}
|
|
8435
8463
|
};
|
|
8436
8464
|
/**
|
|
8437
|
-
* Render the title and subtitle
|
|
8465
|
+
* Render the title and subtitle.
|
|
8438
8466
|
*
|
|
8439
8467
|
* @param {TitleSettingsModel} title - Specifies the title
|
|
8440
8468
|
* @param {string} type - Specifies the type
|
|
@@ -8487,7 +8515,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8487
8515
|
}
|
|
8488
8516
|
};
|
|
8489
8517
|
/**
|
|
8490
|
-
* To create svg element for maps
|
|
8518
|
+
* To create svg element for maps.
|
|
8491
8519
|
*
|
|
8492
8520
|
* @returns {void}
|
|
8493
8521
|
*/
|
|
@@ -8496,7 +8524,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8496
8524
|
createSvg(this);
|
|
8497
8525
|
};
|
|
8498
8526
|
/**
|
|
8499
|
-
* To Remove the SVG
|
|
8527
|
+
* To Remove the SVG.
|
|
8500
8528
|
*
|
|
8501
8529
|
* @returns {void}
|
|
8502
8530
|
*/
|
|
@@ -8787,7 +8815,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8787
8815
|
return latLongValue;
|
|
8788
8816
|
};
|
|
8789
8817
|
/**
|
|
8790
|
-
* Gets the location of the mouse click
|
|
8818
|
+
* Gets the location of the mouse click.
|
|
8791
8819
|
*
|
|
8792
8820
|
* @param {string} targetId - Specifies the ID for the target.
|
|
8793
8821
|
* @param {number} pageX - Defines the page X position.
|
|
@@ -8796,10 +8824,8 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8796
8824
|
* @param {number} x - Defines the x position in pixel.
|
|
8797
8825
|
* @param {number} y - Defines the y position in pixel.
|
|
8798
8826
|
* @param {string} type - Specifies the type.
|
|
8799
|
-
* @returns {GeoPosition} - Returns the position of the event
|
|
8800
|
-
*
|
|
8827
|
+
* @returns {GeoPosition} - Returns the position of the event.
|
|
8801
8828
|
* @private
|
|
8802
|
-
*
|
|
8803
8829
|
*/
|
|
8804
8830
|
Maps.prototype.getClickLocation = function (targetId, pageX, pageY, targetElement, x, y, type) {
|
|
8805
8831
|
var layerIndex = 0;
|
|
@@ -8871,7 +8897,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8871
8897
|
}
|
|
8872
8898
|
}
|
|
8873
8899
|
else {
|
|
8874
|
-
latLongValue = this.getGeoLocation(layerIndex,
|
|
8900
|
+
latLongValue = this.getGeoLocation(layerIndex, pageX, pageY);
|
|
8875
8901
|
}
|
|
8876
8902
|
}
|
|
8877
8903
|
else if (this.isTileMap && (!isNullOrUndefined(type) ||
|
|
@@ -9308,7 +9334,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9308
9334
|
/**
|
|
9309
9335
|
* This method is used to add the layers dynamically to the maps.
|
|
9310
9336
|
*
|
|
9311
|
-
* @param {
|
|
9337
|
+
* @param {object} layer - Specifies the layer to be added in the maps.
|
|
9312
9338
|
* @returns {void}
|
|
9313
9339
|
*/
|
|
9314
9340
|
Maps.prototype.addLayer = function (layer) {
|
|
@@ -9591,7 +9617,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9591
9617
|
}
|
|
9592
9618
|
_super.prototype.destroy.call(this);
|
|
9593
9619
|
this.shapeSelectionItem = [];
|
|
9594
|
-
this.
|
|
9620
|
+
this.toggledElementId = [];
|
|
9595
9621
|
this.toggledLegendId = [];
|
|
9596
9622
|
this.legendSelectionCollection = [];
|
|
9597
9623
|
this.selectedLegendElementId = [];
|
|
@@ -9652,7 +9678,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9652
9678
|
this.markerDragArgument = null;
|
|
9653
9679
|
};
|
|
9654
9680
|
/**
|
|
9655
|
-
* Gets component name
|
|
9681
|
+
* Gets component name.
|
|
9656
9682
|
*
|
|
9657
9683
|
* @returns {string} - Returns the string value
|
|
9658
9684
|
* @private
|
|
@@ -9772,7 +9798,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9772
9798
|
}
|
|
9773
9799
|
};
|
|
9774
9800
|
/**
|
|
9775
|
-
* To provide the array of modules needed for maps rendering
|
|
9801
|
+
* To provide the array of modules needed for maps rendering.
|
|
9776
9802
|
*
|
|
9777
9803
|
* @returns {ModuleDeclaration[]} - Returns the modules
|
|
9778
9804
|
* @private
|
|
@@ -9885,7 +9911,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9885
9911
|
return modules;
|
|
9886
9912
|
};
|
|
9887
9913
|
/**
|
|
9888
|
-
* To find marker visibility
|
|
9914
|
+
* To find marker visibility.
|
|
9889
9915
|
*
|
|
9890
9916
|
* @returns {boolean} - Returns whether the markers are visible or not.
|
|
9891
9917
|
*/
|
|
@@ -9902,7 +9928,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9902
9928
|
return isVisible;
|
|
9903
9929
|
};
|
|
9904
9930
|
/**
|
|
9905
|
-
* To find DataLabel visibility
|
|
9931
|
+
* To find DataLabel visibility.
|
|
9906
9932
|
*
|
|
9907
9933
|
* @returns {boolean} - Returns whether the data labels are visible or not.
|
|
9908
9934
|
*/
|
|
@@ -9917,7 +9943,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9917
9943
|
return isVisible;
|
|
9918
9944
|
};
|
|
9919
9945
|
/**
|
|
9920
|
-
* To find navigation line visibility
|
|
9946
|
+
* To find navigation line visibility.
|
|
9921
9947
|
*
|
|
9922
9948
|
* @returns {boolean} - Returns whether the navigation lines are visible or not.
|
|
9923
9949
|
*/
|
|
@@ -9934,7 +9960,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9934
9960
|
return isVisible;
|
|
9935
9961
|
};
|
|
9936
9962
|
/**
|
|
9937
|
-
* To find navigation line visibility
|
|
9963
|
+
* To find navigation line visibility.
|
|
9938
9964
|
*
|
|
9939
9965
|
* @returns {boolean} - Returns whether the navigation lines are visible or not.
|
|
9940
9966
|
*/
|
|
@@ -9951,7 +9977,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9951
9977
|
return isVisible;
|
|
9952
9978
|
};
|
|
9953
9979
|
/**
|
|
9954
|
-
* To find marker visibility
|
|
9980
|
+
* To find marker visibility.
|
|
9955
9981
|
*
|
|
9956
9982
|
* @returns {boolean} - Returns whether the bubble is visible or not.
|
|
9957
9983
|
*/
|
|
@@ -9967,7 +9993,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9967
9993
|
return isVisible;
|
|
9968
9994
|
};
|
|
9969
9995
|
/**
|
|
9970
|
-
* To find the bubble visibility from layer
|
|
9996
|
+
* To find the bubble visibility from layer.
|
|
9971
9997
|
*
|
|
9972
9998
|
* @param {LayerSettingsModel} layer - Spcifies the layer settings model
|
|
9973
9999
|
* @returns {boolean} - Returns the boolean value
|
|
@@ -10142,8 +10168,12 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
10142
10168
|
var longitude = 0;
|
|
10143
10169
|
if (!this.isDestroyed) {
|
|
10144
10170
|
var container = document.getElementById(this.element.id);
|
|
10145
|
-
var
|
|
10146
|
-
var
|
|
10171
|
+
var elementClientRect = this.element.getBoundingClientRect();
|
|
10172
|
+
var bodyClientRect = document.body.getBoundingClientRect();
|
|
10173
|
+
var pageX = x - (isNullOrUndefined(this.markerDragArgument) ? container.offsetLeft ||
|
|
10174
|
+
(elementClientRect.left - bodyClientRect.left) : 0);
|
|
10175
|
+
var pageY = y - (isNullOrUndefined(this.markerDragArgument) ? container.offsetTop ||
|
|
10176
|
+
(elementClientRect.top - bodyClientRect.top) : 0);
|
|
10147
10177
|
var currentLayer = this.layersCollection[layerIndex];
|
|
10148
10178
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10149
10179
|
var translate = getTranslate(this, currentLayer, false);
|
|
@@ -10187,7 +10217,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
10187
10217
|
*
|
|
10188
10218
|
* @param {number} pageX - Specifies the x position value in pixels.
|
|
10189
10219
|
* @param {number} pageY - Specifies the y position value in pixels.
|
|
10190
|
-
* @returns {
|
|
10220
|
+
* @returns {object} - Returns the latitude and longitude values.
|
|
10191
10221
|
*/
|
|
10192
10222
|
Maps.prototype.pointToLatLong = function (pageX, pageY) {
|
|
10193
10223
|
var latitude = 0;
|
|
@@ -10413,7 +10443,6 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
10413
10443
|
* @param {Element} group - Specifies the element group
|
|
10414
10444
|
* @param {string} bubbleID - Specifies the ID of the bubble
|
|
10415
10445
|
* @returns {void}
|
|
10416
|
-
*
|
|
10417
10446
|
* @private
|
|
10418
10447
|
*/
|
|
10419
10448
|
Bubble.prototype.renderBubble = function (bubbleSettings, shapeData, color, range, bubbleIndex, dataIndex, layerIndex, layer, group, bubbleID) {
|
|
@@ -10587,7 +10616,7 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
10587
10616
|
return points;
|
|
10588
10617
|
};
|
|
10589
10618
|
/**
|
|
10590
|
-
* To check and trigger bubble click event
|
|
10619
|
+
* To check and trigger bubble click event.
|
|
10591
10620
|
*
|
|
10592
10621
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
10593
10622
|
* @returns {void}
|
|
@@ -10610,7 +10639,7 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
10610
10639
|
this.maps.trigger(bubbleClick, eventArgs);
|
|
10611
10640
|
};
|
|
10612
10641
|
/**
|
|
10613
|
-
* To get bubble from target id
|
|
10642
|
+
* To get bubble from target id.
|
|
10614
10643
|
*
|
|
10615
10644
|
* @param {string} target - Specifies the target
|
|
10616
10645
|
* @returns {object} - Returns the object
|
|
@@ -10634,7 +10663,7 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
10634
10663
|
};
|
|
10635
10664
|
// eslint-disable-next-line valid-jsdoc
|
|
10636
10665
|
/**
|
|
10637
|
-
* To check and trigger bubble move event
|
|
10666
|
+
* To check and trigger bubble move event.
|
|
10638
10667
|
*
|
|
10639
10668
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
10640
10669
|
* @retruns {void}
|
|
@@ -10833,7 +10862,7 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
10833
10862
|
return scaleFactor;
|
|
10834
10863
|
};
|
|
10835
10864
|
/**
|
|
10836
|
-
* To calculate center position and factor value dynamically
|
|
10865
|
+
* To calculate center position and factor value dynamically.
|
|
10837
10866
|
*
|
|
10838
10867
|
* @param {LayerSettings[]} layersCollection - Specifies the layer settings instance.
|
|
10839
10868
|
* @returns {void}
|
|
@@ -10962,7 +10991,7 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
10962
10991
|
}
|
|
10963
10992
|
};
|
|
10964
10993
|
/**
|
|
10965
|
-
* To check and trigger marker click event
|
|
10994
|
+
* To check and trigger marker click event.
|
|
10966
10995
|
*
|
|
10967
10996
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
10968
10997
|
* @returns {void}
|
|
@@ -11024,7 +11053,7 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
11024
11053
|
}
|
|
11025
11054
|
};
|
|
11026
11055
|
/**
|
|
11027
|
-
* To check and trigger Cluster click event
|
|
11056
|
+
* To check and trigger Cluster click event.
|
|
11028
11057
|
*
|
|
11029
11058
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
11030
11059
|
* @returns {void}
|
|
@@ -11063,7 +11092,7 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
11063
11092
|
this.maps.trigger(markerClusterClick, eventArgs);
|
|
11064
11093
|
};
|
|
11065
11094
|
/**
|
|
11066
|
-
* To get marker from target id
|
|
11095
|
+
* To get marker from target id.
|
|
11067
11096
|
*
|
|
11068
11097
|
* @param {string} target - Specifies the target
|
|
11069
11098
|
* @returns {object} - Returns the marker, data, clusterCollection, markCollection
|
|
@@ -11119,7 +11148,7 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
11119
11148
|
return null;
|
|
11120
11149
|
};
|
|
11121
11150
|
/**
|
|
11122
|
-
* To check and trigger marker move event
|
|
11151
|
+
* To check and trigger marker move event.
|
|
11123
11152
|
*
|
|
11124
11153
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
11125
11154
|
* @returns {void}
|
|
@@ -11145,7 +11174,7 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
11145
11174
|
this.maps.trigger(markerMouseMove, eventArgs);
|
|
11146
11175
|
};
|
|
11147
11176
|
/**
|
|
11148
|
-
* To check and trigger cluster move event
|
|
11177
|
+
* To check and trigger cluster move event.
|
|
11149
11178
|
*
|
|
11150
11179
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
11151
11180
|
* @returns {void}
|
|
@@ -11169,8 +11198,8 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
11169
11198
|
};
|
|
11170
11199
|
this.maps.trigger(markerClusterMouseMove, eventArgs);
|
|
11171
11200
|
};
|
|
11172
|
-
/**
|
|
11173
|
-
*
|
|
11201
|
+
/**
|
|
11202
|
+
* @private
|
|
11174
11203
|
* @returns {void}
|
|
11175
11204
|
*/
|
|
11176
11205
|
Marker.prototype.initializeMarkerClusterList = function () {
|
|
@@ -11215,7 +11244,7 @@ var Polygon = /** @__PURE__ @class */ (function () {
|
|
|
11215
11244
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
11216
11245
|
/* eslint-enable @typescript-eslint/no-empty-function */
|
|
11217
11246
|
/**
|
|
11218
|
-
* To render polygon for maps
|
|
11247
|
+
* To render polygon for maps.
|
|
11219
11248
|
*
|
|
11220
11249
|
* @param {Maps} maps - Specifies the layer instance to which the polygon is to be rendered.
|
|
11221
11250
|
* @param {number} layerIndex -Specifies the index of current layer.
|
|
@@ -11292,7 +11321,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
11292
11321
|
return text;
|
|
11293
11322
|
};
|
|
11294
11323
|
/**
|
|
11295
|
-
* To render label for maps
|
|
11324
|
+
* To render label for maps.
|
|
11296
11325
|
*
|
|
11297
11326
|
* @param {LayerSettings} layer - Specifies the layer settings
|
|
11298
11327
|
* @param {number} layerIndex - Specifies the layer index.
|
|
@@ -11715,7 +11744,7 @@ var NavigationLine = /** @__PURE__ @class */ (function () {
|
|
|
11715
11744
|
this.maps = maps;
|
|
11716
11745
|
}
|
|
11717
11746
|
/**
|
|
11718
|
-
* To render navigation line for maps
|
|
11747
|
+
* To render navigation line for maps.
|
|
11719
11748
|
*
|
|
11720
11749
|
* @param {LayerSettings} layer - Specifies the layer instance to which the navigation line is to be rendered.
|
|
11721
11750
|
* @param {number} factor - Specifies the current zoom factor of the Maps.
|
|
@@ -12307,10 +12336,14 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
12307
12336
|
textOptions = new TextOption(textId, textLocation.x, textLocation.y, 'middle', item['text'], '', '');
|
|
12308
12337
|
textFont.fontFamily = !isNullOrUndefined(textFont.fontFamily) ? textFont.fontFamily : this.maps.themeStyle.fontFamily;
|
|
12309
12338
|
textFont.size = map.themeStyle.legendFontSize || textFont.size;
|
|
12310
|
-
var
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12339
|
+
var textElement = renderTextElement(textOptions, textFont, textFont.color, this.legendGroup);
|
|
12340
|
+
textElement.setAttribute('aria-label', item['text']);
|
|
12341
|
+
textElement.setAttribute('role', 'region');
|
|
12342
|
+
var rectElement = render.drawRectangle(rectOptions);
|
|
12343
|
+
this.legendGroup.appendChild(rectElement);
|
|
12344
|
+
if (map.legendSettings.toggleLegendSettings.enable && (legend.type === 'Layers' || legend.type === 'Markers')) {
|
|
12345
|
+
this.maintainLegendToggle(i, rectElement, textElement);
|
|
12346
|
+
}
|
|
12314
12347
|
this.legendToggle();
|
|
12315
12348
|
}
|
|
12316
12349
|
}
|
|
@@ -12384,10 +12417,14 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
12384
12417
|
legendText = trimmedText;
|
|
12385
12418
|
}
|
|
12386
12419
|
textOptions = new TextOption(textId, textLocation.x, textLocation.y, 'start', legendText, '', '');
|
|
12387
|
-
var
|
|
12388
|
-
|
|
12389
|
-
|
|
12420
|
+
var textElement = renderTextElement(textOptions, legendTextStyle, legendTextStyle.color, legendElement);
|
|
12421
|
+
textElement.setAttribute('aria-label', legendText);
|
|
12422
|
+
textElement.setAttribute('role', 'region');
|
|
12390
12423
|
this.legendGroup.appendChild(legendElement);
|
|
12424
|
+
if (map.legendSettings.toggleLegendSettings.enable && (legend.type === 'Layers' || legend.type === 'Markers')) {
|
|
12425
|
+
var legendShapeElement = legendElement.childNodes[0];
|
|
12426
|
+
this.maintainLegendToggle(collection['idIndex'], legendShapeElement, textElement);
|
|
12427
|
+
}
|
|
12391
12428
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12392
12429
|
if (i === (this.totalPages[page]['Collection'].length - 1)) {
|
|
12393
12430
|
var pagingGroup = void 0;
|
|
@@ -12472,6 +12509,34 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
12472
12509
|
}
|
|
12473
12510
|
}
|
|
12474
12511
|
};
|
|
12512
|
+
/**
|
|
12513
|
+
* @param {number} legendIndex - Specifies the legend index.
|
|
12514
|
+
* @param {Element} legendShapeElement - Specifies the legend shape element.
|
|
12515
|
+
* @param {Element} legendTextElement - Specifies the legend text element.
|
|
12516
|
+
* @returns {void}
|
|
12517
|
+
* @private
|
|
12518
|
+
*/
|
|
12519
|
+
Legend.prototype.maintainLegendToggle = function (legendIndex, legendShapeElement, legendTextElement) {
|
|
12520
|
+
if (this.maps.legendSettings.toggleLegendSettings.enable &&
|
|
12521
|
+
!isNullOrUndefined(this.maps.toggledLegendId) && this.maps.toggledLegendId.indexOf(legendIndex) > -1 &&
|
|
12522
|
+
!isNullOrUndefined(this.maps.toggledElementId) && this.maps.toggledElementId.length > 0) {
|
|
12523
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12524
|
+
var currentItem = this.legendCollection[legendIndex]['data'];
|
|
12525
|
+
if (!this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
12526
|
+
this.setToggleAttributes(legendTextElement, legendShapeElement, this.maps.legendSettings.toggleLegendSettings.fill, this.maps.legendSettings.toggleLegendSettings.opacity, this.maps.legendSettings.toggleLegendSettings.border.color, this.maps.legendSettings.toggleLegendSettings.border.width, isNullOrUndefined(this.maps.legendSettings.toggleLegendSettings.border.opacity) ?
|
|
12527
|
+
this.maps.legendSettings.toggleLegendSettings.opacity :
|
|
12528
|
+
this.maps.legendSettings.toggleLegendSettings.border.opacity, this.maps.legendSettings.toggleLegendSettings.fill);
|
|
12529
|
+
}
|
|
12530
|
+
else {
|
|
12531
|
+
var layerIndex = currentItem[currentItem.length - 1].layerIndex;
|
|
12532
|
+
this.setToggleAttributes(legendTextElement, legendShapeElement, this.maps.layers[layerIndex].shapeSettings.fill, this.maps.layers[layerIndex].shapeSettings.opacity, this.maps.layers[layerIndex].shapeSettings.border.color, isNullOrUndefined(this.maps.layers[layerIndex].shapeSettings.border.width)
|
|
12533
|
+
? 0 : this.maps.layers[layerIndex].shapeSettings.border.width, isNullOrUndefined(this.maps.layers[layerIndex].shapeSettings.border.opacity)
|
|
12534
|
+
? this.maps.layers[layerIndex].shapeSettings.opacity
|
|
12535
|
+
: this.maps.layers[layerIndex].shapeSettings.border.opacity, this.maps.layers[layerIndex].shapeSettings.fill);
|
|
12536
|
+
}
|
|
12537
|
+
currentItem['_isVisible'] = false;
|
|
12538
|
+
}
|
|
12539
|
+
};
|
|
12475
12540
|
Legend.prototype.legendHighLightAndSelection = function (targetElement, value) {
|
|
12476
12541
|
var shapeIndex;
|
|
12477
12542
|
var layerIndex;
|
|
@@ -13305,7 +13370,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13305
13370
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13306
13371
|
Array.prototype.forEach.call(markerData, function (data, dataIndex) {
|
|
13307
13372
|
var marker$$1 = _this.maps.layers[layerIndex].markerSettings[markerIndex];
|
|
13308
|
-
if ((text === data[marker$$1.legendText] || text === '') && legendFill === data[marker$$1.colorValuePath]) {
|
|
13373
|
+
if ((text === data[marker$$1.legendText] || text === '') && legendFill === (data[marker$$1.colorValuePath] || marker$$1.fill)) {
|
|
13309
13374
|
legendData.push({ layerIndex: layerIndex, markerIndex: markerIndex, dataIndex: dataIndex, value: legendFill, name: text,
|
|
13310
13375
|
shape: !isNullOrUndefined(marker$$1.shapeValuePath) ? data[marker$$1.shapeValuePath] : marker$$1.shape });
|
|
13311
13376
|
}
|
|
@@ -13566,11 +13631,22 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13566
13631
|
if (!isNullOrUndefined(currentData['data'])) {
|
|
13567
13632
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13568
13633
|
var data = currentData['data'];
|
|
13569
|
-
|
|
13634
|
+
var _loop_3 = function (j) {
|
|
13570
13635
|
if (dataIndex === data[j]['dataIndex'] && layerIndex === data[j]['layerIndex']) {
|
|
13571
|
-
|
|
13572
|
-
|
|
13636
|
+
this_3.renderInteractivePointer(legend, fill, stroke, id, strokeWidth, rect);
|
|
13637
|
+
var arrowElement_1 = querySelector(id, this_3.maps.element.id);
|
|
13638
|
+
if (this_3.maps.isDevice && !(isNullOrUndefined(arrowElement_1))) {
|
|
13639
|
+
clearTimeout(this_3.arrowTimer);
|
|
13640
|
+
this_3.arrowTimer = setTimeout(function () { remove(arrowElement_1); }, 2000);
|
|
13641
|
+
}
|
|
13642
|
+
return "break";
|
|
13573
13643
|
}
|
|
13644
|
+
};
|
|
13645
|
+
var this_3 = this;
|
|
13646
|
+
for (var j = 0; j < data.length; j++) {
|
|
13647
|
+
var state_1 = _loop_3(j);
|
|
13648
|
+
if (state_1 === "break")
|
|
13649
|
+
break;
|
|
13574
13650
|
}
|
|
13575
13651
|
}
|
|
13576
13652
|
}
|
|
@@ -13646,6 +13722,10 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13646
13722
|
mapElement.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[layerIndex].markerSettings[markerIndex].border.opacity) ?
|
|
13647
13723
|
this.maps.layers[layerIndex].markerSettings[markerIndex].opacity :
|
|
13648
13724
|
this.maps.layers[layerIndex].markerSettings[markerIndex].border.opacity).toString());
|
|
13725
|
+
var indexToRemoveSelectedElement = this.maps.toggledElementId.indexOf(mapElement.id);
|
|
13726
|
+
if (indexToRemoveSelectedElement !== -1) {
|
|
13727
|
+
this.maps.toggledElementId.splice(indexToRemoveSelectedElement, 1);
|
|
13728
|
+
}
|
|
13649
13729
|
};
|
|
13650
13730
|
Legend.prototype.bubbleToggleSelection = function (mapElement, layerIndex, bubbleIndex, legendIndex) {
|
|
13651
13731
|
mapElement.setAttribute('fill', this.legendCollection[legendIndex]['fill']);
|
|
@@ -13687,6 +13767,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13687
13767
|
'_MarkerIndex_' + shape['markerIndex'] + '_dataIndex_' + shape['dataIndex'] + '_Group', this.maps.element.id);
|
|
13688
13768
|
mapElement = mapElement.children[0];
|
|
13689
13769
|
}
|
|
13770
|
+
var toggledLegendIdIndex = this.maps.toggledLegendId.indexOf(legendIndex);
|
|
13690
13771
|
if (isVisible && mapElement !== null) {
|
|
13691
13772
|
if (this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
13692
13773
|
mapElement.setAttribute('fill', this.maps.layers[k].shapeSettings.fill);
|
|
@@ -13704,6 +13785,15 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13704
13785
|
mapElement.setAttribute('stroke-width', (legendToggleBorderWidth).toString());
|
|
13705
13786
|
mapElement.setAttribute('stroke-opacity', (legendToggleBorderOpacity).toString());
|
|
13706
13787
|
}
|
|
13788
|
+
if (this.maps.legendSettings.type === 'Markers') {
|
|
13789
|
+
if (toggledLegendIdIndex === -1) {
|
|
13790
|
+
this.maps.toggledLegendId.push(legendIndex);
|
|
13791
|
+
}
|
|
13792
|
+
var index = this.maps.toggledElementId.indexOf(mapElement.id);
|
|
13793
|
+
if (index === -1) {
|
|
13794
|
+
this.maps.toggledElementId.push(mapElement.id);
|
|
13795
|
+
}
|
|
13796
|
+
}
|
|
13707
13797
|
if (targetEle !== null) {
|
|
13708
13798
|
legendShapeId = querySelector(this.maps.element.id + '_Legend_Shape_Index_' + legendIndex, this.maps.element.id);
|
|
13709
13799
|
legendTextId = querySelector(this.maps.element.id + '_Legend_Text_Index_' + legendIndex, this.maps.element.id);
|
|
@@ -13722,6 +13812,9 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13722
13812
|
}
|
|
13723
13813
|
else {
|
|
13724
13814
|
if (this.maps.legendSettings.type === 'Markers') {
|
|
13815
|
+
if (toggledLegendIdIndex !== -1 && i === 0) {
|
|
13816
|
+
this.maps.toggledLegendId.splice(toggledLegendIdIndex, 1);
|
|
13817
|
+
}
|
|
13725
13818
|
this.markerToggleSelection(mapElement, k, j, legendIndex);
|
|
13726
13819
|
}
|
|
13727
13820
|
else {
|
|
@@ -13730,7 +13823,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13730
13823
|
if (targetEle !== null) {
|
|
13731
13824
|
legendShapeId = querySelector(this.maps.element.id + '_Legend_Shape_Index_' + legendIndex, this.maps.element.id);
|
|
13732
13825
|
legendTextId = querySelector(this.maps.element.id + '_Legend_Text_Index_' + legendIndex, this.maps.element.id);
|
|
13733
|
-
this.setToggleAttributes(legendTextId, legendShapeId, this.legendCollection[legendIndex]['fill'], this.legendCollection[legendIndex]['opacity'], this.legendCollection[legendIndex]['shapeBorder']['color'], this.legendCollection[legendIndex]['shapeBorder']['width'], this.legendCollection[legendIndex]['shapeBorder']['opacity'],
|
|
13826
|
+
this.setToggleAttributes(legendTextId, legendShapeId, this.legendCollection[legendIndex]['fill'], this.legendCollection[legendIndex]['opacity'], this.legendCollection[legendIndex]['shapeBorder']['color'], this.legendCollection[legendIndex]['shapeBorder']['width'], this.legendCollection[legendIndex]['shapeBorder']['opacity'], this.maps.legendSettings.textStyle.color);
|
|
13734
13827
|
if (this.maps.legendSettings.shape === 'HorizontalLine' || this.maps.legendSettings.shape === 'VerticalLine' || this.maps.legendSettings.shape === 'Cross') {
|
|
13735
13828
|
legendShapeId.setAttribute('stroke', this.legendCollection[legendIndex]['fill']);
|
|
13736
13829
|
}
|
|
@@ -13754,13 +13847,13 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13754
13847
|
layerElement = querySelector(this.maps.element.id + '_LayerIndex_' + shape['layerIndex'] +
|
|
13755
13848
|
'_shapeIndex_' + shape['shapeIndex'] + '_dataIndex_' + shape['dataIndex'], this.maps.element.id);
|
|
13756
13849
|
if (layerElement !== null) {
|
|
13757
|
-
var toggledShapeIdIndex = this.maps.
|
|
13850
|
+
var toggledShapeIdIndex = this.maps.toggledElementId.indexOf(layerElement.id);
|
|
13758
13851
|
if (isVisible) {
|
|
13759
13852
|
if (i === 0) {
|
|
13760
13853
|
this.maps.toggledLegendId.push(legendIndex);
|
|
13761
13854
|
}
|
|
13762
13855
|
if (toggledShapeIdIndex === -1) {
|
|
13763
|
-
this.maps.
|
|
13856
|
+
this.maps.toggledElementId.push(layerElement.id);
|
|
13764
13857
|
}
|
|
13765
13858
|
if (this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
13766
13859
|
layerElement.setAttribute('fill', this.maps.layers[j].shapeSettings.fill);
|
|
@@ -13799,7 +13892,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13799
13892
|
this.maps.toggledLegendId.splice(toggledLegendIdIndex, 1);
|
|
13800
13893
|
}
|
|
13801
13894
|
if (toggledShapeIdIndex !== -1) {
|
|
13802
|
-
this.maps.
|
|
13895
|
+
this.maps.toggledElementId.splice(toggledShapeIdIndex, 1);
|
|
13803
13896
|
}
|
|
13804
13897
|
layerElement.setAttribute('fill', this.legendCollection[legendIndex]['fill']);
|
|
13805
13898
|
layerElement.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[j].shapeSettings.border.opacity) ?
|
|
@@ -13831,6 +13924,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13831
13924
|
var selectedItem = this.legendCollection[legendIndex]['data'];
|
|
13832
13925
|
var isVisible = selectedItem['_isVisible'];
|
|
13833
13926
|
if ((this.maps.legendSettings.type === 'Bubbles' || this.maps.legendSettings.type === 'Markers') && this.maps.legendSettings.toggleLegendSettings.enable) {
|
|
13927
|
+
var toggledLegendIdIndex = this.maps.toggledLegendId.indexOf(legendIndex);
|
|
13834
13928
|
for (var k = 0; k < this.maps.layers.length; k++) {
|
|
13835
13929
|
for (var j = 0; j < (this.maps.legendSettings.type === 'Bubbles' ? this.maps.layers[k].bubbleSettings.length : this.maps.layers[k].markerSettings.length); j++) {
|
|
13836
13930
|
for (var i = 0; i < selectedItem.length; i++) {
|
|
@@ -13845,6 +13939,15 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13845
13939
|
LegendInteractive = LegendInteractive.children[0];
|
|
13846
13940
|
}
|
|
13847
13941
|
if (isVisible && LegendInteractive !== null) {
|
|
13942
|
+
if (this.maps.legendSettings.type === 'Markers') {
|
|
13943
|
+
if (toggledLegendIdIndex === -1) {
|
|
13944
|
+
this.maps.toggledLegendId.push(legendIndex);
|
|
13945
|
+
}
|
|
13946
|
+
var index = this.maps.toggledElementId.indexOf(LegendInteractive.id);
|
|
13947
|
+
if (index === -1) {
|
|
13948
|
+
this.maps.toggledElementId.push(LegendInteractive.id);
|
|
13949
|
+
}
|
|
13950
|
+
}
|
|
13848
13951
|
if (this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
13849
13952
|
LegendInteractive.setAttribute('fill', this.maps.layers[k].shapeSettings.fill);
|
|
13850
13953
|
LegendInteractive.setAttribute('stroke', this.maps.layers[k].shapeSettings.border.color);
|
|
@@ -13882,6 +13985,9 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13882
13985
|
}
|
|
13883
13986
|
else {
|
|
13884
13987
|
if (this.maps.legendSettings.type === 'Markers') {
|
|
13988
|
+
if (toggledLegendIdIndex !== -1 && i === 0) {
|
|
13989
|
+
this.maps.toggledLegendId.splice(toggledLegendIdIndex, 1);
|
|
13990
|
+
}
|
|
13885
13991
|
this.markerToggleSelection(LegendInteractive, k, j, legendIndex);
|
|
13886
13992
|
}
|
|
13887
13993
|
else {
|
|
@@ -13895,7 +14001,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13895
14001
|
legendShapeId.setAttribute('stroke-width', this.legendCollection[legendIndex]['shapeBorder']['width']);
|
|
13896
14002
|
legendShapeId.setAttribute('stroke-opacity', this.legendCollection[legendIndex]['shapeBorder']['opacity']);
|
|
13897
14003
|
legendTextId = querySelector(this.maps.element.id + '_Legend_Index_' + legendIndex + '_Text', this.maps.element.id);
|
|
13898
|
-
legendTextId.setAttribute('fill',
|
|
14004
|
+
legendTextId.setAttribute('fill', this.maps.legendSettings.textStyle.color);
|
|
13899
14005
|
}
|
|
13900
14006
|
}
|
|
13901
14007
|
}
|
|
@@ -13916,13 +14022,13 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13916
14022
|
mapLegendElement = querySelector(this.maps.element.id + '_LayerIndex_' + mapdata['layerIndex'] +
|
|
13917
14023
|
'_shapeIndex_' + mapdata['shapeIndex'] + '_dataIndex_' + mapdata['dataIndex'], this.maps.element.id);
|
|
13918
14024
|
if (mapLegendElement !== null) {
|
|
13919
|
-
var toggledShapeIdIndex = this.maps.
|
|
14025
|
+
var toggledShapeIdIndex = this.maps.toggledElementId.indexOf(mapLegendElement.id);
|
|
13920
14026
|
if (isVisible) {
|
|
13921
14027
|
if (i === 0) {
|
|
13922
14028
|
this.maps.toggledLegendId.push(legendIndex);
|
|
13923
14029
|
}
|
|
13924
14030
|
if (toggledShapeIdIndex === -1) {
|
|
13925
|
-
this.maps.
|
|
14031
|
+
this.maps.toggledElementId.push(mapLegendElement.id);
|
|
13926
14032
|
}
|
|
13927
14033
|
if (this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
13928
14034
|
mapLegendElement.setAttribute('fill', this.maps.layers[0].shapeSettings.fill);
|
|
@@ -13962,7 +14068,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
13962
14068
|
this.maps.toggledLegendId.splice(toggleLegendIdIndex, 1);
|
|
13963
14069
|
}
|
|
13964
14070
|
if (toggledShapeIdIndex !== -1) {
|
|
13965
|
-
this.maps.
|
|
14071
|
+
this.maps.toggledElementId.splice(toggledShapeIdIndex, 1);
|
|
13966
14072
|
}
|
|
13967
14073
|
mapLegendElement.setAttribute('fill-opacity', (this.maps.layers[k].shapeSettings.opacity).toString());
|
|
13968
14074
|
mapLegendElement.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width) ? 0 :
|
|
@@ -14139,7 +14245,7 @@ var Highlight = /** @__PURE__ @class */ (function () {
|
|
|
14139
14245
|
this.addEventListener();
|
|
14140
14246
|
}
|
|
14141
14247
|
/**
|
|
14142
|
-
* To bind events for highlight module
|
|
14248
|
+
* To bind events for highlight module.
|
|
14143
14249
|
*
|
|
14144
14250
|
* @returns {void}
|
|
14145
14251
|
*/
|
|
@@ -14151,7 +14257,7 @@ var Highlight = /** @__PURE__ @class */ (function () {
|
|
|
14151
14257
|
this.maps.on(Browser.touchStartEvent, this.mouseMove, this);
|
|
14152
14258
|
};
|
|
14153
14259
|
/**
|
|
14154
|
-
* To unbind events for highlight module
|
|
14260
|
+
* To unbind events for highlight module.
|
|
14155
14261
|
*
|
|
14156
14262
|
* @returns {void}
|
|
14157
14263
|
*/
|
|
@@ -14163,7 +14269,7 @@ var Highlight = /** @__PURE__ @class */ (function () {
|
|
|
14163
14269
|
this.maps.off(Browser.touchStartEvent, this.mouseMove);
|
|
14164
14270
|
};
|
|
14165
14271
|
/**
|
|
14166
|
-
* Public method for highlight module
|
|
14272
|
+
* Public method for highlight module.
|
|
14167
14273
|
*
|
|
14168
14274
|
* @param {number} layerIndex - Specifies the index of the layer.
|
|
14169
14275
|
* @param {string} name - Specifies the name.
|
|
@@ -14275,7 +14381,7 @@ var Highlight = /** @__PURE__ @class */ (function () {
|
|
|
14275
14381
|
}
|
|
14276
14382
|
};
|
|
14277
14383
|
/**
|
|
14278
|
-
* Handles the highlighting events in map
|
|
14384
|
+
* Handles the highlighting events in map.
|
|
14279
14385
|
*
|
|
14280
14386
|
* @param {Element} targetElement - Specifies the target element.
|
|
14281
14387
|
* @param {number} layerIndex - Specifies the index of the layer.
|
|
@@ -14407,7 +14513,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
14407
14513
|
this.addEventListener();
|
|
14408
14514
|
}
|
|
14409
14515
|
/**
|
|
14410
|
-
* For binding events to selection module
|
|
14516
|
+
* For binding events to selection module.
|
|
14411
14517
|
*
|
|
14412
14518
|
* @returns {void}
|
|
14413
14519
|
*/
|
|
@@ -14417,7 +14523,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
14417
14523
|
}
|
|
14418
14524
|
};
|
|
14419
14525
|
/**
|
|
14420
|
-
* For removing events from selection
|
|
14526
|
+
* For removing events from selection module.
|
|
14421
14527
|
*
|
|
14422
14528
|
* @returns {void}
|
|
14423
14529
|
*/
|
|
@@ -14496,7 +14602,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
14496
14602
|
}
|
|
14497
14603
|
};
|
|
14498
14604
|
/**
|
|
14499
|
-
* Selects the element in the map
|
|
14605
|
+
* Selects the element in the map.
|
|
14500
14606
|
*
|
|
14501
14607
|
* @param {Element} targetElement - Specifies the target element.
|
|
14502
14608
|
* @param {number} layerIndex - Specifies the index of the layer.
|
|
@@ -14517,7 +14623,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
14517
14623
|
}
|
|
14518
14624
|
};
|
|
14519
14625
|
/**
|
|
14520
|
-
* Public method for selection
|
|
14626
|
+
* Public method for selection.
|
|
14521
14627
|
*
|
|
14522
14628
|
* @param {number} layerIndex - Specifies the index of the layer.
|
|
14523
14629
|
* @param {string} name - Specifies the name.
|
|
@@ -14535,7 +14641,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
14535
14641
|
}
|
|
14536
14642
|
};
|
|
14537
14643
|
/**
|
|
14538
|
-
* Method for selection
|
|
14644
|
+
* Method for selection.
|
|
14539
14645
|
*
|
|
14540
14646
|
* @param {Element} targetElement - Specifies the target element
|
|
14541
14647
|
* @param {any} shapeData - Specifies the shape data
|
|
@@ -14761,10 +14867,6 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
14761
14867
|
pageY = e.pageY;
|
|
14762
14868
|
target = e.target;
|
|
14763
14869
|
}
|
|
14764
|
-
if (this.maps.isDevice) {
|
|
14765
|
-
clearTimeout(this.clearTimeout);
|
|
14766
|
-
this.clearTimeout = setTimeout(this.removeTooltip.bind(this), 2000);
|
|
14767
|
-
}
|
|
14768
14870
|
if (target.id.indexOf(this.maps.element.id) === -1) {
|
|
14769
14871
|
var ancestor = target.closest('.' + this.maps.element.id + '_marker_template_element');
|
|
14770
14872
|
if (!isNullOrUndefined(ancestor) && ancestor.id.indexOf('_MarkerIndex_') > -1) {
|
|
@@ -14931,9 +15033,11 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
14931
15033
|
// eslint-disable-next-line no-constant-condition
|
|
14932
15034
|
if (typeof (isPolygon ? polygon.tooltipTemplate !== 'function' : option.template !== 'function') && (isPolygon ? polygon.tooltipTemplate !== null : option.template !== null) && Object.keys(typeof (isPolygon ? polygon.tooltipTemplate === 'object' : option.template === 'object') ? (isPolygon ? polygon.tooltipTemplate : option.template) : {}).length === 1) {
|
|
14933
15035
|
if (isPolygon) {
|
|
15036
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14934
15037
|
polygon.tooltipTemplate = polygon.tooltipTemplate[Object.keys(polygon.tooltipTemplate)[0]];
|
|
14935
15038
|
}
|
|
14936
15039
|
else {
|
|
15040
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14937
15041
|
option.template = option.template[Object.keys(option.template)[0]];
|
|
14938
15042
|
}
|
|
14939
15043
|
}
|
|
@@ -15018,6 +15122,15 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
15018
15122
|
_this.svgTooltip.appendTo(tooltipEle);
|
|
15019
15123
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15020
15124
|
_this.maps.renderReactTemplates();
|
|
15125
|
+
if (_this.maps.isDevice) {
|
|
15126
|
+
var timer = targetId.indexOf('_MarkerIndex_') > -1 || targetId.indexOf('_BubbleIndex_') > -1
|
|
15127
|
+
|| targetId.indexOf('_shapeIndex_') > -1 ? option.duration : polygonTooltipOption.duration;
|
|
15128
|
+
timer = (!isNullOrUndefined(timer) && timer > 0) ? timer : (timer < 0) ? 2000 : null;
|
|
15129
|
+
if (timer !== null) {
|
|
15130
|
+
clearTimeout(_this.tooltipTimer);
|
|
15131
|
+
_this.tooltipTimer = setTimeout(_this.removeTooltip.bind(_this), timer);
|
|
15132
|
+
}
|
|
15133
|
+
}
|
|
15021
15134
|
}
|
|
15022
15135
|
else {
|
|
15023
15136
|
_this.clearTooltip(e.target);
|
|
@@ -15054,7 +15167,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
15054
15167
|
}
|
|
15055
15168
|
};
|
|
15056
15169
|
/**
|
|
15057
|
-
* To get content for the current toolitp
|
|
15170
|
+
* To get content for the current toolitp.
|
|
15058
15171
|
*
|
|
15059
15172
|
* @param {TooltipSettingsModel} options - Specifies the options for rendering tooltip
|
|
15060
15173
|
* @param {any} templateData - Specifies the template data
|
|
@@ -15088,7 +15201,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
15088
15201
|
return format;
|
|
15089
15202
|
};
|
|
15090
15203
|
/**
|
|
15091
|
-
* Handles the mouse up
|
|
15204
|
+
* Handles the mouse up.
|
|
15092
15205
|
*
|
|
15093
15206
|
* @param {PointerEvent} e - Specifies the event
|
|
15094
15207
|
* @returns {void}
|
|
@@ -15098,13 +15211,13 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
15098
15211
|
if (!isNullOrUndefined(this.maps)) {
|
|
15099
15212
|
this.renderTooltip(e);
|
|
15100
15213
|
if (this.maps.tooltipDisplayMode === 'MouseMove') {
|
|
15101
|
-
clearTimeout(this.
|
|
15102
|
-
this.
|
|
15214
|
+
clearTimeout(this.tooltipTimer);
|
|
15215
|
+
this.tooltipTimer = setTimeout(this.removeTooltip.bind(this), 2000);
|
|
15103
15216
|
}
|
|
15104
15217
|
}
|
|
15105
15218
|
};
|
|
15106
15219
|
/**
|
|
15107
|
-
* Removes the tooltip
|
|
15220
|
+
* Removes the tooltip.
|
|
15108
15221
|
*
|
|
15109
15222
|
* @returns {boolean} - Returns the boolean whether tooltip is removed or not.
|
|
15110
15223
|
* @private
|
|
@@ -15129,7 +15242,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
15129
15242
|
}
|
|
15130
15243
|
};
|
|
15131
15244
|
/**
|
|
15132
|
-
* To bind events for tooltip module
|
|
15245
|
+
* To bind events for tooltip module.
|
|
15133
15246
|
*
|
|
15134
15247
|
* @returns {void}
|
|
15135
15248
|
* @private
|
|
@@ -15151,7 +15264,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
15151
15264
|
this.maps.element.addEventListener('contextmenu', this.removeTooltip);
|
|
15152
15265
|
};
|
|
15153
15266
|
/**
|
|
15154
|
-
* Removes the event listeners
|
|
15267
|
+
* Removes the event listeners.
|
|
15155
15268
|
*
|
|
15156
15269
|
* @returns {void}
|
|
15157
15270
|
* @private
|
|
@@ -15216,6 +15329,8 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15216
15329
|
/** @private */
|
|
15217
15330
|
this.isPointer = Browser.isPointer;
|
|
15218
15331
|
this.handled = false;
|
|
15332
|
+
/** @private */
|
|
15333
|
+
this.isPanningInProgress = false;
|
|
15219
15334
|
this.isPan = false;
|
|
15220
15335
|
this.isZoomFinal = false;
|
|
15221
15336
|
this.isZoomSelection = false;
|
|
@@ -15238,7 +15353,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15238
15353
|
this.addEventListener();
|
|
15239
15354
|
}
|
|
15240
15355
|
/**
|
|
15241
|
-
* To perform zooming for maps
|
|
15356
|
+
* To perform zooming for maps.
|
|
15242
15357
|
*
|
|
15243
15358
|
* @param {Point} position - Specifies the position.
|
|
15244
15359
|
* @param {number} newZoomFactor - Specifies the zoom factor.
|
|
@@ -15666,7 +15781,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15666
15781
|
}
|
|
15667
15782
|
};
|
|
15668
15783
|
/**
|
|
15669
|
-
* To animate the zooming process
|
|
15784
|
+
* To animate the zooming process.
|
|
15670
15785
|
*
|
|
15671
15786
|
* @param {Element} element - Specifies the element
|
|
15672
15787
|
* @param {boolean} animate - Specifies the boolean value
|
|
@@ -15704,6 +15819,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15704
15819
|
var y = maps.translatePoint.y;
|
|
15705
15820
|
var currentLabelIndex = 0;
|
|
15706
15821
|
maps.zoomShapeCollection = [];
|
|
15822
|
+
this.isPanningInProgress = isPanning || false;
|
|
15707
15823
|
if (document.getElementById(maps.element.id + '_mapsTooltip')) {
|
|
15708
15824
|
removeElement(maps.element.id + '_mapsTooltip');
|
|
15709
15825
|
}
|
|
@@ -15747,7 +15863,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15747
15863
|
}
|
|
15748
15864
|
}
|
|
15749
15865
|
else if (currentEle.id.indexOf('_Markers_Group') > -1) {
|
|
15750
|
-
if ((!this_1.isPanModeEnabled) && !isNullOrUndefined(currentEle.childNodes[0])) {
|
|
15866
|
+
if ((!this_1.isPanModeEnabled || !isPanning) && !isNullOrUndefined(currentEle.childNodes[0])) {
|
|
15751
15867
|
this_1.markerTranslates(currentEle.childNodes[0], factor_1, x, y, scale, 'Marker', layerElement);
|
|
15752
15868
|
}
|
|
15753
15869
|
currentEle = layerElement.childNodes[j];
|
|
@@ -16014,7 +16130,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
16014
16130
|
});
|
|
16015
16131
|
};
|
|
16016
16132
|
/**
|
|
16017
|
-
* To translate the layer template elements
|
|
16133
|
+
* To translate the layer template elements.
|
|
16018
16134
|
*
|
|
16019
16135
|
* @param {number} x - Specifies the x value
|
|
16020
16136
|
* @param {number} y - Specifies the y value
|
|
@@ -16733,10 +16849,15 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
16733
16849
|
break;
|
|
16734
16850
|
case 'zoomin':
|
|
16735
16851
|
map.staticMapZoom = map.tileZoomLevel;
|
|
16736
|
-
if (map.staticMapZoom > 0 && map.staticMapZoom <
|
|
16852
|
+
if (map.staticMapZoom > 0 && map.staticMapZoom < map.zoomSettings.maxZoom) {
|
|
16737
16853
|
map.staticMapZoom += 1;
|
|
16738
16854
|
}
|
|
16739
|
-
|
|
16855
|
+
if (map.isTileMap && map.tileZoomLevel >= map.zoomSettings.minZoom && map.tileZoomLevel < map.zoomSettings.maxZoom) {
|
|
16856
|
+
this.toolBarZooming(map.tileZoomLevel + 1, 'ZoomIn');
|
|
16857
|
+
}
|
|
16858
|
+
else if (!map.isTileMap) {
|
|
16859
|
+
this.toolBarZooming(map.scale + 1, 'ZoomIn');
|
|
16860
|
+
}
|
|
16740
16861
|
scale = this.maps.isTileMap ? Math.round(this.maps.tileZoomLevel) : Math.round(this.maps.mapScaleValue);
|
|
16741
16862
|
if (!this.isZoomSelection) {
|
|
16742
16863
|
if (scale === map.zoomSettings.maxZoom || scale > 1 || (scale === 1 && this.maps.isTileMap)) {
|
|
@@ -17096,9 +17217,14 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
17096
17217
|
-(e.detail) / 3 > 0 ? 'ZoomIn' : 'ZoomOut' : (e.wheelDelta / 120) > 0 ? 'ZoomIn' : 'ZoomOut';
|
|
17097
17218
|
if (direction === 'ZoomIn') {
|
|
17098
17219
|
map.mapScaleValue = value + delta;
|
|
17099
|
-
map.
|
|
17100
|
-
|
|
17101
|
-
map.staticMapZoom
|
|
17220
|
+
if (map.isTileMap) {
|
|
17221
|
+
map.staticMapZoom = map.tileZoomLevel;
|
|
17222
|
+
if (map.staticMapZoom > 0 && map.staticMapZoom < staticMaxZoomLevel) {
|
|
17223
|
+
map.staticMapZoom += 1;
|
|
17224
|
+
this.performZooming(position, (value + delta), direction);
|
|
17225
|
+
}
|
|
17226
|
+
}
|
|
17227
|
+
else {
|
|
17102
17228
|
this.performZooming(position, (value + delta), direction);
|
|
17103
17229
|
}
|
|
17104
17230
|
}
|
|
@@ -17381,7 +17507,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
17381
17507
|
}
|
|
17382
17508
|
};
|
|
17383
17509
|
/**
|
|
17384
|
-
* Gets the Mouse Position
|
|
17510
|
+
* Gets the Mouse Position.
|
|
17385
17511
|
*
|
|
17386
17512
|
* @param {number} pageX - Specifies the Page x in map
|
|
17387
17513
|
* @param {number} pageY - Specifies the Page y in map
|
|
@@ -17476,7 +17602,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
17476
17602
|
*/
|
|
17477
17603
|
var Print = /** @__PURE__ @class */ (function () {
|
|
17478
17604
|
/**
|
|
17479
|
-
* Constructor for Maps
|
|
17605
|
+
* Constructor for Maps.
|
|
17480
17606
|
*
|
|
17481
17607
|
* @param {Maps} control - Specifies the instance of the Maps
|
|
17482
17608
|
*/
|
|
@@ -17484,7 +17610,7 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
17484
17610
|
function Print(control) {
|
|
17485
17611
|
}
|
|
17486
17612
|
/**
|
|
17487
|
-
* To print the Maps
|
|
17613
|
+
* To print the Maps.
|
|
17488
17614
|
*
|
|
17489
17615
|
* @param {Maps} maps -Specifies the Maps instance.
|
|
17490
17616
|
* @param {string[] | string | Element} elements - Specifies the element of the Maps
|
|
@@ -17506,7 +17632,7 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
17506
17632
|
});
|
|
17507
17633
|
};
|
|
17508
17634
|
/**
|
|
17509
|
-
* To get the html string of the Maps
|
|
17635
|
+
* To get the html string of the Maps.
|
|
17510
17636
|
*
|
|
17511
17637
|
* @param {Maps} maps -Specifies the Maps instance.
|
|
17512
17638
|
* @param {string[] | string | Element} elements - Specifies the html element
|
|
@@ -17951,5 +18077,5 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
17951
18077
|
* exporting all modules from maps index
|
|
17952
18078
|
*/
|
|
17953
18079
|
|
|
17954
|
-
export { Maps, load, loaded, click, onclick, rightClick, doubleClick, resize, tooltipRender, shapeSelected, shapeHighlight, mousemove, mouseup, mousedown, layerRendering, shapeRendering, markerRendering, markerClusterRendering, markerClick, markerDragStart, markerDragEnd, markerClusterClick, markerMouseMove, markerClusterMouseMove, dataLabelRendering, bubbleRendering, bubbleClick, bubbleMouseMove, animationComplete, legendRendering, annotationRendering, itemSelection, panComplete, zoomComplete, itemHighlight, beforePrint, zoomIn, zoomOut, pan, Annotation, Arrow, Font, ZoomToolbarButtonSettings, ZoomToolbarTooltipSettings, ZoomToolbarSettings, Border, CenterPosition, TooltipSettings, PolygonTooltipSettings, Margin, ConnectorLineSettings, MarkerClusterSettings, MarkerClusterData, ColorMappingSettings, InitialMarkerSelectionSettings, InitialShapeSelectionSettings, SelectionSettings, HighlightSettings, PolygonSetting, PolygonSettings, NavigationLineSettings, BubbleSettings, CommonTitleSettings, SubTitleSettings, TitleSettings, ZoomSettings, ToggleLegendSettings, LegendSettings, DataLabelSettings, ShapeSettings, MarkerBase, MarkerSettings, LayerSettings, Tile, MapsAreaSettings, Size, stringToNumber, calculateSize, createSvg, getMousePosition, degreesToRadians, radiansToDegrees, convertGeoToPoint, calculatePolygonPath, convertTileLatLongToPoint, xToCoordinate, yToCoordinate, aitoff, roundTo, sinci, acos, calculateBound, triggerDownload, Point, Coordinate, MinMax, GeoLocation, measureText, measureTextElement, TextOption, PathOption, ColorValue, RectOption, CircleOption, PolygonOption, PolylineOption, LineOption, Line, MapLocation, Rect, PatternOptions, renderTextElement, convertElement, formatValue, convertStringToValue, convertElementFromLabel, drawSymbols, getValueFromObject, markerColorChoose, markerShapeChoose, clusterTemplate, markerClusterListHandler, markerBoundsComparer, mergeSeparateCluster, clusterSeparate, marker, markerTemplate, maintainSelection, maintainStyleClass, appendShape, drawCircle, drawRectangle, drawPath, drawPolygon, drawPolyline, drawLine, calculateShapes, drawDiamond, drawTriangle, drawCross, drawHorizontalLine, drawVerticalLine, drawStar, drawBalloon, drawPattern, getFieldData, checkShapeDataFields, checkPropertyPath, filter, getRatioOfBubble, findMidPointOfPolygon, isCustomPath, textTrim, findPosition, removeElement, calculateCenterFromPixel, getTranslate, getZoomTranslate, fixInitialScaleForTile, getElementByID, getClientElement, Internalize, getTemplateFunction, getElement, getShapeData, triggerShapeEvent, getElementsByClassName, querySelector, getTargetElement, createStyle, customizeStyle, triggerItemSelectionEvent, removeClass, elementAnimate, timeout, showTooltip, wordWrap, createTooltip, getHexColor, drawSymbol, renderLegendShape, getElementOffset, changeBorderWidth, changeNavaigationLineWidth, targetTouches, calculateScale, getDistance, getTouches, getTouchCenter, sum, zoomAnimate, animate, MapAjax, smoothTranslate, compareZoomFactor, calculateZoomLevel, processResult, LayerPanel, Bubble, BingMap, Marker, Polygon, ColorMapping, DataLabel, NavigationLine, Legend, Highlight, Selection, MapsTooltip, Zoom, Annotations, Print, ImageExport, PdfExport };
|
|
18080
|
+
export { Maps, load, loaded, click, onclick, rightClick, doubleClick, resize, tooltipRender, shapeSelected, shapeHighlight, mousemove, mouseup, mousedown, layerRendering, shapeRendering, markerRendering, markerClusterRendering, markerClick, markerDragStart, markerDragEnd, markerClusterClick, markerMouseMove, markerClusterMouseMove, dataLabelRendering, bubbleRendering, bubbleClick, bubbleMouseMove, animationComplete, legendRendering, annotationRendering, itemSelection, panComplete, zoomComplete, itemHighlight, beforePrint, zoomIn, zoomOut, pan, Annotation, Arrow, Font, ZoomToolbarButtonSettings, ZoomToolbarTooltipSettings, ZoomToolbarSettings, Border, CenterPosition, TooltipSettings, PolygonTooltipSettings, Margin, ConnectorLineSettings, MarkerClusterSettings, MarkerClusterData, ColorMappingSettings, InitialMarkerSelectionSettings, InitialShapeSelectionSettings, SelectionSettings, HighlightSettings, PolygonSetting, PolygonSettings, NavigationLineSettings, BubbleSettings, CommonTitleSettings, SubTitleSettings, TitleSettings, ZoomSettings, ToggleLegendSettings, LegendSettings, DataLabelSettings, ShapeSettings, MarkerBase, MarkerSettings, LayerSettings, Tile, MapsAreaSettings, Size, stringToNumber, calculateSize, createSvg, getMousePosition, degreesToRadians, radiansToDegrees, convertGeoToPoint, calculatePolygonPath, convertTileLatLongToPoint, xToCoordinate, yToCoordinate, aitoff, roundTo, sinci, acos, calculateBound, triggerDownload, Point, Coordinate, MinMax, GeoLocation, measureText, measureTextElement, TextOption, PathOption, ColorValue, RectOption, CircleOption, PolygonOption, PolylineOption, LineOption, Line, MapLocation, Rect, PatternOptions, renderTextElement, convertElement, formatValue, convertStringToValue, convertElementFromLabel, drawSymbols, getValueFromObject, markerColorChoose, markerShapeChoose, clusterTemplate, markerClusterListHandler, markerBoundsComparer, mergeSeparateCluster, clusterSeparate, marker, markerTemplate, maintainSelection, maintainToggleSelection, maintainStyleClass, appendShape, drawCircle, drawRectangle, drawPath, drawPolygon, drawPolyline, drawLine, calculateShapes, drawDiamond, drawTriangle, drawCross, drawHorizontalLine, drawVerticalLine, drawStar, drawBalloon, drawPattern, getFieldData, checkShapeDataFields, checkPropertyPath, filter, getRatioOfBubble, findMidPointOfPolygon, isCustomPath, textTrim, findPosition, removeElement, calculateCenterFromPixel, getTranslate, getZoomTranslate, fixInitialScaleForTile, getElementByID, getClientElement, Internalize, getTemplateFunction, getElement, getShapeData, triggerShapeEvent, getElementsByClassName, querySelector, getTargetElement, createStyle, customizeStyle, triggerItemSelectionEvent, removeClass, elementAnimate, timeout, showTooltip, wordWrap, createTooltip, getHexColor, drawSymbol, renderLegendShape, getElementOffset, changeBorderWidth, changeNavaigationLineWidth, targetTouches, calculateScale, getDistance, getTouches, getTouchCenter, sum, zoomAnimate, animate, MapAjax, smoothTranslate, compareZoomFactor, calculateZoomLevel, processResult, LayerPanel, Bubble, BingMap, Marker, Polygon, ColorMapping, DataLabel, NavigationLine, Legend, Highlight, Selection, MapsTooltip, Zoom, Annotations, Print, ImageExport, PdfExport };
|
|
17955
18081
|
//# sourceMappingURL=ej2-maps.es5.js.map
|