@syncfusion/ej2-maps 20.1.59 → 20.2.43
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 +17 -39
- 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 +657 -292
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +651 -286
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/maps/layers/bing-map.js +9 -3
- package/src/maps/layers/bubble.js +3 -7
- package/src/maps/layers/data-label.js +18 -19
- package/src/maps/layers/layer-panel.d.ts +13 -1
- package/src/maps/layers/layer-panel.js +199 -68
- package/src/maps/layers/legend.d.ts +4 -0
- package/src/maps/layers/legend.js +143 -55
- package/src/maps/layers/marker.js +4 -3
- package/src/maps/maps-model.d.ts +10 -2
- package/src/maps/maps.d.ts +22 -1
- package/src/maps/maps.js +106 -61
- package/src/maps/model/base-model.d.ts +5 -1
- package/src/maps/model/base.d.ts +5 -1
- package/src/maps/model/base.js +5 -5
- package/src/maps/model/constants.d.ts +6 -0
- package/src/maps/model/constants.js +6 -0
- package/src/maps/model/theme.js +3 -0
- package/src/maps/user-interaction/highlight.js +8 -5
- package/src/maps/user-interaction/selection.js +39 -14
- package/src/maps/user-interaction/tooltip.js +3 -3
- package/src/maps/user-interaction/zoom.d.ts +1 -1
- package/src/maps/user-interaction/zoom.js +88 -38
- package/src/maps/utils/helper.js +20 -7
|
@@ -11,6 +11,10 @@ var Legend = /** @class */ (function () {
|
|
|
11
11
|
* @private
|
|
12
12
|
*/
|
|
13
13
|
this.legendBorderRect = new Rect(0, 0, 0, 0);
|
|
14
|
+
/**
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
this.initialMapAreaRect = new Rect(0, 0, 0, 0);
|
|
14
18
|
/**
|
|
15
19
|
* @private
|
|
16
20
|
*/
|
|
@@ -69,6 +73,7 @@ var Legend = /** @class */ (function () {
|
|
|
69
73
|
this.heightIncrement = 0;
|
|
70
74
|
this.defsElement = this.maps.renderer.createDefs();
|
|
71
75
|
this.maps.svgObject.appendChild(this.defsElement);
|
|
76
|
+
this.initialMapAreaRect = this.maps.mapAreaRect;
|
|
72
77
|
this.calculateLegendBounds();
|
|
73
78
|
this.drawLegend();
|
|
74
79
|
};
|
|
@@ -108,9 +113,9 @@ var Legend = /** @class */ (function () {
|
|
|
108
113
|
}
|
|
109
114
|
}
|
|
110
115
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
}
|
|
117
|
+
if (legend.type === 'Markers') {
|
|
118
|
+
_this.getMarkersLegendCollections(layerIndex, layer.markerSettings);
|
|
114
119
|
}
|
|
115
120
|
});
|
|
116
121
|
if (this.legendCollection.length > 0) {
|
|
@@ -305,8 +310,9 @@ var Legend = /** @class */ (function () {
|
|
|
305
310
|
}
|
|
306
311
|
}
|
|
307
312
|
else {
|
|
313
|
+
var padding = 10;
|
|
308
314
|
shapeX = shapeLocation[j - 1].x;
|
|
309
|
-
shapeY = prevPositionY +
|
|
315
|
+
shapeY = prevPositionY + padding + (shapeHeight / 2);
|
|
310
316
|
}
|
|
311
317
|
}
|
|
312
318
|
}
|
|
@@ -409,7 +415,14 @@ var Legend = /** @class */ (function () {
|
|
|
409
415
|
var legend = map.legendSettings;
|
|
410
416
|
var render = map.renderer;
|
|
411
417
|
var textOptions;
|
|
412
|
-
var textFont =
|
|
418
|
+
var textFont = {
|
|
419
|
+
size: legend.textStyle.size,
|
|
420
|
+
color: legend.textStyle.color,
|
|
421
|
+
fontFamily: legend.textStyle.fontFamily,
|
|
422
|
+
fontWeight: legend.textStyle.fontWeight,
|
|
423
|
+
fontStyle: legend.textStyle.fontStyle,
|
|
424
|
+
opacity: legend.textStyle.opacity
|
|
425
|
+
};
|
|
413
426
|
this.legendGroup = render.createGroup({ id: map.element.id + '_Legend_Group' });
|
|
414
427
|
if (legend.mode === 'Interactive') {
|
|
415
428
|
for (var i = 0; i < this.legendRenderingCollections.length; i++) {
|
|
@@ -425,7 +438,7 @@ var Legend = /** @class */ (function () {
|
|
|
425
438
|
textFont.color = (textFont.color !== null) ? textFont.color : this.maps.themeStyle.legendTextColor;
|
|
426
439
|
var rectOptions = new RectOption(itemId, item['fill'], item['shapeBorder'], legend.opacity, bounds);
|
|
427
440
|
textOptions = new TextOption(textId, textLocation.x, textLocation.y, 'middle', item['text'], '', '');
|
|
428
|
-
textFont.fontFamily =
|
|
441
|
+
textFont.fontFamily = !isNullOrUndefined(textFont.fontFamily) ? textFont.fontFamily : this.maps.themeStyle.fontFamily;
|
|
429
442
|
textFont.size = map.themeStyle.legendFontSize || textFont.size;
|
|
430
443
|
renderTextElement(textOptions, textFont, textFont.color, this.legendGroup);
|
|
431
444
|
this.legendGroup.appendChild(render.drawRectangle(rectOptions));
|
|
@@ -481,7 +494,7 @@ var Legend = /** @class */ (function () {
|
|
|
481
494
|
};
|
|
482
495
|
legendTextStyle.color = (legendTextStyle.color !== null) ? legendTextStyle.color :
|
|
483
496
|
this.maps.themeStyle.legendTextColor;
|
|
484
|
-
legendTextStyle.fontFamily =
|
|
497
|
+
legendTextStyle.fontFamily = !isNullOrUndefined(legendTextStyle.fontFamily) ? legendTextStyle.fontFamily : this.maps.themeStyle.fontFamily;
|
|
485
498
|
legendTextStyle.size = map.themeStyle.legendFontSize || legendTextStyle.size;
|
|
486
499
|
if (i === 0) {
|
|
487
500
|
this.renderLegendBorder();
|
|
@@ -557,7 +570,9 @@ var Legend = /** @class */ (function () {
|
|
|
557
570
|
'opacity': 1,
|
|
558
571
|
'dominant-baseline': ''
|
|
559
572
|
};
|
|
560
|
-
|
|
573
|
+
var pagingTextElement = render.createText(pageTextOptions, pagingText);
|
|
574
|
+
pagingTextElement.setAttribute('style', 'user-select: none;');
|
|
575
|
+
pagingGroup.appendChild(pagingTextElement);
|
|
561
576
|
this.legendGroup.appendChild(pagingGroup);
|
|
562
577
|
}
|
|
563
578
|
this.legendToggle();
|
|
@@ -569,6 +584,7 @@ var Legend = /** @class */ (function () {
|
|
|
569
584
|
var shapeIndex;
|
|
570
585
|
var layerIndex;
|
|
571
586
|
var dataIndex;
|
|
587
|
+
var pointIndex;
|
|
572
588
|
var legend = this.maps.legendSettings;
|
|
573
589
|
var textEle = legend.mode === 'Default' ? document.getElementById(targetElement.id.replace('Shape', 'Text')) :
|
|
574
590
|
document.getElementById(targetElement.id + '_Text');
|
|
@@ -656,12 +672,20 @@ var Legend = /** @class */ (function () {
|
|
|
656
672
|
}
|
|
657
673
|
if (enable) {
|
|
658
674
|
for (var j = 0; j < data.length; j++) {
|
|
675
|
+
var shapeElement = void 0;
|
|
659
676
|
shapeIndex = data[j]['shapeIndex'];
|
|
660
677
|
layerIndex = data[j]['layerIndex'];
|
|
661
678
|
dataIndex = data[j]['dataIndex'];
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
679
|
+
pointIndex = data[j]['pointIndex'];
|
|
680
|
+
if (pointIndex === -1) {
|
|
681
|
+
shapeElement = document.getElementById(this.maps.element.id + '_LayerIndex_' +
|
|
682
|
+
layerIndex + '_shapeIndex_' + shapeIndex + '_dataIndex_' + dataIndex);
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
shapeElement = document.getElementById(this.maps.element.id + '_LayerIndex_' +
|
|
686
|
+
layerIndex + '_shapeIndex_' + shapeIndex + '_dataIndex_' + dataIndex + '_multiLine_' + pointIndex);
|
|
687
|
+
}
|
|
688
|
+
if (shapeElement !== null) {
|
|
665
689
|
var shapeMatch = true;
|
|
666
690
|
if (this.maps.legendSelectionCollection !== null) {
|
|
667
691
|
for (var i_1 = 0; i_1 < this.maps.legendSelectionCollection.length; i_1++) {
|
|
@@ -678,13 +702,13 @@ var Legend = /** @class */ (function () {
|
|
|
678
702
|
}
|
|
679
703
|
length = this.legendHighlightCollection.length;
|
|
680
704
|
var legendHighlightColor = this.legendHighlightCollection[length - 1]['legendOldFill'];
|
|
681
|
-
this.legendHighlightCollection[length - 1]['MapShapeCollection']['Elements'].push(
|
|
705
|
+
this.legendHighlightCollection[length - 1]['MapShapeCollection']['Elements'].push(shapeElement);
|
|
682
706
|
var shapeItemCount = this.legendHighlightCollection[length - 1]['MapShapeCollection']['Elements'].length - 1;
|
|
683
|
-
var shapeOldFillColor =
|
|
707
|
+
var shapeOldFillColor = shapeElement.getAttribute('fill');
|
|
684
708
|
this.legendHighlightCollection[length - 1]['shapeOldFillColor'].push(shapeOldFillColor);
|
|
685
709
|
var shapeOldColor = this.legendHighlightCollection[length - 1]['shapeOldFillColor'][shapeItemCount];
|
|
686
710
|
this.shapePreviousColor = this.legendHighlightCollection[length - 1]['shapeOldFillColor'];
|
|
687
|
-
this.setColor(
|
|
711
|
+
this.setColor(shapeElement, !isNullOrUndefined(module.fill) ? module.fill : shapeOldColor, module.opacity.toString(), module.border.color, module.border.width.toString(), 'highlight');
|
|
688
712
|
this.setColor(targetElement, !isNullOrUndefined(module.fill) ? module.fill : legendHighlightColor, module.opacity.toString(), module.border.color, module.border.width.toString(), 'highlight');
|
|
689
713
|
}
|
|
690
714
|
else if (value === 'selection') {
|
|
@@ -707,12 +731,12 @@ var Legend = /** @class */ (function () {
|
|
|
707
731
|
}
|
|
708
732
|
selectLength = this.maps.legendSelectionCollection.length;
|
|
709
733
|
var legendSelectionColor = this.maps.legendSelectionCollection[selectLength - 1]['legendOldFill'];
|
|
710
|
-
this.maps.legendSelectionCollection[selectLength - 1]['MapShapeCollection']['Elements'].push(
|
|
734
|
+
this.maps.legendSelectionCollection[selectLength - 1]['MapShapeCollection']['Elements'].push(shapeElement);
|
|
711
735
|
this.maps.legendSelectionCollection[selectLength - 1]['shapeOldFillColor'] = this.shapePreviousColor;
|
|
712
736
|
this.setColor(targetElement, !isNullOrUndefined(module.fill) ? module.fill : legendSelectionColor, module.opacity.toString(), module.border.color, module.border.width.toString(), 'selection');
|
|
713
|
-
this.setColor(
|
|
714
|
-
if (this.maps.selectedElementId.indexOf(
|
|
715
|
-
this.maps.selectedElementId.push(
|
|
737
|
+
this.setColor(shapeElement, !isNullOrUndefined(module.fill) ? module.fill : legendSelectionColor, module.opacity.toString(), module.border.color, module.border.width.toString(), 'selection');
|
|
738
|
+
if (this.maps.selectedElementId.indexOf(shapeElement.getAttribute('id')) === -1) {
|
|
739
|
+
this.maps.selectedElementId.push(shapeElement.getAttribute('id'));
|
|
716
740
|
}
|
|
717
741
|
if (j === data.length - 1) {
|
|
718
742
|
this.maps.legendSelection = false;
|
|
@@ -727,14 +751,15 @@ var Legend = /** @class */ (function () {
|
|
|
727
751
|
}
|
|
728
752
|
};
|
|
729
753
|
Legend.prototype.setColor = function (element, fill, opacity, borderColor, borderWidth, type) {
|
|
754
|
+
var isLineStringShape = (element.parentElement.id.indexOf('LineString') > -1);
|
|
730
755
|
if (type === 'selection') {
|
|
731
|
-
maintainStyleClass('ShapeselectionMap', 'ShapeselectionMapStyle', fill, opacity, borderColor, borderWidth, this.maps);
|
|
732
|
-
element.setAttribute('class', 'ShapeselectionMapStyle');
|
|
756
|
+
maintainStyleClass((isLineStringShape ? 'LineselectionMap' : 'ShapeselectionMap'), (isLineStringShape ? 'LineselectionMapStyle' : 'ShapeselectionMapStyle'), (isLineStringShape ? 'transparent' : fill), opacity, (isLineStringShape ? fill : borderColor), borderWidth, this.maps);
|
|
757
|
+
element.setAttribute('class', isLineStringShape ? 'LineselectionMapStyle' : 'ShapeselectionMapStyle');
|
|
733
758
|
}
|
|
734
759
|
else {
|
|
735
|
-
element.setAttribute('fill', fill);
|
|
760
|
+
element.setAttribute('fill', isLineStringShape ? 'transparent' : fill);
|
|
736
761
|
element.setAttribute('fill-opacity', opacity);
|
|
737
|
-
element.setAttribute('stroke', borderColor);
|
|
762
|
+
element.setAttribute('stroke', isLineStringShape ? fill : borderColor);
|
|
738
763
|
element.setAttribute('stroke-width', (Number(borderWidth) / this.maps.scale).toString());
|
|
739
764
|
}
|
|
740
765
|
};
|
|
@@ -777,7 +802,8 @@ var Legend = /** @class */ (function () {
|
|
|
777
802
|
var dataCount = shapeElements.length;
|
|
778
803
|
for (var j = 0; j < dataCount; j++) {
|
|
779
804
|
var shapeElement = getElement(shapeElements[j]);
|
|
780
|
-
if (shapeElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
805
|
+
if (shapeElement.getAttribute('class') === 'ShapeselectionMapStyle' ||
|
|
806
|
+
shapeElement.getAttribute('class') === 'LineselectionMapStyle') {
|
|
781
807
|
removeClass(shapeElement);
|
|
782
808
|
var selectedElementIdIndex = this.maps.selectedElementId.indexOf(shapeElement.id);
|
|
783
809
|
if (selectedElementIdIndex !== -1) {
|
|
@@ -855,12 +881,14 @@ var Legend = /** @class */ (function () {
|
|
|
855
881
|
this.maps.legendSelectionClass = module;
|
|
856
882
|
}
|
|
857
883
|
else {
|
|
858
|
-
if ((checkSelection <= 1) && targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
884
|
+
if ((checkSelection <= 1) && (targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
885
|
+
|| targetElement.getAttribute('class') === 'LineselectionMapStyle')) {
|
|
859
886
|
if (!this.maps.layers[layerIndex].selectionSettings.enableMultiSelect) {
|
|
860
887
|
this.maps.selectedLegendElementId.splice(selectionIndex, 1);
|
|
861
888
|
}
|
|
862
889
|
else {
|
|
863
|
-
if (checkSelection <= 1 && targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
890
|
+
if (checkSelection <= 1 && (targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
891
|
+
|| targetElement.getAttribute('class') === 'LineselectionMapStyle')) {
|
|
864
892
|
this.maps.selectedLegendElementId.splice(selectionIndex, 1);
|
|
865
893
|
}
|
|
866
894
|
}
|
|
@@ -947,7 +975,8 @@ var Legend = /** @class */ (function () {
|
|
|
947
975
|
}
|
|
948
976
|
}
|
|
949
977
|
}
|
|
950
|
-
if (selectionEle && (selectionEle['IsSelected'] && targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
978
|
+
if (selectionEle && (selectionEle['IsSelected'] && (targetElement.getAttribute('class') === 'ShapeselectionMapStyle'
|
|
979
|
+
|| targetElement.getAttribute('class') === 'LineselectionMapStyle'))) {
|
|
951
980
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
952
981
|
var element = this.maps.legendSelectionCollection[selectionEle['SelectionIndex']];
|
|
953
982
|
var multiSelection = 0;
|
|
@@ -1038,7 +1067,7 @@ var Legend = /** @class */ (function () {
|
|
|
1038
1067
|
}
|
|
1039
1068
|
for (var j = 0; j < this.maps.selectedLegendElementId.length; j++) {
|
|
1040
1069
|
var idIndex = this.maps.legendSettings.mode === 'Interactive' ?
|
|
1041
|
-
'
|
|
1070
|
+
this.maps.element.id + '_Legend_Index_' : this.maps.element.id + '_Legend_Shape_Index_';
|
|
1042
1071
|
var selectedElement = idIndex + this.maps.selectedLegendElementId[j];
|
|
1043
1072
|
var legendElement = document.getElementById(selectedElement);
|
|
1044
1073
|
if (!isNullOrUndefined(legendElement)) {
|
|
@@ -1090,6 +1119,7 @@ var Legend = /** @class */ (function () {
|
|
|
1090
1119
|
var shapeIndex;
|
|
1091
1120
|
var layerIndex;
|
|
1092
1121
|
var dataIndex;
|
|
1122
|
+
var pointIndex;
|
|
1093
1123
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1094
1124
|
var collection = this.maps.legendModule.legendCollection;
|
|
1095
1125
|
var legend = this.maps.legendSettings;
|
|
@@ -1102,15 +1132,23 @@ var Legend = /** @class */ (function () {
|
|
|
1102
1132
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1103
1133
|
var currentElement = { Elements: [] };
|
|
1104
1134
|
for (var j = 0; j < data.length; j++) {
|
|
1135
|
+
var shapeElement = void 0;
|
|
1105
1136
|
shapeIndex = data[j]['shapeIndex'];
|
|
1106
1137
|
layerIndex = data[j]['layerIndex'];
|
|
1107
1138
|
dataIndex = data[j]['dataIndex'];
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1139
|
+
pointIndex = data[j]['pointIndex'];
|
|
1140
|
+
if (pointIndex === -1) {
|
|
1141
|
+
shapeElement = document.getElementById(this.maps.element.id + '_LayerIndex_' +
|
|
1142
|
+
layerIndex + '_shapeIndex_' + shapeIndex + '_dataIndex_' + dataIndex);
|
|
1143
|
+
}
|
|
1144
|
+
else {
|
|
1145
|
+
shapeElement = document.getElementById(this.maps.element.id + '_LayerIndex_' +
|
|
1146
|
+
layerIndex + '_shapeIndex_' + shapeIndex + '_dataIndex_' + dataIndex + '_multiLine_' + pointIndex);
|
|
1147
|
+
}
|
|
1148
|
+
if (targetElement === shapeElement) {
|
|
1111
1149
|
process = true;
|
|
1112
1150
|
}
|
|
1113
|
-
elements.push(
|
|
1151
|
+
elements.push(shapeElement);
|
|
1114
1152
|
}
|
|
1115
1153
|
if (process) {
|
|
1116
1154
|
if (isNullOrUndefined(currentElement['LegendEle'])) {
|
|
@@ -1128,16 +1166,25 @@ var Legend = /** @class */ (function () {
|
|
|
1128
1166
|
var shapeIndex;
|
|
1129
1167
|
var layerIndex;
|
|
1130
1168
|
var dataIndex;
|
|
1169
|
+
var pointIndex;
|
|
1131
1170
|
var idIndex = parseFloat(targetElement.id.charAt(targetElement.id.length - 1));
|
|
1132
1171
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1133
1172
|
var data = this.maps.legendModule.legendCollection[idIndex]['data'];
|
|
1134
1173
|
var legendShapeElements = [];
|
|
1135
1174
|
for (var i = 0; i < data.length; i++) {
|
|
1175
|
+
var shapeElement = void 0;
|
|
1136
1176
|
shapeIndex = data[i]['shapeIndex'];
|
|
1137
1177
|
layerIndex = data[i]['layerIndex'];
|
|
1138
1178
|
dataIndex = data[i]['dataIndex'];
|
|
1139
|
-
|
|
1140
|
-
|
|
1179
|
+
pointIndex = data[i]['pointIndex'];
|
|
1180
|
+
if (pointIndex === -1) {
|
|
1181
|
+
shapeElement = document.getElementById(this.maps.element.id + '_LayerIndex_' +
|
|
1182
|
+
layerIndex + '_shapeIndex_' + shapeIndex + '_dataIndex_' + dataIndex);
|
|
1183
|
+
}
|
|
1184
|
+
else {
|
|
1185
|
+
shapeElement = document.getElementById(this.maps.element.id + '_LayerIndex_' +
|
|
1186
|
+
layerIndex + '_shapeIndex_' + shapeIndex + '_dataIndex_' + dataIndex + '_multiLine_' + pointIndex);
|
|
1187
|
+
}
|
|
1141
1188
|
if (!isNullOrUndefined(shapeElement)) {
|
|
1142
1189
|
legendShapeElements.push(shapeElement.id);
|
|
1143
1190
|
}
|
|
@@ -1205,9 +1252,11 @@ var Legend = /** @class */ (function () {
|
|
|
1205
1252
|
var renderOptions = new RectOption(map.element.id + '_Legend_Border', legend.background, legendBorder, 1, this.legendBorderRect, null, null, '', '');
|
|
1206
1253
|
this.legendGroup.appendChild(map.renderer.drawRectangle(renderOptions));
|
|
1207
1254
|
this.getLegendAlignment(map, this.legendBorderRect.width, this.legendBorderRect.height, legend);
|
|
1208
|
-
this.legendGroup.setAttribute('transform', 'translate( ' + (this.translate.x + (-
|
|
1255
|
+
this.legendGroup.setAttribute('transform', 'translate( ' + (this.translate.x + (-this.legendBorderRect.x)) + ' ' +
|
|
1209
1256
|
(this.translate.y + (-(this.legendBorderRect.y))) + ' )');
|
|
1210
|
-
|
|
1257
|
+
if (legend.position !== 'Float') {
|
|
1258
|
+
map.svgObject.appendChild(this.legendGroup);
|
|
1259
|
+
}
|
|
1211
1260
|
if (legendTitle) {
|
|
1212
1261
|
textStyle.color = (textStyle.color !== null) ? textStyle.color : this.maps.themeStyle.legendTitleFontColor;
|
|
1213
1262
|
textStyle.fontFamily = !isNullOrUndefined(textStyle.fontFamily) ? textStyle.fontFamily : this.maps.themeStyle.fontFamily;
|
|
@@ -1219,7 +1268,16 @@ var Legend = /** @class */ (function () {
|
|
|
1219
1268
|
this.currentPage = (e.target.id.indexOf('_Left_Page_') > -1) ? (this.currentPage - 1) :
|
|
1220
1269
|
(this.currentPage + 1);
|
|
1221
1270
|
this.legendGroup = this.maps.renderer.createGroup({ id: this.maps.element.id + '_Legend_Group' });
|
|
1271
|
+
this.maps.mapAreaRect = this.initialMapAreaRect;
|
|
1222
1272
|
this.drawLegendItem(this.currentPage);
|
|
1273
|
+
if (!isNullOrUndefined(this.maps.legendModule) && this.maps.legendSettings.position === 'Float') {
|
|
1274
|
+
if (this.maps.isTileMap) {
|
|
1275
|
+
this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.legendModule.legendGroup);
|
|
1276
|
+
}
|
|
1277
|
+
else {
|
|
1278
|
+
this.maps.svgObject.appendChild(this.maps.legendModule.legendGroup);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1223
1281
|
if (querySelector(this.maps.element.id + '_Legend_Border', this.maps.element.id)) {
|
|
1224
1282
|
querySelector(this.maps.element.id + '_Legend_Border', this.maps.element.id).style.pointerEvents = 'none';
|
|
1225
1283
|
}
|
|
@@ -1237,53 +1295,60 @@ var Legend = /** @class */ (function () {
|
|
|
1237
1295
|
var areaWidth = totalRect.width;
|
|
1238
1296
|
var totalWidth = map.availableSize.width;
|
|
1239
1297
|
var totalHeight = map.availableSize.height;
|
|
1298
|
+
var locationX = !isNullOrUndefined(legend.location.x) ? legend.location.x : 0;
|
|
1299
|
+
var locationY = !isNullOrUndefined(legend.location.y) ? legend.location.y : 0;
|
|
1240
1300
|
if (legend.position === 'Float') {
|
|
1241
|
-
this.translate =
|
|
1301
|
+
this.translate = map.isTileMap ? new Point(locationX, locationY + (spacing / 4)) : new Point(locationX + map.mapAreaRect.x, locationY + map.mapAreaRect.y);
|
|
1302
|
+
this.legendTotalRect = map.mapAreaRect;
|
|
1242
1303
|
}
|
|
1243
1304
|
else {
|
|
1244
1305
|
switch (legend.position) {
|
|
1245
1306
|
case 'Top':
|
|
1246
1307
|
case 'Bottom':
|
|
1247
|
-
totalRect.height = (areaHeight - height);
|
|
1308
|
+
totalRect.height = (legend.position === 'Top') ? (areaHeight - height) : (areaHeight - height - (spacing * 2));
|
|
1248
1309
|
x = (totalWidth / 2) - (width / 2);
|
|
1249
1310
|
y = (legend.position === 'Top') ? areaY : (areaY + totalRect.height);
|
|
1250
|
-
totalRect.y = (legend.position === 'Top') ? areaY + height + spacing : areaY;
|
|
1311
|
+
totalRect.y = (legend.position === 'Top') ? areaY + height + (map.isTileMap ? (spacing / 2) : spacing) : areaY - (spacing / 2);
|
|
1251
1312
|
break;
|
|
1252
1313
|
case 'Left':
|
|
1253
1314
|
case 'Right':
|
|
1254
|
-
totalRect.width = (areaWidth - width);
|
|
1255
|
-
x = (legend.position === 'Left') ? areaX : (areaX + totalRect.width
|
|
1315
|
+
totalRect.width = (areaWidth - width - map.mapAreaRect.x);
|
|
1316
|
+
x = (legend.position === 'Left') ? areaX + (spacing / 2) : (areaX + totalRect.width + spacing);
|
|
1256
1317
|
y = (totalHeight / 2) - (height / 2);
|
|
1257
|
-
totalRect.x = (legend.position === 'Left') ? areaX + width : areaX;
|
|
1318
|
+
totalRect.x = (legend.position === 'Left') ? areaX + width + spacing : areaX;
|
|
1258
1319
|
break;
|
|
1259
1320
|
}
|
|
1260
1321
|
switch (legend.alignment) {
|
|
1261
1322
|
case 'Near':
|
|
1262
1323
|
if (legend.position === 'Top' || legend.position === 'Bottom') {
|
|
1263
|
-
x = totalRect.x;
|
|
1324
|
+
x = totalRect.x - (legend.mode === 'Interactive' ? spacing : 0);
|
|
1264
1325
|
}
|
|
1265
1326
|
else {
|
|
1266
|
-
y = totalRect.y;
|
|
1327
|
+
y = totalRect.y - (!(legend.height && legend.width) && legend.mode === 'Interactive' ? map.mapAreaRect.x : 0);
|
|
1267
1328
|
}
|
|
1268
1329
|
break;
|
|
1269
1330
|
case 'Far':
|
|
1270
1331
|
if (legend.position === 'Top' || legend.position === 'Bottom') {
|
|
1271
|
-
x = (totalWidth - width) - spacing;
|
|
1332
|
+
x = (totalWidth - width) - (legend.mode === 'Interactive' ? 0 : spacing);
|
|
1272
1333
|
}
|
|
1273
1334
|
else {
|
|
1274
|
-
y = totalHeight - height;
|
|
1335
|
+
y = totalHeight - height - (legend.mode === 'Default' ? spacing : 0);
|
|
1275
1336
|
}
|
|
1276
1337
|
break;
|
|
1277
1338
|
}
|
|
1278
1339
|
if ((legend.height || legend.width) && legend.mode !== 'Interactive') {
|
|
1279
|
-
this.legendTotalRect = map.totalRect = totalRect;
|
|
1340
|
+
this.legendTotalRect = map.mapAreaRect = map.totalRect = totalRect;
|
|
1280
1341
|
}
|
|
1281
1342
|
else {
|
|
1343
|
+
map.totalRect = null;
|
|
1282
1344
|
if ((legend.height || legend.width) && legend.mode === 'Interactive') {
|
|
1283
1345
|
map.totalRect = totalRect;
|
|
1284
1346
|
}
|
|
1285
1347
|
this.legendTotalRect = map.mapAreaRect = totalRect;
|
|
1286
1348
|
}
|
|
1349
|
+
if (legend.position === 'Left') {
|
|
1350
|
+
map.mapAreaRect.width = totalRect.width;
|
|
1351
|
+
}
|
|
1287
1352
|
this.translate = new Point(x, y);
|
|
1288
1353
|
}
|
|
1289
1354
|
};
|
|
@@ -1414,6 +1479,13 @@ var Legend = /** @class */ (function () {
|
|
|
1414
1479
|
borderColor: legend.shapeBorder.color, borderWidth: legend.shapeBorder.width
|
|
1415
1480
|
});
|
|
1416
1481
|
}
|
|
1482
|
+
else {
|
|
1483
|
+
for (var i = 0; i < this.legendCollection.length; i++) {
|
|
1484
|
+
if (this.legendCollection[i]['text'] === legendText && this.legendCollection[i]['fill'] === legendFill) {
|
|
1485
|
+
this.legendCollection[i].data.push(newColllection[0]);
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1417
1489
|
}
|
|
1418
1490
|
};
|
|
1419
1491
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -1620,15 +1692,16 @@ var Legend = /** @class */ (function () {
|
|
|
1620
1692
|
var width = 10;
|
|
1621
1693
|
var direction = (legend.orientation === 'None') ? (legend.position === 'Top' || legend.position === 'Bottom')
|
|
1622
1694
|
? 'Horizontal' : 'Vertical' : legend.orientation;
|
|
1695
|
+
rect.y = legend.position === 'Float' && this.maps.isTileMap ? rect.y - this.maps.mapAreaRect.y : rect.y;
|
|
1623
1696
|
if (direction === 'Horizontal') {
|
|
1624
1697
|
if (!legend.invertedPointer) {
|
|
1625
|
-
locX = rect.x + (rect.width / 2);
|
|
1698
|
+
locX = rect.x + (rect.width / 2) - (legend.position === 'Float' && this.maps.isTileMap ? this.maps.mapAreaRect.x : 0);
|
|
1626
1699
|
locY = rect.y;
|
|
1627
1700
|
path = ' M ' + locX + ' ' + locY + ' L ' + (locX - width) + ' ' + (locY - height) +
|
|
1628
1701
|
' L ' + (locX + width) + ' ' + (locY - height) + ' Z ';
|
|
1629
1702
|
}
|
|
1630
1703
|
else {
|
|
1631
|
-
locX = rect.x + (rect.width / 2);
|
|
1704
|
+
locX = rect.x + (rect.width / 2) - (legend.position === 'Float' && this.maps.isTileMap ? this.maps.mapAreaRect.x : 0);
|
|
1632
1705
|
locY = rect.y + (rect.height);
|
|
1633
1706
|
path = ' M ' + locX + ' ' + locY + ' L ' + (locX - width) + ' ' + (locY + height) +
|
|
1634
1707
|
' L ' + (locX + width) + ' ' + (locY + height) + ' Z ';
|
|
@@ -1636,20 +1709,25 @@ var Legend = /** @class */ (function () {
|
|
|
1636
1709
|
}
|
|
1637
1710
|
else {
|
|
1638
1711
|
if (!legend.invertedPointer) {
|
|
1639
|
-
locX = rect.x +
|
|
1712
|
+
locX = rect.x + rect.width - (legend.position === 'Float' && this.maps.isTileMap ? this.maps.mapAreaRect.x : 0);
|
|
1640
1713
|
locY = rect.y + (rect.height / 2);
|
|
1641
1714
|
path = ' M ' + locX + ' ' + locY + ' L ' + (locX + width) + ' ' + (locY - height) +
|
|
1642
1715
|
' L ' + (locX + width) + ' ' + (locY + height) + ' z ';
|
|
1643
1716
|
}
|
|
1644
1717
|
else {
|
|
1645
|
-
locX = rect.x;
|
|
1718
|
+
locX = rect.x - (legend.position === 'Float' && this.maps.isTileMap ? this.maps.mapAreaRect.x : 0);
|
|
1646
1719
|
locY = rect.y + (rect.height / 2);
|
|
1647
1720
|
path = ' M ' + locX + ' ' + locY + ' L ' + (locX - width) + ' ' + (locY - height) +
|
|
1648
1721
|
' L ' + (locX - width) + ' ' + (locY + height) + ' z ';
|
|
1649
1722
|
}
|
|
1650
1723
|
}
|
|
1651
1724
|
var pathOptions = new PathOption(id, fill, strokeWidth, stroke, 1, 1, '', path);
|
|
1652
|
-
|
|
1725
|
+
if (legend.position === 'Float' && this.maps.isTileMap) {
|
|
1726
|
+
this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.renderer.drawPath(pathOptions));
|
|
1727
|
+
}
|
|
1728
|
+
else {
|
|
1729
|
+
this.maps.svgObject.appendChild(this.maps.renderer.drawPath(pathOptions));
|
|
1730
|
+
}
|
|
1653
1731
|
};
|
|
1654
1732
|
Legend.prototype.wireEvents = function (element) {
|
|
1655
1733
|
EventHandler.add(element, Browser.touchStartEvent, this.changeNextPage, this);
|
|
@@ -2011,10 +2089,20 @@ var Legend = /** @class */ (function () {
|
|
|
2011
2089
|
var shapeDataValueCase = !isNullOrUndefined(shapeData['properties'][shapePath])
|
|
2012
2090
|
&& isNaN(shapeData['properties'][shapePath]) ? shapeData['properties'][shapePath].toLowerCase() : shapeData['properties'][shapePath];
|
|
2013
2091
|
if (shapeDataValueCase === dataPathValueCase) {
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2092
|
+
if (shapeData['geometry']['type'] != 'MultiPoint') {
|
|
2093
|
+
legendData.push({
|
|
2094
|
+
layerIndex: layerIndex, shapeIndex: i, dataIndex: dataIndex,
|
|
2095
|
+
name: data[dataPath], value: value, pointIndex: -1
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
else {
|
|
2099
|
+
for (var j = 0; j < shapeData['geometry'].coordinates.length; j++) {
|
|
2100
|
+
legendData.push({
|
|
2101
|
+
layerIndex: layerIndex, shapeIndex: i, dataIndex: dataIndex,
|
|
2102
|
+
name: data[dataPath], value: value, pointIndex: j
|
|
2103
|
+
});
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2018
2106
|
}
|
|
2019
2107
|
}
|
|
2020
2108
|
}
|
|
@@ -91,11 +91,12 @@ var Marker = /** @class */ (function () {
|
|
|
91
91
|
if (currentLayer.markerClusterSettings.allowClustering) {
|
|
92
92
|
_this.maps.svgObject.appendChild(_this.markerSVGObject);
|
|
93
93
|
_this.maps.element.appendChild(_this.maps.svgObject);
|
|
94
|
-
if (currentLayer.layerType
|
|
95
|
-
|
|
94
|
+
if ((currentLayer.layerType === 'OSM' || (currentLayer.urlTemplate.indexOf('openstreetmap') !== -1 && isNullOrUndefined(currentLayer.shapeData)))
|
|
95
|
+
&& _this.maps.zoomSettings.enable) {
|
|
96
|
+
layerElement.appendChild(_this.markerSVGObject);
|
|
96
97
|
}
|
|
97
98
|
else {
|
|
98
|
-
|
|
99
|
+
clusterTemplate(currentLayer, _this.markerSVGObject, _this.maps, layerIndex, _this.markerSVGObject, layerElement, true, false);
|
|
99
100
|
}
|
|
100
101
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
101
102
|
_this.maps.renderReactTemplates();
|
package/src/maps/maps-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, Property, Ajax } from '@syncfusion/ej2-base';import { EventHandler, Browser, EmitType, isNullOrUndefined, createElement, setValue, extend } from '@syncfusion/ej2-base';import { Event, remove, L10n, Collection, Internationalization, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration } from '@syncfusion/ej2-base';import { SvgRenderer } from '@syncfusion/ej2-svg-base';import { Size, createSvg, Point, removeElement, triggerShapeEvent, showTooltip, checkShapeDataFields, MapLocation, getMousePosition, calculateSize } from './utils/helper';import { getElement, removeClass, getTranslate, triggerItemSelectionEvent, mergeSeparateCluster, customizeStyle, querySelector } from './utils/helper';import { createStyle } from './utils/helper';import { ZoomSettings, LegendSettings, Tile } from './model/base';import { LayerSettings, TitleSettings, Border, Margin, MapsAreaSettings, Annotation, CenterPosition } from './model/base';import { ZoomSettingsModel, LegendSettingsModel, LayerSettingsModel, BubbleSettingsModel } from './model/base-model';import { MarkerSettingsModel, SelectionSettingsModel , InitialMarkerSelectionSettingsModel} from './model/base-model';import { TitleSettingsModel, BorderModel, MarginModel, CenterPositionModel, InitialShapeSelectionSettingsModel } from './model/base-model';import { MapsAreaSettingsModel, AnnotationModel } from './model/base-model';import { Bubble } from './layers/bubble';import { Legend } from './layers/legend';import { Marker } from './layers/marker';import { Highlight } from './user-interaction/highlight';import { Selection } from './user-interaction/selection';import { MapsTooltip } from './user-interaction/tooltip';import { Zoom } from './user-interaction/zoom';import { load, click, rightClick, loaded, doubleClick, resize, shapeSelected, itemSelection, zoomIn } from './model/constants';import { ProjectionType, MapsTheme, PanDirection, TooltipGesture } from './utils/enum';import { getThemeStyle } from './model/theme';import { BingMap } from './layers/bing-map';import { ILoadEventArgs, ILoadedEventArgs, IMouseEventArgs, IResizeEventArgs, ITooltipRenderEventArgs } from './model/interface';import { GeoPosition, ITooltipRenderCompleteEventArgs, ILegendRenderingEventArgs } from './model/interface';import { ILayerRenderingEventArgs, IShapeRenderingEventArgs, IMarkerRenderingEventArgs, IMarkerClickEventArgs } from './model/interface';import { IMarkerMoveEventArgs, ILabelRenderingEventArgs, IBubbleMoveEventArgs, IBubbleClickEventArgs } from './model/interface';import { IMarkerClusterClickEventArgs, IMarkerClusterMoveEventArgs, IMarkerClusterRenderingEventArgs } from './model/interface';import { ISelectionEventArgs, IShapeSelectedEventArgs, IMapPanEventArgs, IMapZoomEventArgs } from './model/interface';import { IBubbleRenderingEventArgs, IAnimationCompleteEventArgs, IPrintEventArgs, IThemeStyle } from './model/interface';import { LayerPanel } from './layers/layer-panel';import { GeoLocation, Rect, RectOption, measureText, getElementByID, MapAjax, processResult, getElementsByClassName } from '../maps/utils/helper';import { findPosition, textTrim, TextOption, renderTextElement, convertGeoToPoint, calculateZoomLevel } from '../maps/utils/helper';import { Annotations } from '../maps/user-interaction/annotation';import { FontModel, DataLabel, MarkerSettings, IAnnotationRenderingEventArgs } from './index';import { NavigationLineSettingsModel, changeBorderWidth } from './index';import { NavigationLine } from './layers/navigation-selected-line';import { DataManager, Query } from '@syncfusion/ej2-data';import { ExportType } from '../maps/utils/enum';import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export';import { Print } from './model/print';import { PdfExport } from './model/export-pdf';import { ImageExport } from './model/export-image';
|
|
1
|
+
import { Component, NotifyPropertyChanges, INotifyPropertyChanged, Property, Ajax } from '@syncfusion/ej2-base';import { EventHandler, Browser, EmitType, isNullOrUndefined, createElement, setValue, extend } from '@syncfusion/ej2-base';import { Event, remove, L10n, Collection, Internationalization, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration } from '@syncfusion/ej2-base';import { SvgRenderer } from '@syncfusion/ej2-svg-base';import { Size, createSvg, Point, removeElement, triggerShapeEvent, showTooltip, checkShapeDataFields, MapLocation, getMousePosition, calculateSize } from './utils/helper';import { getElement, removeClass, getTranslate, triggerItemSelectionEvent, mergeSeparateCluster, customizeStyle, querySelector } from './utils/helper';import { createStyle } from './utils/helper';import { ZoomSettings, LegendSettings, Tile } from './model/base';import { LayerSettings, TitleSettings, Border, Margin, MapsAreaSettings, Annotation, CenterPosition } from './model/base';import { ZoomSettingsModel, LegendSettingsModel, LayerSettingsModel, BubbleSettingsModel } from './model/base-model';import { MarkerSettingsModel, SelectionSettingsModel , InitialMarkerSelectionSettingsModel} from './model/base-model';import { TitleSettingsModel, BorderModel, MarginModel, CenterPositionModel, InitialShapeSelectionSettingsModel } from './model/base-model';import { MapsAreaSettingsModel, AnnotationModel } from './model/base-model';import { Bubble } from './layers/bubble';import { Legend } from './layers/legend';import { Marker } from './layers/marker';import { Highlight } from './user-interaction/highlight';import { Selection } from './user-interaction/selection';import { MapsTooltip } from './user-interaction/tooltip';import { Zoom } from './user-interaction/zoom';import { load, click, onclick, rightClick, loaded, doubleClick, resize, shapeSelected, itemSelection, zoomIn } from './model/constants';import { ProjectionType, MapsTheme, PanDirection, TooltipGesture } from './utils/enum';import { getThemeStyle, Theme } from './model/theme';import { BingMap } from './layers/bing-map';import { ILoadEventArgs, ILoadedEventArgs, IMouseEventArgs, IResizeEventArgs, ITooltipRenderEventArgs } from './model/interface';import { GeoPosition, ITooltipRenderCompleteEventArgs, ILegendRenderingEventArgs } from './model/interface';import { ILayerRenderingEventArgs, IShapeRenderingEventArgs, IMarkerRenderingEventArgs, IMarkerClickEventArgs } from './model/interface';import { IMarkerMoveEventArgs, ILabelRenderingEventArgs, IBubbleMoveEventArgs, IBubbleClickEventArgs } from './model/interface';import { IMarkerClusterClickEventArgs, IMarkerClusterMoveEventArgs, IMarkerClusterRenderingEventArgs } from './model/interface';import { ISelectionEventArgs, IShapeSelectedEventArgs, IMapPanEventArgs, IMapZoomEventArgs } from './model/interface';import { IBubbleRenderingEventArgs, IAnimationCompleteEventArgs, IPrintEventArgs, IThemeStyle } from './model/interface';import { LayerPanel } from './layers/layer-panel';import { GeoLocation, Rect, RectOption, measureText, getElementByID, MapAjax, processResult, getElementsByClassName } from '../maps/utils/helper';import { findPosition, textTrim, TextOption, renderTextElement, convertGeoToPoint, calculateZoomLevel } from '../maps/utils/helper';import { Annotations } from '../maps/user-interaction/annotation';import { FontModel, DataLabel, MarkerSettings, IAnnotationRenderingEventArgs } from './index';import { NavigationLineSettingsModel, changeBorderWidth } from './index';import { NavigationLine } from './layers/navigation-selected-line';import { DataManager, Query } from '@syncfusion/ej2-data';import { ExportType } from '../maps/utils/enum';import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export';import { Print } from './model/print';import { PdfExport } from './model/export-pdf';import { ImageExport } from './model/export-image';
|
|
2
2
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -173,12 +173,20 @@ export interface MapsModel extends ComponentModel{
|
|
|
173
173
|
loaded?: EmitType<ILoadedEventArgs>;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* Triggers when
|
|
176
|
+
* Triggers when a user clicks on an element in Maps.
|
|
177
177
|
*
|
|
178
178
|
* @event click
|
|
179
|
+
|
|
179
180
|
*/
|
|
180
181
|
click?: EmitType<IMouseEventArgs>;
|
|
181
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Triggers when a user clicks on an element in Maps.
|
|
185
|
+
*
|
|
186
|
+
* @event onclick
|
|
187
|
+
*/
|
|
188
|
+
onclick?: EmitType<IMouseEventArgs>;
|
|
189
|
+
|
|
182
190
|
/**
|
|
183
191
|
* Triggers when performing the double click operation on an element in maps.
|
|
184
192
|
*
|
package/src/maps/maps.d.ts
CHANGED
|
@@ -248,11 +248,18 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
|
|
|
248
248
|
*/
|
|
249
249
|
loaded: EmitType<ILoadedEventArgs>;
|
|
250
250
|
/**
|
|
251
|
-
* Triggers when
|
|
251
|
+
* Triggers when a user clicks on an element in Maps.
|
|
252
252
|
*
|
|
253
253
|
* @event click
|
|
254
|
+
|
|
254
255
|
*/
|
|
255
256
|
click: EmitType<IMouseEventArgs>;
|
|
257
|
+
/**
|
|
258
|
+
* Triggers when a user clicks on an element in Maps.
|
|
259
|
+
*
|
|
260
|
+
* @event onclick
|
|
261
|
+
*/
|
|
262
|
+
onclick: EmitType<IMouseEventArgs>;
|
|
256
263
|
/**
|
|
257
264
|
* Triggers when performing the double click operation on an element in maps.
|
|
258
265
|
*
|
|
@@ -437,6 +444,12 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
|
|
|
437
444
|
* @private
|
|
438
445
|
*/
|
|
439
446
|
availableSize: Size;
|
|
447
|
+
/**
|
|
448
|
+
* whether it is layer add or not.
|
|
449
|
+
*
|
|
450
|
+
* @private
|
|
451
|
+
*/
|
|
452
|
+
isAddLayer: boolean;
|
|
440
453
|
/**
|
|
441
454
|
* Specifies the localization object.
|
|
442
455
|
*
|
|
@@ -818,6 +831,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
|
|
|
818
831
|
* @param {PointerEvent} e - Specifies the pointer event on maps.
|
|
819
832
|
*/
|
|
820
833
|
mapsOnClick(e: PointerEvent): void;
|
|
834
|
+
private clickHandler;
|
|
821
835
|
private triggerShapeSelection;
|
|
822
836
|
private getClickLocation;
|
|
823
837
|
/**
|
|
@@ -1024,6 +1038,13 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
|
|
|
1024
1038
|
* @returns {Promise<string>} - Returns the string value.
|
|
1025
1039
|
*/
|
|
1026
1040
|
export(type: ExportType, fileName: string, orientation?: PdfPageOrientation, allowDownload?: boolean): Promise<string>;
|
|
1041
|
+
/**
|
|
1042
|
+
* This method is used to get the Bing maps URL.
|
|
1043
|
+
*
|
|
1044
|
+
* @param {string} url - Specifies the URL of the maps.
|
|
1045
|
+
* @returns {Promise<string>} - Returns the processed Bing URL as Promise.
|
|
1046
|
+
*/
|
|
1047
|
+
getBingUrlTemplate(url: string): Promise<string>;
|
|
1027
1048
|
/**
|
|
1028
1049
|
* To find visibility of layers and markers for required modules load.
|
|
1029
1050
|
*
|