@syncfusion/ej2-maps 19.4.55 → 19.4.56-105067
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/.eslintrc.json +18 -3
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +72 -72
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +49 -49
- package/CHANGELOG.md +441 -430
- package/README.md +73 -73
- package/dist/ej2-maps.umd.min.js +1 -10
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +1205 -644
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +1243 -683
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +1 -10
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/maps/layers/bing-map.ts +50 -0
- package/dist/ts/maps/layers/bubble.ts +290 -0
- package/dist/ts/maps/layers/color-mapping.ts +226 -0
- package/dist/ts/maps/layers/data-label.ts +418 -0
- package/dist/ts/maps/layers/layer-panel.ts +1480 -0
- package/dist/ts/maps/layers/legend.ts +2236 -0
- package/dist/ts/maps/layers/marker.ts +453 -0
- package/dist/ts/maps/layers/navigation-selected-line.ts +167 -0
- package/dist/ts/maps/maps.ts +2886 -0
- package/dist/ts/maps/model/base.ts +1843 -0
- package/dist/ts/maps/model/constants.ts +200 -0
- package/dist/ts/maps/model/export-image.ts +178 -0
- package/dist/ts/maps/model/export-pdf.ts +170 -0
- package/dist/ts/maps/model/interface.ts +823 -0
- package/dist/ts/maps/model/print.ts +104 -0
- package/dist/ts/maps/model/theme.ts +554 -0
- package/dist/ts/maps/user-interaction/annotation.ts +127 -0
- package/dist/ts/maps/user-interaction/highlight.ts +233 -0
- package/dist/ts/maps/user-interaction/selection.ts +321 -0
- package/dist/ts/maps/user-interaction/tooltip.ts +387 -0
- package/dist/ts/maps/user-interaction/zoom.ts +1767 -0
- package/dist/ts/maps/utils/enum.ts +368 -0
- package/dist/ts/maps/utils/helper.ts +3421 -0
- package/helper/e2e/index.js +3 -3
- package/helper/e2e/maps-helper.js +13 -13
- package/license +9 -9
- package/package.json +85 -85
- package/src/maps/layers/bing-map.d.ts +4 -0
- package/src/maps/layers/bing-map.js +16 -3
- package/src/maps/layers/bubble.d.ts +1 -2
- package/src/maps/layers/bubble.js +7 -12
- package/src/maps/layers/data-label.d.ts +1 -4
- package/src/maps/layers/data-label.js +32 -35
- package/src/maps/layers/layer-panel.d.ts +18 -1
- package/src/maps/layers/layer-panel.js +226 -72
- package/src/maps/layers/legend.d.ts +5 -2
- package/src/maps/layers/legend.js +170 -61
- package/src/maps/layers/marker.d.ts +2 -4
- package/src/maps/layers/marker.js +49 -48
- package/src/maps/layers/navigation-selected-line.d.ts +1 -2
- package/src/maps/layers/navigation-selected-line.js +7 -13
- package/src/maps/maps-model.d.ts +259 -251
- package/src/maps/maps.d.ts +24 -3
- package/src/maps/maps.js +164 -97
- package/src/maps/model/base-model.d.ts +1025 -1021
- package/src/maps/model/base.d.ts +5 -1
- package/src/maps/model/base.js +24 -24
- package/src/maps/model/constants.d.ts +6 -0
- package/src/maps/model/constants.js +6 -0
- package/src/maps/model/export-image.d.ts +2 -4
- package/src/maps/model/export-image.js +34 -33
- package/src/maps/model/export-pdf.d.ts +4 -6
- package/src/maps/model/export-pdf.js +31 -32
- package/src/maps/model/interface.d.ts +34 -26
- package/src/maps/model/print.d.ts +2 -5
- package/src/maps/model/print.js +32 -18
- package/src/maps/model/theme.js +7 -4
- package/src/maps/user-interaction/annotation.d.ts +1 -2
- package/src/maps/user-interaction/annotation.js +3 -4
- package/src/maps/user-interaction/highlight.d.ts +1 -2
- package/src/maps/user-interaction/highlight.js +11 -10
- package/src/maps/user-interaction/selection.d.ts +1 -2
- package/src/maps/user-interaction/selection.js +42 -19
- package/src/maps/user-interaction/tooltip.d.ts +3 -5
- package/src/maps/user-interaction/tooltip.js +27 -14
- package/src/maps/user-interaction/zoom.d.ts +3 -8
- package/src/maps/user-interaction/zoom.js +282 -162
- package/src/maps/utils/enum.d.ts +5 -1
- package/src/maps/utils/helper.d.ts +9 -1
- package/src/maps/utils/helper.js +82 -33
|
@@ -31,7 +31,7 @@ export interface IPrintEventArgs extends IMapsEventArgs {
|
|
|
31
31
|
export interface ILoadedEventArgs extends IMapsEventArgs {
|
|
32
32
|
/** Defines the current maps instance.
|
|
33
33
|
*
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
maps?: Maps;
|
|
37
37
|
/** Defines the isResized argument.
|
|
@@ -44,7 +44,7 @@ export interface ILoadedEventArgs extends IMapsEventArgs {
|
|
|
44
44
|
export interface ILoadEventArgs extends IMapsEventArgs {
|
|
45
45
|
/** Defines the current maps instance.
|
|
46
46
|
*
|
|
47
|
-
|
|
47
|
+
* @deprecated
|
|
48
48
|
*/
|
|
49
49
|
maps?: Maps;
|
|
50
50
|
}
|
|
@@ -54,7 +54,7 @@ export interface ILoadEventArgs extends IMapsEventArgs {
|
|
|
54
54
|
export interface IDataLabelArgs extends IMapsEventArgs {
|
|
55
55
|
/** Defines the current maps instance.
|
|
56
56
|
*
|
|
57
|
-
|
|
57
|
+
* @deprecated
|
|
58
58
|
*/
|
|
59
59
|
maps: Maps;
|
|
60
60
|
/**
|
|
@@ -94,7 +94,7 @@ export interface GeoPosition {
|
|
|
94
94
|
export interface ITooltipRenderCompleteEventArgs extends IMapsEventArgs {
|
|
95
95
|
/** Defines the current map instance.
|
|
96
96
|
*
|
|
97
|
-
|
|
97
|
+
* @deprecated
|
|
98
98
|
*/
|
|
99
99
|
maps?: Maps;
|
|
100
100
|
/**
|
|
@@ -116,7 +116,7 @@ export interface IResizeEventArgs extends IMapsEventArgs {
|
|
|
116
116
|
currentSize: Size;
|
|
117
117
|
/** Defines the current maps instance.
|
|
118
118
|
*
|
|
119
|
-
|
|
119
|
+
* @deprecated
|
|
120
120
|
*/
|
|
121
121
|
maps: Maps;
|
|
122
122
|
}
|
|
@@ -142,7 +142,7 @@ export interface MapsTooltipOption {
|
|
|
142
142
|
export interface ITooltipRenderEventArgs extends IMapsEventArgs {
|
|
143
143
|
/** Defines the current maps instance.
|
|
144
144
|
*
|
|
145
|
-
|
|
145
|
+
* @deprecated
|
|
146
146
|
*/
|
|
147
147
|
maps?: Maps;
|
|
148
148
|
/**
|
|
@@ -184,7 +184,7 @@ export interface ITooltipRenderEventArgs extends IMapsEventArgs {
|
|
|
184
184
|
export interface ISelectionEventArgs extends IMapsEventArgs {
|
|
185
185
|
/** Defines the current maps instance.
|
|
186
186
|
*
|
|
187
|
-
|
|
187
|
+
* @deprecated
|
|
188
188
|
*/
|
|
189
189
|
maps?: Maps;
|
|
190
190
|
/**
|
|
@@ -218,7 +218,7 @@ export interface ISelectionEventArgs extends IMapsEventArgs {
|
|
|
218
218
|
export interface IShapeSelectedEventArgs extends IMapsEventArgs {
|
|
219
219
|
/** Defines the current maps instance.
|
|
220
220
|
*
|
|
221
|
-
|
|
221
|
+
* @deprecated
|
|
222
222
|
*/
|
|
223
223
|
maps?: Maps;
|
|
224
224
|
/**
|
|
@@ -270,13 +270,13 @@ export interface ILayerRenderingEventArgs extends IMapsEventArgs {
|
|
|
270
270
|
/**
|
|
271
271
|
* Defines the maps instance in event argument.
|
|
272
272
|
*
|
|
273
|
-
|
|
273
|
+
* @deprecated
|
|
274
274
|
*/
|
|
275
275
|
maps?: Maps;
|
|
276
276
|
/**
|
|
277
277
|
* Defines the options to customize the layers in event argument.
|
|
278
278
|
*
|
|
279
|
-
|
|
279
|
+
* @deprecated
|
|
280
280
|
*/
|
|
281
281
|
layer?: LayerSettingsModel;
|
|
282
282
|
/**
|
|
@@ -295,7 +295,7 @@ export interface IShapeRenderingEventArgs extends IMapsEventArgs {
|
|
|
295
295
|
/**
|
|
296
296
|
* Defines the maps instance in event argument.
|
|
297
297
|
*
|
|
298
|
-
|
|
298
|
+
* @deprecated
|
|
299
299
|
*/
|
|
300
300
|
maps?: Maps;
|
|
301
301
|
/**
|
|
@@ -322,7 +322,7 @@ export interface IMarkerRenderingEventArgs extends IMapsEventArgs {
|
|
|
322
322
|
/**
|
|
323
323
|
* Defines the maps instance in event argument.
|
|
324
324
|
*
|
|
325
|
-
|
|
325
|
+
* @deprecated
|
|
326
326
|
*/
|
|
327
327
|
maps?: Maps;
|
|
328
328
|
/**
|
|
@@ -381,7 +381,7 @@ export interface IMarkerClusterRenderingEventArgs extends IMapsEventArgs {
|
|
|
381
381
|
/**
|
|
382
382
|
* Defines the maps instance event argument.
|
|
383
383
|
*
|
|
384
|
-
|
|
384
|
+
* @deprecated
|
|
385
385
|
*/
|
|
386
386
|
maps?: Maps;
|
|
387
387
|
/**
|
|
@@ -424,7 +424,7 @@ export interface IMarkerClickEventArgs extends IMouseEventArgs {
|
|
|
424
424
|
/**
|
|
425
425
|
* Defines the maps instance event argument.
|
|
426
426
|
*
|
|
427
|
-
|
|
427
|
+
* @deprecated
|
|
428
428
|
*/
|
|
429
429
|
maps?: Maps;
|
|
430
430
|
/**
|
|
@@ -447,7 +447,7 @@ export interface IMarkerMoveEventArgs extends IMouseEventArgs {
|
|
|
447
447
|
/**
|
|
448
448
|
* Defines the maps instance event argument.
|
|
449
449
|
*
|
|
450
|
-
|
|
450
|
+
* @deprecated
|
|
451
451
|
*/
|
|
452
452
|
maps?: Maps;
|
|
453
453
|
/**
|
|
@@ -466,7 +466,7 @@ export interface IMarkerClusterClickEventArgs extends IMouseEventArgs {
|
|
|
466
466
|
/**
|
|
467
467
|
* Defines the maps instance event argument.
|
|
468
468
|
*
|
|
469
|
-
|
|
469
|
+
* @deprecated
|
|
470
470
|
*/
|
|
471
471
|
maps?: Maps;
|
|
472
472
|
/**
|
|
@@ -481,7 +481,7 @@ export interface IMarkerClusterMoveEventArgs extends IMouseEventArgs {
|
|
|
481
481
|
/**
|
|
482
482
|
* Defines the maps instance event argument.
|
|
483
483
|
*
|
|
484
|
-
|
|
484
|
+
* @deprecated
|
|
485
485
|
*/
|
|
486
486
|
maps?: Maps;
|
|
487
487
|
/**
|
|
@@ -496,13 +496,21 @@ export interface ILabelRenderingEventArgs extends IMapsEventArgs {
|
|
|
496
496
|
/**
|
|
497
497
|
* Defines the maps instance event argument.
|
|
498
498
|
*
|
|
499
|
-
|
|
499
|
+
* @deprecated
|
|
500
500
|
*/
|
|
501
501
|
maps?: Maps;
|
|
502
502
|
/**
|
|
503
503
|
* Defines the text for the data-label in event argument.
|
|
504
504
|
*/
|
|
505
505
|
text: string;
|
|
506
|
+
/**
|
|
507
|
+
* Defines the right and left position of text for the data-label in event argument.
|
|
508
|
+
*/
|
|
509
|
+
offsetX: number;
|
|
510
|
+
/**
|
|
511
|
+
* Defines the top and bottom position of text for the data-label in event argument.
|
|
512
|
+
*/
|
|
513
|
+
offsetY: number;
|
|
506
514
|
/**
|
|
507
515
|
* Defines the color and width of the border for the data-label in event argument.
|
|
508
516
|
*/
|
|
@@ -527,7 +535,7 @@ export interface IBubbleRenderingEventArgs extends IMapsEventArgs {
|
|
|
527
535
|
/**
|
|
528
536
|
* Defines the maps instance event argument.
|
|
529
537
|
*
|
|
530
|
-
|
|
538
|
+
* @deprecated
|
|
531
539
|
*/
|
|
532
540
|
maps?: Maps;
|
|
533
541
|
/**
|
|
@@ -562,7 +570,7 @@ export interface IBubbleClickEventArgs extends IMouseEventArgs {
|
|
|
562
570
|
/**
|
|
563
571
|
* Defines the maps instance in event argument.
|
|
564
572
|
*
|
|
565
|
-
|
|
573
|
+
* @deprecated
|
|
566
574
|
*/
|
|
567
575
|
maps?: Maps;
|
|
568
576
|
/**
|
|
@@ -577,7 +585,7 @@ export interface IBubbleMoveEventArgs extends IMouseEventArgs {
|
|
|
577
585
|
/**
|
|
578
586
|
* Defines the maps instance event argument.
|
|
579
587
|
*
|
|
580
|
-
|
|
588
|
+
* @deprecated
|
|
581
589
|
*/
|
|
582
590
|
maps?: Maps;
|
|
583
591
|
/**
|
|
@@ -592,7 +600,7 @@ export interface IAnimationCompleteEventArgs extends IMapsEventArgs {
|
|
|
592
600
|
/**
|
|
593
601
|
* Defines the maps instance event argument.
|
|
594
602
|
*
|
|
595
|
-
|
|
603
|
+
* @deprecated
|
|
596
604
|
*/
|
|
597
605
|
maps?: Maps;
|
|
598
606
|
/**
|
|
@@ -607,7 +615,7 @@ export interface ILegendRenderingEventArgs extends IMapsEventArgs {
|
|
|
607
615
|
/**
|
|
608
616
|
* Defines the maps instance event argument.
|
|
609
617
|
*
|
|
610
|
-
|
|
618
|
+
* @deprecated
|
|
611
619
|
*/
|
|
612
620
|
maps?: Maps;
|
|
613
621
|
/**
|
|
@@ -634,7 +642,7 @@ export interface IAnnotationRenderingEventArgs extends IMapsEventArgs {
|
|
|
634
642
|
/**
|
|
635
643
|
* Defines the maps instance in event argument.
|
|
636
644
|
*
|
|
637
|
-
|
|
645
|
+
* @deprecated
|
|
638
646
|
*/
|
|
639
647
|
maps?: Maps;
|
|
640
648
|
/**
|
|
@@ -653,7 +661,7 @@ export interface IMapPanEventArgs extends IMapsEventArgs {
|
|
|
653
661
|
/**
|
|
654
662
|
* Defines the maps instance in event argument.
|
|
655
663
|
*
|
|
656
|
-
|
|
664
|
+
* @deprecated
|
|
657
665
|
*/
|
|
658
666
|
maps?: Maps;
|
|
659
667
|
/**
|
|
@@ -688,7 +696,7 @@ export interface IMapZoomEventArgs extends IMapsEventArgs {
|
|
|
688
696
|
/**
|
|
689
697
|
* Defines the maps instance event argument.
|
|
690
698
|
*
|
|
691
|
-
|
|
699
|
+
* @deprecated
|
|
692
700
|
*/
|
|
693
701
|
maps?: Maps;
|
|
694
702
|
/**
|
|
@@ -5,8 +5,6 @@ import { Maps } from '../../index';
|
|
|
5
5
|
* @hidden
|
|
6
6
|
*/
|
|
7
7
|
export declare class Print {
|
|
8
|
-
private control;
|
|
9
|
-
private printWindow;
|
|
10
8
|
/**
|
|
11
9
|
* Constructor for Maps
|
|
12
10
|
*
|
|
@@ -20,7 +18,7 @@ export declare class Print {
|
|
|
20
18
|
* @returns {void}
|
|
21
19
|
* @private
|
|
22
20
|
*/
|
|
23
|
-
print(elements?: string[] | string | Element): void;
|
|
21
|
+
print(maps: Maps, elements?: string[] | string | Element): void;
|
|
24
22
|
/**
|
|
25
23
|
* To get the html string of the Maps
|
|
26
24
|
*
|
|
@@ -38,9 +36,8 @@ export declare class Print {
|
|
|
38
36
|
/**
|
|
39
37
|
* To destroy the print.
|
|
40
38
|
*
|
|
41
|
-
* @param {Maps} maps - Specifies the instance of the maps
|
|
42
39
|
* @returns {void}
|
|
43
40
|
* @private
|
|
44
41
|
*/
|
|
45
|
-
destroy(
|
|
42
|
+
destroy(): void;
|
|
46
43
|
}
|
package/src/maps/model/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import { print as
|
|
2
|
+
import { print as printFunction, createElement } from '@syncfusion/ej2-base';
|
|
3
3
|
import { getElement } from '../utils/helper';
|
|
4
4
|
import { beforePrint } from '../model/constants';
|
|
5
5
|
/**
|
|
@@ -14,7 +14,6 @@ var Print = /** @class */ (function () {
|
|
|
14
14
|
* @param {Maps} control - Specifies the instance of the map
|
|
15
15
|
*/
|
|
16
16
|
function Print(control) {
|
|
17
|
-
this.control = control;
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
19
|
* To print the Maps
|
|
@@ -23,17 +22,16 @@ var Print = /** @class */ (function () {
|
|
|
23
22
|
* @returns {void}
|
|
24
23
|
* @private
|
|
25
24
|
*/
|
|
26
|
-
Print.prototype.print = function (elements) {
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
this.printWindow.resizeTo(screen.availWidth, screen.availHeight);
|
|
25
|
+
Print.prototype.print = function (maps, elements) {
|
|
26
|
+
var printWindow = window.open('', 'print', 'height=' + window.outerHeight + ',width=' + window.outerWidth + ',tabbar=no');
|
|
27
|
+
printWindow.moveTo(0, 0);
|
|
28
|
+
printWindow.resizeTo(screen.availWidth, screen.availHeight);
|
|
31
29
|
var argsData = {
|
|
32
|
-
cancel: false, htmlContent: this.getHTMLContent(elements), name: beforePrint
|
|
30
|
+
cancel: false, htmlContent: this.getHTMLContent(maps, elements), name: beforePrint
|
|
33
31
|
};
|
|
34
|
-
|
|
32
|
+
maps.trigger('beforePrint', argsData, function (beforePrintArgs) {
|
|
35
33
|
if (!argsData.cancel) {
|
|
36
|
-
|
|
34
|
+
printFunction(argsData.htmlContent, printWindow);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
37
|
};
|
|
@@ -44,8 +42,29 @@ var Print = /** @class */ (function () {
|
|
|
44
42
|
* @returns {Element} - Returns the div element
|
|
45
43
|
* @private
|
|
46
44
|
*/
|
|
47
|
-
Print.prototype.getHTMLContent = function (elements) {
|
|
45
|
+
Print.prototype.getHTMLContent = function (maps, elements) {
|
|
48
46
|
var div = createElement('div');
|
|
47
|
+
var divElement = maps.element.cloneNode(true);
|
|
48
|
+
if (maps.isTileMap) {
|
|
49
|
+
for (var i = 0; i < divElement.childElementCount; i++) {
|
|
50
|
+
if (divElement.children[i].id === maps.element.id + '_tile_parent') {
|
|
51
|
+
divElement.children[i].style.removeProperty('height');
|
|
52
|
+
divElement.children[i].style.removeProperty('width');
|
|
53
|
+
divElement.children[i].style.removeProperty('top');
|
|
54
|
+
divElement.children[i].style.removeProperty('left');
|
|
55
|
+
divElement.children[i].style.removeProperty('right');
|
|
56
|
+
divElement.children[i].style.removeProperty('overflow');
|
|
57
|
+
var svgElement = document.getElementById(maps.element.id + '_Tile_SVG_Parent');
|
|
58
|
+
divElement.children[i].children[0].style.overflow = 'hidden';
|
|
59
|
+
divElement.children[i].children[0].style.position = 'absolute';
|
|
60
|
+
divElement.children[i].children[0].style.height = svgElement.style.height;
|
|
61
|
+
divElement.children[i].children[0].style.width = svgElement.style.width;
|
|
62
|
+
divElement.children[i].children[0].style.left = svgElement.style.left;
|
|
63
|
+
divElement.children[i].children[0].style.top = svgElement.style.top;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
49
68
|
if (elements) {
|
|
50
69
|
if (elements instanceof Array) {
|
|
51
70
|
Array.prototype.forEach.call(elements, function (value) {
|
|
@@ -60,7 +79,7 @@ var Print = /** @class */ (function () {
|
|
|
60
79
|
}
|
|
61
80
|
}
|
|
62
81
|
else {
|
|
63
|
-
div.appendChild(
|
|
82
|
+
div.appendChild(divElement);
|
|
64
83
|
}
|
|
65
84
|
return div;
|
|
66
85
|
};
|
|
@@ -75,15 +94,10 @@ var Print = /** @class */ (function () {
|
|
|
75
94
|
/**
|
|
76
95
|
* To destroy the print.
|
|
77
96
|
*
|
|
78
|
-
* @param {Maps} maps - Specifies the instance of the maps
|
|
79
97
|
* @returns {void}
|
|
80
98
|
* @private
|
|
81
99
|
*/
|
|
82
|
-
Print.prototype.destroy = function (
|
|
83
|
-
/**
|
|
84
|
-
* Destroy method performed here
|
|
85
|
-
*/
|
|
86
|
-
};
|
|
100
|
+
Print.prototype.destroy = function () { };
|
|
87
101
|
return Print;
|
|
88
102
|
}());
|
|
89
103
|
export { Print };
|
package/src/maps/model/theme.js
CHANGED
|
@@ -183,11 +183,11 @@ export function getShapeColor(theme) {
|
|
|
183
183
|
themePalette = ['#5ECB9B', '#A860F1', '#EBA844', '#557EF7', '#E9599B',
|
|
184
184
|
'#BFC529', '#3BC6CF', '#7A68EC', '#74B706', '#EA6266'];
|
|
185
185
|
break;
|
|
186
|
-
case '
|
|
186
|
+
case 'fluent':
|
|
187
187
|
themePalette = ['#614570', '#4C6FB1', '#CC6952', '#3F579A', '#4EA09B',
|
|
188
188
|
'#6E7A89', '#D4515C', '#E6AF5D', '#639751', '#9D4D69'];
|
|
189
189
|
break;
|
|
190
|
-
case '
|
|
190
|
+
case 'fluentdark':
|
|
191
191
|
themePalette = ['#8AB113', '#2A72D5', '#43B786', '#584EC6', '#E85F9C',
|
|
192
192
|
'#6E7A89', '#EA6266', '#EBA844', '#26BC7A', '#BC4870'];
|
|
193
193
|
break;
|
|
@@ -328,6 +328,7 @@ export function getThemeStyle(theme) {
|
|
|
328
328
|
backgroundColor: color,
|
|
329
329
|
areaBackgroundColor: color,
|
|
330
330
|
titleFontColor: '#FFFFFF',
|
|
331
|
+
titleFontSize: '14px',
|
|
331
332
|
subTitleFontColor: '#FFFFFF',
|
|
332
333
|
legendTitleFontColor: '#DADADA',
|
|
333
334
|
legendTextColor: '#DADADA',
|
|
@@ -347,6 +348,7 @@ export function getThemeStyle(theme) {
|
|
|
347
348
|
backgroundColor: '#000000',
|
|
348
349
|
areaBackgroundColor: '#000000',
|
|
349
350
|
titleFontColor: '#FFFFFF',
|
|
351
|
+
titleFontSize: '14px',
|
|
350
352
|
subTitleFontColor: '#FFFFFF',
|
|
351
353
|
legendTitleFontColor: '#FFFFFF',
|
|
352
354
|
legendTextColor: '#FFFFFF',
|
|
@@ -476,7 +478,7 @@ export function getThemeStyle(theme) {
|
|
|
476
478
|
shapeFill: '#495057'
|
|
477
479
|
};
|
|
478
480
|
break;
|
|
479
|
-
case '
|
|
481
|
+
case 'fluent':
|
|
480
482
|
style = {
|
|
481
483
|
backgroundColor: 'rgba(255,255,255, 0.0)',
|
|
482
484
|
areaBackgroundColor: 'rgba(255,255,255, 0.0)',
|
|
@@ -499,7 +501,7 @@ export function getThemeStyle(theme) {
|
|
|
499
501
|
shapeFill: '#F3F2F1'
|
|
500
502
|
};
|
|
501
503
|
break;
|
|
502
|
-
case '
|
|
504
|
+
case 'fluentdark':
|
|
503
505
|
style = {
|
|
504
506
|
backgroundColor: 'rgba(255,255,255, 0.0)',
|
|
505
507
|
areaBackgroundColor: 'rgba(255,255,255, 0.0)',
|
|
@@ -527,6 +529,7 @@ export function getThemeStyle(theme) {
|
|
|
527
529
|
backgroundColor: '#FFFFFF',
|
|
528
530
|
areaBackgroundColor: '#FFFFFF',
|
|
529
531
|
titleFontColor: '#424242',
|
|
532
|
+
titleFontSize: '14px',
|
|
530
533
|
subTitleFontColor: '#424242',
|
|
531
534
|
legendTitleFontColor: '#757575',
|
|
532
535
|
legendTextColor: '#757575',
|
|
@@ -53,7 +53,7 @@ var Annotations = /** @class */ (function () {
|
|
|
53
53
|
if (argsData.cancel) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
templateFn = getTemplateFunction(argsData.content);
|
|
56
|
+
templateFn = getTemplateFunction(argsData.content, _this.map);
|
|
57
57
|
if (templateFn && templateFn(_this.map, _this.map, argsData.content, _this.map.element.id + '_ContentTemplate_' + annotationIndex).length) {
|
|
58
58
|
templateElement = Array.prototype.slice.call(templateFn(_this.map, _this.map, argsData.content, _this.map.element.id + '_ContentTemplate_' + annotationIndex));
|
|
59
59
|
var length_1 = templateElement.length;
|
|
@@ -113,12 +113,11 @@ var Annotations = /** @class */ (function () {
|
|
|
113
113
|
/**
|
|
114
114
|
* To destroy the annotation.
|
|
115
115
|
*
|
|
116
|
-
* @param {Maps} map - Specifies the instance of the maps
|
|
117
116
|
* @returns {void}
|
|
118
117
|
* @private
|
|
119
118
|
*/
|
|
120
|
-
Annotations.prototype.destroy = function (
|
|
121
|
-
|
|
119
|
+
Annotations.prototype.destroy = function () {
|
|
120
|
+
this.map = null;
|
|
122
121
|
};
|
|
123
122
|
return Annotations;
|
|
124
123
|
}());
|
|
@@ -54,7 +54,8 @@ var Highlight = /** @class */ (function () {
|
|
|
54
54
|
targetEle.getAttribute('class') !== 'ShapeselectionMapStyle' && !isTouch &&
|
|
55
55
|
targetEle.getAttribute('class') !== 'MarkerselectionMapStyle' &&
|
|
56
56
|
targetEle.getAttribute('class') !== 'BubbleselectionMapStyle' &&
|
|
57
|
-
targetEle.getAttribute('class') !== 'navigationlineselectionMapStyle'
|
|
57
|
+
targetEle.getAttribute('class') !== 'navigationlineselectionMapStyle' &&
|
|
58
|
+
targetEle.getAttribute('class') !== 'LineselectionMapStyle') {
|
|
58
59
|
layerIndex = parseInt(targetEle.id.split('_LayerIndex_')[1].split('_')[0], 10);
|
|
59
60
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
60
61
|
var shapeData = void 0;
|
|
@@ -64,8 +65,9 @@ var Highlight = /** @class */ (function () {
|
|
|
64
65
|
var dataIndex = void 0;
|
|
65
66
|
if (targetEle.id.indexOf('shapeIndex') > -1) {
|
|
66
67
|
shapeIn = parseInt(targetEle.id.split('_shapeIndex_')[1].split('_')[0], 10);
|
|
67
|
-
shapeData = this.maps.layers[layerIndex].shapeData['features']
|
|
68
|
-
this.maps.
|
|
68
|
+
shapeData = this.maps.layers[layerIndex].shapeData['features'] &&
|
|
69
|
+
!isNullOrUndefined(this.maps.layersCollection[layerIndex].layerData[shapeIn]) ?
|
|
70
|
+
this.maps.layersCollection[layerIndex].layerData[shapeIn]['property'] : null;
|
|
69
71
|
dataIndex = parseInt(targetEle.id.split('_dataIndex_')[1].split('_')[0], 10);
|
|
70
72
|
data = isNullOrUndefined(dataIndex) ? null : this.maps.layers[layerIndex].dataSource[dataIndex];
|
|
71
73
|
this.highlightSettings = this.maps.layers[layerIndex].highlightSettings;
|
|
@@ -137,7 +139,8 @@ var Highlight = /** @class */ (function () {
|
|
|
137
139
|
*/
|
|
138
140
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
139
141
|
Highlight.prototype.handleHighlight = function (targetElement, layerIndex, data, shapeData) {
|
|
140
|
-
if (this.maps.legendSettings.visible && targetElement.id.indexOf('_MarkerIndex_') === -1 && this.maps.legendModule
|
|
142
|
+
if (this.maps.legendSettings.visible && targetElement.id.indexOf('_MarkerIndex_') === -1 && this.maps.legendModule
|
|
143
|
+
&& this.maps.legendSettings.type === 'Layers') {
|
|
141
144
|
this.maps.legendModule.shapeHighLightAndSelection(targetElement, data, this.highlightSettings, 'highlight', layerIndex);
|
|
142
145
|
}
|
|
143
146
|
var selectHighLight = targetElement.id.indexOf('shapeIndex') > -1 && (this.maps.legendSettings.visible && this.maps.legendModule) ?
|
|
@@ -156,7 +159,7 @@ var Highlight = /** @class */ (function () {
|
|
|
156
159
|
isMarkerSelect = this.maps.layers[layerIndex].markerSettings[marker].highlightSettings.enable;
|
|
157
160
|
}
|
|
158
161
|
var border = {
|
|
159
|
-
color: (targetEle.parentElement.id.indexOf('LineString') === -1) ? this.highlightSettings.border.color : (this.highlightSettings.
|
|
162
|
+
color: (targetEle.parentElement.id.indexOf('LineString') === -1) ? this.highlightSettings.border.color : (this.highlightSettings.fill || this.highlightSettings.border.color),
|
|
160
163
|
width: (targetEle.parentElement.id.indexOf('LineString') === -1) ? (this.highlightSettings.border.width / (isMarkerSelect ? 1 : this.maps.scale)) : (this.highlightSettings.border.width / this.maps.scale),
|
|
161
164
|
opacity: this.highlightSettings.border.opacity
|
|
162
165
|
};
|
|
@@ -214,15 +217,13 @@ var Highlight = /** @class */ (function () {
|
|
|
214
217
|
/**
|
|
215
218
|
* To destroy the highlight.
|
|
216
219
|
*
|
|
217
|
-
* @param {Maps} maps - Specifies the maps instance
|
|
218
220
|
* @returns {void}
|
|
219
221
|
* @private
|
|
220
222
|
*/
|
|
221
|
-
Highlight.prototype.destroy = function (
|
|
222
|
-
|
|
223
|
-
* Destroy method performed here
|
|
224
|
-
*/
|
|
223
|
+
Highlight.prototype.destroy = function () {
|
|
224
|
+
this.highlightSettings = null;
|
|
225
225
|
this.removeEventListener();
|
|
226
|
+
this.maps = null;
|
|
226
227
|
};
|
|
227
228
|
return Highlight;
|
|
228
229
|
}());
|