@syncfusion/ej2-maps 25.2.5 → 26.1.41
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 +3 -2
- 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 +1011 -941
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +1049 -980
- 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 +13 -13
- package/src/maps/layers/bing-map.d.ts +2 -2
- package/src/maps/layers/data-label.js +5 -5
- package/src/maps/layers/layer-panel.js +118 -173
- package/src/maps/layers/legend.js +52 -37
- package/src/maps/layers/marker.js +101 -97
- package/src/maps/layers/navigation-selected-line.js +1 -1
- package/src/maps/layers/polygon.js +9 -6
- package/src/maps/maps.js +7 -16
- package/src/maps/model/base-model.d.ts +2 -91
- package/src/maps/model/base.d.ts +3 -81
- package/src/maps/model/base.js +6 -39
- package/src/maps/model/export-image.js +5 -2
- package/src/maps/model/export-pdf.js +5 -2
- package/src/maps/model/interface.d.ts +12 -0
- package/src/maps/model/interface.js +0 -1
- package/src/maps/model/print.js +5 -2
- package/src/maps/model/theme.js +189 -14
- package/src/maps/user-interaction/tooltip.js +12 -2
- package/src/maps/user-interaction/zoom.js +27 -40
- package/src/maps/utils/enum.d.ts +7 -53
- package/src/maps/utils/helper.js +16 -24
- package/CHANGELOG.md +0 -653
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isNullOrUndefined, createElement, merge, remove, animationMode, compile, Animation, SanitizeHtmlHelper, ChildProperty, Property, Complex, Collection, Fetch, extend, Component, setValue, Browser, EventHandler, Internationalization, L10n, Event, NotifyPropertyChanges, print } from '@syncfusion/ej2-base';
|
|
2
2
|
import { SvgRenderer, Tooltip } from '@syncfusion/ej2-svg-base';
|
|
3
3
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
4
|
-
import {
|
|
4
|
+
import { PdfPageOrientation, PdfDocument, PdfBitmap } from '@syncfusion/ej2-pdf-export';
|
|
5
5
|
|
|
6
6
|
/* eslint-disable max-len */
|
|
7
|
-
/**
|
|
8
|
-
* Helper functions for maps control
|
|
9
|
-
*/
|
|
10
7
|
/**
|
|
11
8
|
* Specifies the size information of an element.
|
|
12
9
|
*/
|
|
@@ -209,18 +206,20 @@ function convertGeoToPoint(latitude, longitude, factor, layer, mapModel) {
|
|
|
209
206
|
*/
|
|
210
207
|
function calculatePolygonPath(maps, factor, currentLayer, markerData) {
|
|
211
208
|
let path = '';
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
209
|
+
if (!isNullOrUndefined(markerData) && markerData.length > 1) {
|
|
210
|
+
Array.prototype.forEach.call(markerData, (data, dataIndex) => {
|
|
211
|
+
const lat = data.latitude;
|
|
212
|
+
const lng = data.longitude;
|
|
213
|
+
const location = (maps.isTileMap) ? convertTileLatLongToPoint(new MapLocation(lng, lat), factor, maps.tileTranslatePoint, true) : convertGeoToPoint(lat, lng, factor, currentLayer, maps);
|
|
214
|
+
if (dataIndex === 0) {
|
|
215
|
+
path += 'M ' + location.x + ' ' + location.y;
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
path += ' L ' + location.x + ' ' + location.y;
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
path += ' z ';
|
|
222
|
+
}
|
|
224
223
|
return path;
|
|
225
224
|
}
|
|
226
225
|
/**
|
|
@@ -1360,15 +1359,6 @@ function markerTemplate(eventArgs, templateFn, markerID, data, markerIndex, mark
|
|
|
1360
1359
|
markerElement.style.left = (maps.isTileMap ? location.x : (location.x + transPoint.x) * scale) + offset.x - maps.mapAreaRect.x + 'px';
|
|
1361
1360
|
markerElement.style.top = (maps.isTileMap ? location.y : (location.y + transPoint.y) * scale) + offset.y - maps.mapAreaRect.y + 'px';
|
|
1362
1361
|
markerTemplate.appendChild(markerElement);
|
|
1363
|
-
if (maps.layers[maps.baseLayerIndex].layerType === 'GoogleStaticMap') {
|
|
1364
|
-
const staticMapOffset = getElementByID(maps.element.id + '_StaticGoogleMap').getBoundingClientRect();
|
|
1365
|
-
const markerElementOffset = markerElement.getBoundingClientRect();
|
|
1366
|
-
const staticMapOffsetWidth = 640;
|
|
1367
|
-
if ((staticMapOffset['x'] > markerElementOffset['x'] || staticMapOffset['x'] + staticMapOffsetWidth < markerElementOffset['x'] + markerElementOffset['width'])
|
|
1368
|
-
&& (staticMapOffset['y'] > markerElementOffset['y'] || staticMapOffset['y'] + staticMapOffset['height'] < markerElementOffset['y'] + markerElementOffset['height'])) {
|
|
1369
|
-
markerElement.style.display = 'none';
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
1362
|
}
|
|
1373
1363
|
return markerTemplate;
|
|
1374
1364
|
}
|
|
@@ -1790,7 +1780,7 @@ function getFieldData(dataSource, fields) {
|
|
|
1790
1780
|
function checkShapeDataFields(dataSource, properties, dataPath, propertyPath,
|
|
1791
1781
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1792
1782
|
layer) {
|
|
1793
|
-
if (!(isNullOrUndefined(properties))) {
|
|
1783
|
+
if (!(isNullOrUndefined(properties)) && !isNullOrUndefined(dataSource)) {
|
|
1794
1784
|
for (let i = 0; i < dataSource.length; i++) {
|
|
1795
1785
|
const shapeDataPath = ((dataPath.indexOf('.') > -1) ? getValueFromObject(dataSource[i], dataPath) :
|
|
1796
1786
|
dataSource[i][dataPath]);
|
|
@@ -2414,8 +2404,7 @@ function getZoomTranslate(mapObject, layer, animate) {
|
|
|
2414
2404
|
*/
|
|
2415
2405
|
function fixInitialScaleForTile(map) {
|
|
2416
2406
|
map.tileZoomScale = map.tileZoomLevel = Math.floor(map.availableSize.height / 512) + 1;
|
|
2417
|
-
const padding =
|
|
2418
|
-
20 : 0;
|
|
2407
|
+
const padding = 20;
|
|
2419
2408
|
const totalSize = Math.pow(2, map.tileZoomLevel) * 256;
|
|
2420
2409
|
map.tileTranslatePoint.x = (map.availableSize.width / 2) - (totalSize / 2);
|
|
2421
2410
|
map.tileTranslatePoint.y = (map.availableSize.height / 2) - (totalSize / 2) + padding;
|
|
@@ -2519,7 +2508,7 @@ function getShapeData(targetId, map) {
|
|
|
2519
2508
|
let data;
|
|
2520
2509
|
if (layer.dataSource) {
|
|
2521
2510
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2522
|
-
data = layer.dataSource[checkShapeDataFields(layer.dataSource, shapeData, layer.shapeDataPath, layer.shapePropertyPath
|
|
2511
|
+
data = layer.dataSource[checkShapeDataFields(layer.dataSource, shapeData, layer.shapeDataPath, layer.shapePropertyPath)];
|
|
2523
2512
|
}
|
|
2524
2513
|
return { shapeData: shapeData, data: data };
|
|
2525
2514
|
}
|
|
@@ -3548,7 +3537,7 @@ var Theme;
|
|
|
3548
3537
|
};
|
|
3549
3538
|
/** @private */
|
|
3550
3539
|
Theme.dataLabelFont = {
|
|
3551
|
-
size:
|
|
3540
|
+
size: null,
|
|
3552
3541
|
fontWeight: 'Medium',
|
|
3553
3542
|
color: '#000000',
|
|
3554
3543
|
fontStyle: 'Medium',
|
|
@@ -3701,6 +3690,15 @@ function getShapeColor(theme) {
|
|
|
3701
3690
|
themePalette = ['#4EAAFF', '#FA4EAB', '#FFF500', '#17EA58', '#38FFE7',
|
|
3702
3691
|
'#FF9E45', '#B3F32F', '#B93CE4', '#FC5664', '#9B55FF'];
|
|
3703
3692
|
break;
|
|
3693
|
+
case 'fluent2':
|
|
3694
|
+
themePalette = ['#6200EE', '#09AF74', '#0076E5', '#CB3587', '#E7910F',
|
|
3695
|
+
'#0364DE', '#66CD15', '#F3A93C', '#107C10', '#C19C00'];
|
|
3696
|
+
break;
|
|
3697
|
+
case 'fluent2dark':
|
|
3698
|
+
case 'fluent2highcontrast':
|
|
3699
|
+
themePalette = ['#9BB449', '#2A72D5', '#43B786', '#3F579A', '#584EC6',
|
|
3700
|
+
'#E85F9C', '#6E7A89', '#EA6266', '#0B6A0B', '#C19C00'];
|
|
3701
|
+
break;
|
|
3704
3702
|
default:
|
|
3705
3703
|
themePalette = ['#B5E485', '#7BC1E8', '#DF819C', '#EC9B79', '#78D0D3',
|
|
3706
3704
|
'#D6D572', '#9178E3', '#A1E5B4', '#87A4B4', '#E4C16C'];
|
|
@@ -3756,7 +3754,7 @@ var HighContrastTheme;
|
|
|
3756
3754
|
};
|
|
3757
3755
|
/** @private */
|
|
3758
3756
|
HighContrastTheme.dataLabelFont = {
|
|
3759
|
-
size:
|
|
3757
|
+
size: null,
|
|
3760
3758
|
fontWeight: 'Medium',
|
|
3761
3759
|
color: '#000000',
|
|
3762
3760
|
fontStyle: 'Medium',
|
|
@@ -3850,13 +3848,19 @@ function getThemeStyle(theme) {
|
|
|
3850
3848
|
labelFontFamily: 'Roboto, Noto, Sans-serif',
|
|
3851
3849
|
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
3852
3850
|
fontSize: '12px',
|
|
3851
|
+
legendFontSize: '12px',
|
|
3853
3852
|
fontWeight: 'Medium',
|
|
3854
3853
|
titleFontWeight: 'Medium',
|
|
3855
3854
|
zoomSelectionColor: '#e61576',
|
|
3856
3855
|
shapeFill: '#A6A6A6',
|
|
3856
|
+
shapeBorderColor: '#000000',
|
|
3857
3857
|
rectangleZoomFillColor: '#d3d3d3',
|
|
3858
3858
|
rectangleZoomFillOpacity: 0.5,
|
|
3859
|
-
rectangleZoomBorderColor: '#009900'
|
|
3859
|
+
rectangleZoomBorderColor: '#009900',
|
|
3860
|
+
legendBorderColor: '#000000',
|
|
3861
|
+
legendBorderWidth: 0,
|
|
3862
|
+
tooltipBorderColor: 'transparent',
|
|
3863
|
+
zoomButtonRadius: 30
|
|
3860
3864
|
};
|
|
3861
3865
|
break;
|
|
3862
3866
|
case 'highcontrast':
|
|
@@ -3874,14 +3878,20 @@ function getThemeStyle(theme) {
|
|
|
3874
3878
|
zoomFillColor: '#FFFFFF',
|
|
3875
3879
|
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
3876
3880
|
fontSize: '12px',
|
|
3881
|
+
legendFontSize: '12px',
|
|
3877
3882
|
fontWeight: 'Medium',
|
|
3878
3883
|
labelFontFamily: 'Roboto, Noto, Sans-serif',
|
|
3879
3884
|
titleFontWeight: 'Medium',
|
|
3880
3885
|
zoomSelectionColor: '#e61576',
|
|
3881
3886
|
shapeFill: '#A6A6A6',
|
|
3887
|
+
shapeBorderColor: '#000000',
|
|
3882
3888
|
rectangleZoomFillColor: '#d3d3d3',
|
|
3883
3889
|
rectangleZoomFillOpacity: 0.5,
|
|
3884
|
-
rectangleZoomBorderColor: '#009900'
|
|
3890
|
+
rectangleZoomBorderColor: '#009900',
|
|
3891
|
+
legendBorderColor: '#000000',
|
|
3892
|
+
legendBorderWidth: 0,
|
|
3893
|
+
tooltipBorderColor: 'transparent',
|
|
3894
|
+
zoomButtonRadius: 30
|
|
3885
3895
|
};
|
|
3886
3896
|
break;
|
|
3887
3897
|
case 'bootstrap4':
|
|
@@ -3907,9 +3917,14 @@ function getThemeStyle(theme) {
|
|
|
3907
3917
|
titleFontWeight: 'Medium',
|
|
3908
3918
|
zoomSelectionColor: '#e61576',
|
|
3909
3919
|
shapeFill: '#A6A6A6',
|
|
3920
|
+
shapeBorderColor: '#000000',
|
|
3910
3921
|
rectangleZoomFillColor: '#d3d3d3',
|
|
3911
3922
|
rectangleZoomFillOpacity: 0.5,
|
|
3912
|
-
rectangleZoomBorderColor: '#009900'
|
|
3923
|
+
rectangleZoomBorderColor: '#009900',
|
|
3924
|
+
legendBorderColor: '#000000',
|
|
3925
|
+
legendBorderWidth: 0,
|
|
3926
|
+
tooltipBorderColor: 'transparent',
|
|
3927
|
+
zoomButtonRadius: 30
|
|
3913
3928
|
};
|
|
3914
3929
|
break;
|
|
3915
3930
|
case 'tailwind':
|
|
@@ -3935,9 +3950,14 @@ function getThemeStyle(theme) {
|
|
|
3935
3950
|
titleFontWeight: '500',
|
|
3936
3951
|
zoomSelectionColor: '#374151',
|
|
3937
3952
|
shapeFill: '#E5E7EB',
|
|
3953
|
+
shapeBorderColor: '#000000',
|
|
3938
3954
|
rectangleZoomFillColor: '#d3d3d3',
|
|
3939
3955
|
rectangleZoomFillOpacity: 0.5,
|
|
3940
|
-
rectangleZoomBorderColor: '#009900'
|
|
3956
|
+
rectangleZoomBorderColor: '#009900',
|
|
3957
|
+
legendBorderColor: '#000000',
|
|
3958
|
+
legendBorderWidth: 0,
|
|
3959
|
+
tooltipBorderColor: 'transparent',
|
|
3960
|
+
zoomButtonRadius: 30
|
|
3941
3961
|
};
|
|
3942
3962
|
break;
|
|
3943
3963
|
case 'tailwinddark':
|
|
@@ -3963,9 +3983,14 @@ function getThemeStyle(theme) {
|
|
|
3963
3983
|
titleFontWeight: '500',
|
|
3964
3984
|
zoomSelectionColor: '#F3F4F6',
|
|
3965
3985
|
shapeFill: '#374151',
|
|
3986
|
+
shapeBorderColor: '#000000',
|
|
3966
3987
|
rectangleZoomFillColor: '#d3d3d3',
|
|
3967
3988
|
rectangleZoomFillOpacity: 0.5,
|
|
3968
|
-
rectangleZoomBorderColor: '#009900'
|
|
3989
|
+
rectangleZoomBorderColor: '#009900',
|
|
3990
|
+
legendBorderColor: '#000000',
|
|
3991
|
+
legendBorderWidth: 0,
|
|
3992
|
+
tooltipBorderColor: 'transparent',
|
|
3993
|
+
zoomButtonRadius: 30
|
|
3969
3994
|
};
|
|
3970
3995
|
break;
|
|
3971
3996
|
case 'bootstrap5':
|
|
@@ -3991,9 +4016,14 @@ function getThemeStyle(theme) {
|
|
|
3991
4016
|
titleFontWeight: 'normal',
|
|
3992
4017
|
zoomSelectionColor: '#343A40',
|
|
3993
4018
|
shapeFill: '#E9ECEF',
|
|
4019
|
+
shapeBorderColor: '#000000',
|
|
3994
4020
|
rectangleZoomFillColor: '#d3d3d3',
|
|
3995
4021
|
rectangleZoomFillOpacity: 0.5,
|
|
3996
|
-
rectangleZoomBorderColor: '#009900'
|
|
4022
|
+
rectangleZoomBorderColor: '#009900',
|
|
4023
|
+
legendBorderColor: '#000000',
|
|
4024
|
+
legendBorderWidth: 0,
|
|
4025
|
+
tooltipBorderColor: 'transparent',
|
|
4026
|
+
zoomButtonRadius: 30
|
|
3997
4027
|
};
|
|
3998
4028
|
break;
|
|
3999
4029
|
case 'bootstrap5dark':
|
|
@@ -4019,9 +4049,14 @@ function getThemeStyle(theme) {
|
|
|
4019
4049
|
titleFontWeight: 'normal',
|
|
4020
4050
|
zoomSelectionColor: '#DEE2E6',
|
|
4021
4051
|
shapeFill: '#495057',
|
|
4052
|
+
shapeBorderColor: '#000000',
|
|
4022
4053
|
rectangleZoomFillColor: '#d3d3d3',
|
|
4023
4054
|
rectangleZoomFillOpacity: 0.5,
|
|
4024
|
-
rectangleZoomBorderColor: '#009900'
|
|
4055
|
+
rectangleZoomBorderColor: '#009900',
|
|
4056
|
+
legendBorderColor: '#000000',
|
|
4057
|
+
legendBorderWidth: 0,
|
|
4058
|
+
tooltipBorderColor: 'transparent',
|
|
4059
|
+
zoomButtonRadius: 30
|
|
4025
4060
|
};
|
|
4026
4061
|
break;
|
|
4027
4062
|
case 'fluent':
|
|
@@ -4047,9 +4082,14 @@ function getThemeStyle(theme) {
|
|
|
4047
4082
|
titleFontWeight: '600',
|
|
4048
4083
|
zoomSelectionColor: '#323130',
|
|
4049
4084
|
shapeFill: '#F3F2F1',
|
|
4085
|
+
shapeBorderColor: '#000000',
|
|
4050
4086
|
rectangleZoomFillColor: '#d3d3d3',
|
|
4051
4087
|
rectangleZoomFillOpacity: 0.5,
|
|
4052
|
-
rectangleZoomBorderColor: '#009900'
|
|
4088
|
+
rectangleZoomBorderColor: '#009900',
|
|
4089
|
+
legendBorderColor: '#000000',
|
|
4090
|
+
legendBorderWidth: 0,
|
|
4091
|
+
tooltipBorderColor: 'transparent',
|
|
4092
|
+
zoomButtonRadius: 30
|
|
4053
4093
|
};
|
|
4054
4094
|
break;
|
|
4055
4095
|
case 'fluentdark':
|
|
@@ -4075,9 +4115,14 @@ function getThemeStyle(theme) {
|
|
|
4075
4115
|
titleFontWeight: '600',
|
|
4076
4116
|
zoomSelectionColor: '#F3F2F1',
|
|
4077
4117
|
shapeFill: '#252423',
|
|
4118
|
+
shapeBorderColor: '#000000',
|
|
4078
4119
|
rectangleZoomFillColor: '#d3d3d3',
|
|
4079
4120
|
rectangleZoomFillOpacity: 0.5,
|
|
4080
|
-
rectangleZoomBorderColor: '#009900'
|
|
4121
|
+
rectangleZoomBorderColor: '#009900',
|
|
4122
|
+
legendBorderColor: '#000000',
|
|
4123
|
+
legendBorderWidth: 0,
|
|
4124
|
+
tooltipBorderColor: 'transparent',
|
|
4125
|
+
zoomButtonRadius: 30
|
|
4081
4126
|
};
|
|
4082
4127
|
break;
|
|
4083
4128
|
case 'material3':
|
|
@@ -4104,9 +4149,14 @@ function getThemeStyle(theme) {
|
|
|
4104
4149
|
fontWeight: '400',
|
|
4105
4150
|
zoomSelectionColor: '#49454E',
|
|
4106
4151
|
shapeFill: '#E7E0EC',
|
|
4152
|
+
shapeBorderColor: '#000000',
|
|
4107
4153
|
rectangleZoomFillColor: '#6750A4',
|
|
4108
4154
|
rectangleZoomFillOpacity: 0.24,
|
|
4109
|
-
rectangleZoomBorderColor: '#6750A4'
|
|
4155
|
+
rectangleZoomBorderColor: '#6750A4',
|
|
4156
|
+
legendBorderColor: '#000000',
|
|
4157
|
+
legendBorderWidth: 0,
|
|
4158
|
+
tooltipBorderColor: 'transparent',
|
|
4159
|
+
zoomButtonRadius: 30
|
|
4110
4160
|
};
|
|
4111
4161
|
break;
|
|
4112
4162
|
case 'material3dark':
|
|
@@ -4133,9 +4183,117 @@ function getThemeStyle(theme) {
|
|
|
4133
4183
|
fontWeight: '400',
|
|
4134
4184
|
zoomSelectionColor: '#E6E1E5',
|
|
4135
4185
|
shapeFill: '#49454F',
|
|
4186
|
+
shapeBorderColor: '#000000',
|
|
4136
4187
|
rectangleZoomFillColor: '#D0BCFF',
|
|
4137
4188
|
rectangleZoomFillOpacity: 0.24,
|
|
4138
|
-
rectangleZoomBorderColor: '#D0BCFF'
|
|
4189
|
+
rectangleZoomBorderColor: '#D0BCFF',
|
|
4190
|
+
legendBorderColor: '#000000',
|
|
4191
|
+
legendBorderWidth: 0,
|
|
4192
|
+
tooltipBorderColor: 'transparent',
|
|
4193
|
+
zoomButtonRadius: 30
|
|
4194
|
+
};
|
|
4195
|
+
break;
|
|
4196
|
+
case 'fluent2':
|
|
4197
|
+
style = {
|
|
4198
|
+
backgroundColor: 'transparent',
|
|
4199
|
+
areaBackgroundColor: 'transparent',
|
|
4200
|
+
titleFontColor: '#242424',
|
|
4201
|
+
subTitleFontColor: '#242424',
|
|
4202
|
+
legendTitleFontColor: '#242424',
|
|
4203
|
+
legendTextColor: '#242424',
|
|
4204
|
+
dataLabelFontColor: '#242424',
|
|
4205
|
+
tooltipFontColor: '#242424',
|
|
4206
|
+
tooltipFillColor: '#FFFFFF',
|
|
4207
|
+
zoomFillColor: '#D1D1D1',
|
|
4208
|
+
fontFamily: 'Segoe UI',
|
|
4209
|
+
fontSize: '10px',
|
|
4210
|
+
fontWeight: '400',
|
|
4211
|
+
titleFontSize: '14px',
|
|
4212
|
+
subTitleFontSize: '12px',
|
|
4213
|
+
legendFontSize: '12px',
|
|
4214
|
+
tooltipFillOpacity: 1,
|
|
4215
|
+
tooltipTextOpacity: 1,
|
|
4216
|
+
labelFontFamily: 'Segoe UI',
|
|
4217
|
+
titleFontWeight: '600',
|
|
4218
|
+
zoomSelectionColor: '#242424',
|
|
4219
|
+
shapeFill: '#E6E6E6',
|
|
4220
|
+
shapeBorderColor: '#EBEBEB',
|
|
4221
|
+
rectangleZoomFillColor: '#B4D6FA',
|
|
4222
|
+
rectangleZoomFillOpacity: 0.25,
|
|
4223
|
+
rectangleZoomBorderColor: '#0F6CBD',
|
|
4224
|
+
legendBorderColor: '#000000',
|
|
4225
|
+
legendBorderWidth: 0,
|
|
4226
|
+
tooltipBorderColor: 'transparent',
|
|
4227
|
+
zoomButtonRadius: 32
|
|
4228
|
+
};
|
|
4229
|
+
break;
|
|
4230
|
+
case 'fluent2dark':
|
|
4231
|
+
style = {
|
|
4232
|
+
backgroundColor: 'transparent',
|
|
4233
|
+
areaBackgroundColor: 'transparent',
|
|
4234
|
+
titleFontColor: '#FFFFFF',
|
|
4235
|
+
subTitleFontColor: '#FFFFFF',
|
|
4236
|
+
legendTitleFontColor: '#FFFFFF',
|
|
4237
|
+
legendTextColor: '#FFFFFF',
|
|
4238
|
+
dataLabelFontColor: '#FFFFFF',
|
|
4239
|
+
tooltipFontColor: '#FFFFFF',
|
|
4240
|
+
tooltipFillColor: '#292929',
|
|
4241
|
+
zoomFillColor: '#666',
|
|
4242
|
+
fontFamily: 'Segoe UI',
|
|
4243
|
+
fontSize: '10px',
|
|
4244
|
+
fontWeight: '400',
|
|
4245
|
+
titleFontSize: '14px',
|
|
4246
|
+
subTitleFontSize: '12px',
|
|
4247
|
+
legendFontSize: '12px',
|
|
4248
|
+
tooltipFillOpacity: 1,
|
|
4249
|
+
tooltipTextOpacity: 1,
|
|
4250
|
+
labelFontFamily: 'Segoe UI',
|
|
4251
|
+
titleFontWeight: '600',
|
|
4252
|
+
zoomSelectionColor: '#FFFFFF',
|
|
4253
|
+
shapeFill: '#333333',
|
|
4254
|
+
shapeBorderColor: '#000000',
|
|
4255
|
+
rectangleZoomFillColor: '#0E4775',
|
|
4256
|
+
rectangleZoomFillOpacity: 0.25,
|
|
4257
|
+
rectangleZoomBorderColor: '#0E4775',
|
|
4258
|
+
legendBorderColor: '#000000',
|
|
4259
|
+
legendBorderWidth: 0,
|
|
4260
|
+
tooltipBorderColor: 'transparent',
|
|
4261
|
+
zoomButtonRadius: 32
|
|
4262
|
+
};
|
|
4263
|
+
break;
|
|
4264
|
+
case 'fluent2highcontrast':
|
|
4265
|
+
style = {
|
|
4266
|
+
backgroundColor: 'transparent',
|
|
4267
|
+
areaBackgroundColor: 'transparent',
|
|
4268
|
+
titleFontColor: '#FFFFFF',
|
|
4269
|
+
subTitleFontColor: '#FFFFFF',
|
|
4270
|
+
legendTitleFontColor: '#FFFFFF',
|
|
4271
|
+
legendTextColor: '#FFFFFF',
|
|
4272
|
+
dataLabelFontColor: '#FFFFFF',
|
|
4273
|
+
tooltipFontColor: '#FFFFFF',
|
|
4274
|
+
tooltipFillColor: '#000000',
|
|
4275
|
+
zoomFillColor: '#3FF23F',
|
|
4276
|
+
fontFamily: 'Segoe UI',
|
|
4277
|
+
fontSize: '10px',
|
|
4278
|
+
fontWeight: '400',
|
|
4279
|
+
titleFontSize: '14px',
|
|
4280
|
+
subTitleFontSize: '12px',
|
|
4281
|
+
legendFontSize: '12px',
|
|
4282
|
+
tooltipFillOpacity: 1,
|
|
4283
|
+
tooltipTextOpacity: 1,
|
|
4284
|
+
labelFontFamily: 'Segoe UI',
|
|
4285
|
+
titleFontWeight: '600',
|
|
4286
|
+
zoomSelectionColor: '#FFFFFF',
|
|
4287
|
+
zoomBorderColor: '#FFFFFF',
|
|
4288
|
+
shapeFill: '#292827',
|
|
4289
|
+
shapeBorderColor: '#292827',
|
|
4290
|
+
rectangleZoomFillColor: '#1AEBFF',
|
|
4291
|
+
rectangleZoomFillOpacity: 0.25,
|
|
4292
|
+
rectangleZoomBorderColor: '#1AEBFF',
|
|
4293
|
+
legendBorderColor: '#FFFFFF',
|
|
4294
|
+
legendBorderWidth: 1,
|
|
4295
|
+
tooltipBorderColor: '#FFF',
|
|
4296
|
+
zoomButtonRadius: 32
|
|
4139
4297
|
};
|
|
4140
4298
|
break;
|
|
4141
4299
|
default:
|
|
@@ -4154,50 +4312,52 @@ function getThemeStyle(theme) {
|
|
|
4154
4312
|
labelFontFamily: 'Roboto, Noto, Sans-serif',
|
|
4155
4313
|
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
4156
4314
|
fontSize: '12px',
|
|
4315
|
+
legendFontSize: '12px',
|
|
4157
4316
|
fontWeight: 'Medium',
|
|
4158
4317
|
titleFontWeight: 'Medium',
|
|
4159
4318
|
zoomSelectionColor: '#e61576',
|
|
4160
4319
|
shapeFill: '#A6A6A6',
|
|
4320
|
+
shapeBorderColor: '#000000',
|
|
4161
4321
|
rectangleZoomFillColor: '#d3d3d3',
|
|
4162
4322
|
rectangleZoomFillOpacity: 0.5,
|
|
4163
|
-
rectangleZoomBorderColor: '#009900'
|
|
4323
|
+
rectangleZoomBorderColor: '#009900',
|
|
4324
|
+
legendBorderColor: '#000000',
|
|
4325
|
+
legendBorderWidth: 0,
|
|
4326
|
+
tooltipBorderColor: 'transparent',
|
|
4327
|
+
zoomButtonRadius: 30
|
|
4164
4328
|
};
|
|
4165
4329
|
break;
|
|
4166
4330
|
}
|
|
4167
4331
|
return style;
|
|
4168
4332
|
}
|
|
4169
4333
|
|
|
4170
|
-
var __decorate
|
|
4334
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
4171
4335
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4172
4336
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4173
4337
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4174
4338
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4175
4339
|
};
|
|
4176
|
-
/* eslint-disable max-len */
|
|
4177
|
-
/**
|
|
4178
|
-
* Maps base document
|
|
4179
|
-
*/
|
|
4180
4340
|
/**
|
|
4181
4341
|
* Gets or sets the options for customizing the annotation element in maps.
|
|
4182
4342
|
*/
|
|
4183
4343
|
class Annotation extends ChildProperty {
|
|
4184
4344
|
}
|
|
4185
|
-
__decorate
|
|
4345
|
+
__decorate([
|
|
4186
4346
|
Property('')
|
|
4187
4347
|
], Annotation.prototype, "content", void 0);
|
|
4188
|
-
__decorate
|
|
4348
|
+
__decorate([
|
|
4189
4349
|
Property('0px')
|
|
4190
4350
|
], Annotation.prototype, "x", void 0);
|
|
4191
|
-
__decorate
|
|
4351
|
+
__decorate([
|
|
4192
4352
|
Property('0px')
|
|
4193
4353
|
], Annotation.prototype, "y", void 0);
|
|
4194
|
-
__decorate
|
|
4354
|
+
__decorate([
|
|
4195
4355
|
Property('None')
|
|
4196
4356
|
], Annotation.prototype, "verticalAlignment", void 0);
|
|
4197
|
-
__decorate
|
|
4357
|
+
__decorate([
|
|
4198
4358
|
Property('None')
|
|
4199
4359
|
], Annotation.prototype, "horizontalAlignment", void 0);
|
|
4200
|
-
__decorate
|
|
4360
|
+
__decorate([
|
|
4201
4361
|
Property('-1')
|
|
4202
4362
|
], Annotation.prototype, "zIndex", void 0);
|
|
4203
4363
|
/**
|
|
@@ -4205,19 +4365,19 @@ __decorate$1([
|
|
|
4205
4365
|
*/
|
|
4206
4366
|
class Arrow extends ChildProperty {
|
|
4207
4367
|
}
|
|
4208
|
-
__decorate
|
|
4368
|
+
__decorate([
|
|
4209
4369
|
Property('Start')
|
|
4210
4370
|
], Arrow.prototype, "position", void 0);
|
|
4211
|
-
__decorate
|
|
4371
|
+
__decorate([
|
|
4212
4372
|
Property('false')
|
|
4213
4373
|
], Arrow.prototype, "showArrow", void 0);
|
|
4214
|
-
__decorate
|
|
4374
|
+
__decorate([
|
|
4215
4375
|
Property(2)
|
|
4216
4376
|
], Arrow.prototype, "size", void 0);
|
|
4217
|
-
__decorate
|
|
4377
|
+
__decorate([
|
|
4218
4378
|
Property('black')
|
|
4219
4379
|
], Arrow.prototype, "color", void 0);
|
|
4220
|
-
__decorate
|
|
4380
|
+
__decorate([
|
|
4221
4381
|
Property(0)
|
|
4222
4382
|
], Arrow.prototype, "offSet", void 0);
|
|
4223
4383
|
/**
|
|
@@ -4225,22 +4385,22 @@ __decorate$1([
|
|
|
4225
4385
|
*/
|
|
4226
4386
|
class Font extends ChildProperty {
|
|
4227
4387
|
}
|
|
4228
|
-
__decorate
|
|
4229
|
-
Property(
|
|
4388
|
+
__decorate([
|
|
4389
|
+
Property(null)
|
|
4230
4390
|
], Font.prototype, "size", void 0);
|
|
4231
|
-
__decorate
|
|
4391
|
+
__decorate([
|
|
4232
4392
|
Property(null)
|
|
4233
4393
|
], Font.prototype, "color", void 0);
|
|
4234
|
-
__decorate
|
|
4394
|
+
__decorate([
|
|
4235
4395
|
Property('Roboto, Noto, Sans-serif')
|
|
4236
4396
|
], Font.prototype, "fontFamily", void 0);
|
|
4237
|
-
__decorate
|
|
4397
|
+
__decorate([
|
|
4238
4398
|
Property('Medium')
|
|
4239
4399
|
], Font.prototype, "fontWeight", void 0);
|
|
4240
|
-
__decorate
|
|
4400
|
+
__decorate([
|
|
4241
4401
|
Property('Medium')
|
|
4242
4402
|
], Font.prototype, "fontStyle", void 0);
|
|
4243
|
-
__decorate
|
|
4403
|
+
__decorate([
|
|
4244
4404
|
Property(1)
|
|
4245
4405
|
], Font.prototype, "opacity", void 0);
|
|
4246
4406
|
/**
|
|
@@ -4248,37 +4408,37 @@ __decorate$1([
|
|
|
4248
4408
|
*/
|
|
4249
4409
|
class ZoomToolbarButtonSettings extends ChildProperty {
|
|
4250
4410
|
}
|
|
4251
|
-
__decorate
|
|
4411
|
+
__decorate([
|
|
4252
4412
|
Property('transparent')
|
|
4253
4413
|
], ZoomToolbarButtonSettings.prototype, "fill", void 0);
|
|
4254
|
-
__decorate
|
|
4414
|
+
__decorate([
|
|
4255
4415
|
Property(null)
|
|
4256
4416
|
], ZoomToolbarButtonSettings.prototype, "color", void 0);
|
|
4257
|
-
__decorate
|
|
4417
|
+
__decorate([
|
|
4258
4418
|
Property(1)
|
|
4259
4419
|
], ZoomToolbarButtonSettings.prototype, "borderOpacity", void 0);
|
|
4260
|
-
__decorate
|
|
4420
|
+
__decorate([
|
|
4261
4421
|
Property(1)
|
|
4262
4422
|
], ZoomToolbarButtonSettings.prototype, "borderWidth", void 0);
|
|
4263
|
-
__decorate
|
|
4423
|
+
__decorate([
|
|
4264
4424
|
Property(null)
|
|
4265
4425
|
], ZoomToolbarButtonSettings.prototype, "borderColor", void 0);
|
|
4266
|
-
__decorate
|
|
4267
|
-
Property(
|
|
4426
|
+
__decorate([
|
|
4427
|
+
Property(null)
|
|
4268
4428
|
], ZoomToolbarButtonSettings.prototype, "radius", void 0);
|
|
4269
|
-
__decorate
|
|
4429
|
+
__decorate([
|
|
4270
4430
|
Property(null)
|
|
4271
4431
|
], ZoomToolbarButtonSettings.prototype, "selectionColor", void 0);
|
|
4272
|
-
__decorate
|
|
4432
|
+
__decorate([
|
|
4273
4433
|
Property(null)
|
|
4274
4434
|
], ZoomToolbarButtonSettings.prototype, "highlightColor", void 0);
|
|
4275
|
-
__decorate
|
|
4435
|
+
__decorate([
|
|
4276
4436
|
Property(5)
|
|
4277
4437
|
], ZoomToolbarButtonSettings.prototype, "padding", void 0);
|
|
4278
|
-
__decorate
|
|
4438
|
+
__decorate([
|
|
4279
4439
|
Property(1)
|
|
4280
4440
|
], ZoomToolbarButtonSettings.prototype, "opacity", void 0);
|
|
4281
|
-
__decorate
|
|
4441
|
+
__decorate([
|
|
4282
4442
|
Property(['ZoomIn', 'ZoomOut', 'Reset'])
|
|
4283
4443
|
], ZoomToolbarButtonSettings.prototype, "toolbarItems", void 0);
|
|
4284
4444
|
/**
|
|
@@ -4286,37 +4446,37 @@ __decorate$1([
|
|
|
4286
4446
|
*/
|
|
4287
4447
|
class ZoomToolbarTooltipSettings extends ChildProperty {
|
|
4288
4448
|
}
|
|
4289
|
-
__decorate
|
|
4449
|
+
__decorate([
|
|
4290
4450
|
Property(true)
|
|
4291
4451
|
], ZoomToolbarTooltipSettings.prototype, "visible", void 0);
|
|
4292
|
-
__decorate
|
|
4452
|
+
__decorate([
|
|
4293
4453
|
Property('white')
|
|
4294
4454
|
], ZoomToolbarTooltipSettings.prototype, "fill", void 0);
|
|
4295
|
-
__decorate
|
|
4455
|
+
__decorate([
|
|
4296
4456
|
Property(1)
|
|
4297
4457
|
], ZoomToolbarTooltipSettings.prototype, "borderOpacity", void 0);
|
|
4298
|
-
__decorate
|
|
4458
|
+
__decorate([
|
|
4299
4459
|
Property(1)
|
|
4300
4460
|
], ZoomToolbarTooltipSettings.prototype, "borderWidth", void 0);
|
|
4301
|
-
__decorate
|
|
4461
|
+
__decorate([
|
|
4302
4462
|
Property('#707070')
|
|
4303
4463
|
], ZoomToolbarTooltipSettings.prototype, "borderColor", void 0);
|
|
4304
|
-
__decorate
|
|
4464
|
+
__decorate([
|
|
4305
4465
|
Property('black')
|
|
4306
4466
|
], ZoomToolbarTooltipSettings.prototype, "fontColor", void 0);
|
|
4307
|
-
__decorate
|
|
4467
|
+
__decorate([
|
|
4308
4468
|
Property('')
|
|
4309
4469
|
], ZoomToolbarTooltipSettings.prototype, "fontFamily", void 0);
|
|
4310
|
-
__decorate
|
|
4470
|
+
__decorate([
|
|
4311
4471
|
Property('')
|
|
4312
4472
|
], ZoomToolbarTooltipSettings.prototype, "fontStyle", void 0);
|
|
4313
|
-
__decorate
|
|
4473
|
+
__decorate([
|
|
4314
4474
|
Property('')
|
|
4315
4475
|
], ZoomToolbarTooltipSettings.prototype, "fontWeight", void 0);
|
|
4316
|
-
__decorate
|
|
4476
|
+
__decorate([
|
|
4317
4477
|
Property('')
|
|
4318
4478
|
], ZoomToolbarTooltipSettings.prototype, "fontSize", void 0);
|
|
4319
|
-
__decorate
|
|
4479
|
+
__decorate([
|
|
4320
4480
|
Property(1)
|
|
4321
4481
|
], ZoomToolbarTooltipSettings.prototype, "fontOpacity", void 0);
|
|
4322
4482
|
/**
|
|
@@ -4324,31 +4484,31 @@ __decorate$1([
|
|
|
4324
4484
|
*/
|
|
4325
4485
|
class ZoomToolbarSettings extends ChildProperty {
|
|
4326
4486
|
}
|
|
4327
|
-
__decorate
|
|
4487
|
+
__decorate([
|
|
4328
4488
|
Property('transparent')
|
|
4329
4489
|
], ZoomToolbarSettings.prototype, "backgroundColor", void 0);
|
|
4330
|
-
__decorate
|
|
4490
|
+
__decorate([
|
|
4331
4491
|
Property(1)
|
|
4332
4492
|
], ZoomToolbarSettings.prototype, "borderOpacity", void 0);
|
|
4333
|
-
__decorate
|
|
4493
|
+
__decorate([
|
|
4334
4494
|
Property(1)
|
|
4335
4495
|
], ZoomToolbarSettings.prototype, "borderWidth", void 0);
|
|
4336
|
-
__decorate
|
|
4496
|
+
__decorate([
|
|
4337
4497
|
Property('transparent')
|
|
4338
4498
|
], ZoomToolbarSettings.prototype, "borderColor", void 0);
|
|
4339
|
-
__decorate
|
|
4499
|
+
__decorate([
|
|
4340
4500
|
Property('Far')
|
|
4341
4501
|
], ZoomToolbarSettings.prototype, "horizontalAlignment", void 0);
|
|
4342
|
-
__decorate
|
|
4502
|
+
__decorate([
|
|
4343
4503
|
Property('Near')
|
|
4344
4504
|
], ZoomToolbarSettings.prototype, "verticalAlignment", void 0);
|
|
4345
|
-
__decorate
|
|
4505
|
+
__decorate([
|
|
4346
4506
|
Property('Horizontal')
|
|
4347
4507
|
], ZoomToolbarSettings.prototype, "orientation", void 0);
|
|
4348
|
-
__decorate
|
|
4508
|
+
__decorate([
|
|
4349
4509
|
Complex({}, ZoomToolbarButtonSettings)
|
|
4350
4510
|
], ZoomToolbarSettings.prototype, "buttonSettings", void 0);
|
|
4351
|
-
__decorate
|
|
4511
|
+
__decorate([
|
|
4352
4512
|
Complex({}, ZoomToolbarTooltipSettings)
|
|
4353
4513
|
], ZoomToolbarSettings.prototype, "tooltipSettings", void 0);
|
|
4354
4514
|
/**
|
|
@@ -4356,13 +4516,13 @@ __decorate$1([
|
|
|
4356
4516
|
*/
|
|
4357
4517
|
class Border extends ChildProperty {
|
|
4358
4518
|
}
|
|
4359
|
-
__decorate
|
|
4519
|
+
__decorate([
|
|
4360
4520
|
Property('')
|
|
4361
4521
|
], Border.prototype, "color", void 0);
|
|
4362
|
-
__decorate
|
|
4522
|
+
__decorate([
|
|
4363
4523
|
Property(0)
|
|
4364
4524
|
], Border.prototype, "width", void 0);
|
|
4365
|
-
__decorate
|
|
4525
|
+
__decorate([
|
|
4366
4526
|
Property(null)
|
|
4367
4527
|
], Border.prototype, "opacity", void 0);
|
|
4368
4528
|
/**
|
|
@@ -4370,10 +4530,10 @@ __decorate$1([
|
|
|
4370
4530
|
*/
|
|
4371
4531
|
class CenterPosition extends ChildProperty {
|
|
4372
4532
|
}
|
|
4373
|
-
__decorate
|
|
4533
|
+
__decorate([
|
|
4374
4534
|
Property(null)
|
|
4375
4535
|
], CenterPosition.prototype, "latitude", void 0);
|
|
4376
|
-
__decorate
|
|
4536
|
+
__decorate([
|
|
4377
4537
|
Property(null)
|
|
4378
4538
|
], CenterPosition.prototype, "longitude", void 0);
|
|
4379
4539
|
/**
|
|
@@ -4381,28 +4541,28 @@ __decorate$1([
|
|
|
4381
4541
|
*/
|
|
4382
4542
|
class TooltipSettings extends ChildProperty {
|
|
4383
4543
|
}
|
|
4384
|
-
__decorate
|
|
4544
|
+
__decorate([
|
|
4385
4545
|
Property(false)
|
|
4386
4546
|
], TooltipSettings.prototype, "visible", void 0);
|
|
4387
|
-
__decorate
|
|
4547
|
+
__decorate([
|
|
4388
4548
|
Property('')
|
|
4389
4549
|
], TooltipSettings.prototype, "template", void 0);
|
|
4390
|
-
__decorate
|
|
4550
|
+
__decorate([
|
|
4391
4551
|
Property('')
|
|
4392
4552
|
], TooltipSettings.prototype, "fill", void 0);
|
|
4393
|
-
__decorate
|
|
4394
|
-
Complex({ color:
|
|
4553
|
+
__decorate([
|
|
4554
|
+
Complex({ color: null, width: 1 }, Border)
|
|
4395
4555
|
], TooltipSettings.prototype, "border", void 0);
|
|
4396
|
-
__decorate
|
|
4556
|
+
__decorate([
|
|
4397
4557
|
Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
|
|
4398
4558
|
], TooltipSettings.prototype, "textStyle", void 0);
|
|
4399
|
-
__decorate
|
|
4559
|
+
__decorate([
|
|
4400
4560
|
Property(null)
|
|
4401
4561
|
], TooltipSettings.prototype, "format", void 0);
|
|
4402
|
-
__decorate
|
|
4562
|
+
__decorate([
|
|
4403
4563
|
Property(null)
|
|
4404
4564
|
], TooltipSettings.prototype, "valuePath", void 0);
|
|
4405
|
-
__decorate
|
|
4565
|
+
__decorate([
|
|
4406
4566
|
Property(2000)
|
|
4407
4567
|
], TooltipSettings.prototype, "duration", void 0);
|
|
4408
4568
|
/**
|
|
@@ -4410,19 +4570,19 @@ __decorate$1([
|
|
|
4410
4570
|
*/
|
|
4411
4571
|
class PolygonTooltipSettings extends ChildProperty {
|
|
4412
4572
|
}
|
|
4413
|
-
__decorate
|
|
4573
|
+
__decorate([
|
|
4414
4574
|
Property(false)
|
|
4415
4575
|
], PolygonTooltipSettings.prototype, "visible", void 0);
|
|
4416
|
-
__decorate
|
|
4576
|
+
__decorate([
|
|
4417
4577
|
Property('')
|
|
4418
4578
|
], PolygonTooltipSettings.prototype, "fill", void 0);
|
|
4419
|
-
__decorate
|
|
4420
|
-
Complex({ color:
|
|
4579
|
+
__decorate([
|
|
4580
|
+
Complex({ color: null, width: 1 }, Border)
|
|
4421
4581
|
], PolygonTooltipSettings.prototype, "border", void 0);
|
|
4422
|
-
__decorate
|
|
4582
|
+
__decorate([
|
|
4423
4583
|
Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
|
|
4424
4584
|
], PolygonTooltipSettings.prototype, "textStyle", void 0);
|
|
4425
|
-
__decorate
|
|
4585
|
+
__decorate([
|
|
4426
4586
|
Property(2000)
|
|
4427
4587
|
], PolygonTooltipSettings.prototype, "duration", void 0);
|
|
4428
4588
|
/**
|
|
@@ -4430,16 +4590,16 @@ __decorate$1([
|
|
|
4430
4590
|
*/
|
|
4431
4591
|
class Margin extends ChildProperty {
|
|
4432
4592
|
}
|
|
4433
|
-
__decorate
|
|
4593
|
+
__decorate([
|
|
4434
4594
|
Property(10)
|
|
4435
4595
|
], Margin.prototype, "left", void 0);
|
|
4436
|
-
__decorate
|
|
4596
|
+
__decorate([
|
|
4437
4597
|
Property(10)
|
|
4438
4598
|
], Margin.prototype, "right", void 0);
|
|
4439
|
-
__decorate
|
|
4599
|
+
__decorate([
|
|
4440
4600
|
Property(10)
|
|
4441
4601
|
], Margin.prototype, "top", void 0);
|
|
4442
|
-
__decorate
|
|
4602
|
+
__decorate([
|
|
4443
4603
|
Property(10)
|
|
4444
4604
|
], Margin.prototype, "bottom", void 0);
|
|
4445
4605
|
/**
|
|
@@ -4447,13 +4607,13 @@ __decorate$1([
|
|
|
4447
4607
|
*/
|
|
4448
4608
|
class ConnectorLineSettings extends ChildProperty {
|
|
4449
4609
|
}
|
|
4450
|
-
__decorate
|
|
4610
|
+
__decorate([
|
|
4451
4611
|
Property('#000000')
|
|
4452
4612
|
], ConnectorLineSettings.prototype, "color", void 0);
|
|
4453
|
-
__decorate
|
|
4613
|
+
__decorate([
|
|
4454
4614
|
Property(1)
|
|
4455
4615
|
], ConnectorLineSettings.prototype, "width", void 0);
|
|
4456
|
-
__decorate
|
|
4616
|
+
__decorate([
|
|
4457
4617
|
Property(1)
|
|
4458
4618
|
], ConnectorLineSettings.prototype, "opacity", void 0);
|
|
4459
4619
|
/**
|
|
@@ -4461,46 +4621,46 @@ __decorate$1([
|
|
|
4461
4621
|
*/
|
|
4462
4622
|
class MarkerClusterSettings extends ChildProperty {
|
|
4463
4623
|
}
|
|
4464
|
-
__decorate
|
|
4624
|
+
__decorate([
|
|
4465
4625
|
Property(false)
|
|
4466
4626
|
], MarkerClusterSettings.prototype, "allowClustering", void 0);
|
|
4467
|
-
__decorate
|
|
4627
|
+
__decorate([
|
|
4468
4628
|
Property(true)
|
|
4469
4629
|
], MarkerClusterSettings.prototype, "allowDeepClustering", void 0);
|
|
4470
|
-
__decorate
|
|
4630
|
+
__decorate([
|
|
4471
4631
|
Complex({ color: 'transparent', width: 1 }, Border)
|
|
4472
4632
|
], MarkerClusterSettings.prototype, "border", void 0);
|
|
4473
|
-
__decorate
|
|
4633
|
+
__decorate([
|
|
4474
4634
|
Property('#D2691E')
|
|
4475
4635
|
], MarkerClusterSettings.prototype, "fill", void 0);
|
|
4476
|
-
__decorate
|
|
4636
|
+
__decorate([
|
|
4477
4637
|
Property(1)
|
|
4478
4638
|
], MarkerClusterSettings.prototype, "opacity", void 0);
|
|
4479
|
-
__decorate
|
|
4639
|
+
__decorate([
|
|
4480
4640
|
Property('Rectangle')
|
|
4481
4641
|
], MarkerClusterSettings.prototype, "shape", void 0);
|
|
4482
|
-
__decorate
|
|
4642
|
+
__decorate([
|
|
4483
4643
|
Property(12)
|
|
4484
4644
|
], MarkerClusterSettings.prototype, "width", void 0);
|
|
4485
|
-
__decorate
|
|
4645
|
+
__decorate([
|
|
4486
4646
|
Property(12)
|
|
4487
4647
|
], MarkerClusterSettings.prototype, "height", void 0);
|
|
4488
|
-
__decorate
|
|
4648
|
+
__decorate([
|
|
4489
4649
|
Property(new Point(0, 0))
|
|
4490
4650
|
], MarkerClusterSettings.prototype, "offset", void 0);
|
|
4491
|
-
__decorate
|
|
4651
|
+
__decorate([
|
|
4492
4652
|
Property('')
|
|
4493
4653
|
], MarkerClusterSettings.prototype, "imageUrl", void 0);
|
|
4494
|
-
__decorate
|
|
4654
|
+
__decorate([
|
|
4495
4655
|
Property('')
|
|
4496
4656
|
], MarkerClusterSettings.prototype, "dashArray", void 0);
|
|
4497
|
-
__decorate
|
|
4657
|
+
__decorate([
|
|
4498
4658
|
Complex({}, Font)
|
|
4499
4659
|
], MarkerClusterSettings.prototype, "labelStyle", void 0);
|
|
4500
|
-
__decorate
|
|
4660
|
+
__decorate([
|
|
4501
4661
|
Property(false)
|
|
4502
4662
|
], MarkerClusterSettings.prototype, "allowClusterExpand", void 0);
|
|
4503
|
-
__decorate
|
|
4663
|
+
__decorate([
|
|
4504
4664
|
Complex({}, ConnectorLineSettings)
|
|
4505
4665
|
], MarkerClusterSettings.prototype, "connectorLineSettings", void 0);
|
|
4506
4666
|
/**
|
|
@@ -4513,28 +4673,28 @@ class MarkerClusterData extends ChildProperty {
|
|
|
4513
4673
|
*/
|
|
4514
4674
|
class ColorMappingSettings extends ChildProperty {
|
|
4515
4675
|
}
|
|
4516
|
-
__decorate
|
|
4676
|
+
__decorate([
|
|
4517
4677
|
Property(null)
|
|
4518
4678
|
], ColorMappingSettings.prototype, "from", void 0);
|
|
4519
|
-
__decorate
|
|
4679
|
+
__decorate([
|
|
4520
4680
|
Property(null)
|
|
4521
4681
|
], ColorMappingSettings.prototype, "to", void 0);
|
|
4522
|
-
__decorate
|
|
4682
|
+
__decorate([
|
|
4523
4683
|
Property(null)
|
|
4524
4684
|
], ColorMappingSettings.prototype, "value", void 0);
|
|
4525
|
-
__decorate
|
|
4685
|
+
__decorate([
|
|
4526
4686
|
Property(null)
|
|
4527
4687
|
], ColorMappingSettings.prototype, "color", void 0);
|
|
4528
|
-
__decorate
|
|
4688
|
+
__decorate([
|
|
4529
4689
|
Property(null)
|
|
4530
4690
|
], ColorMappingSettings.prototype, "minOpacity", void 0);
|
|
4531
|
-
__decorate
|
|
4691
|
+
__decorate([
|
|
4532
4692
|
Property(null)
|
|
4533
4693
|
], ColorMappingSettings.prototype, "maxOpacity", void 0);
|
|
4534
|
-
__decorate
|
|
4694
|
+
__decorate([
|
|
4535
4695
|
Property(null)
|
|
4536
4696
|
], ColorMappingSettings.prototype, "label", void 0);
|
|
4537
|
-
__decorate
|
|
4697
|
+
__decorate([
|
|
4538
4698
|
Property(true)
|
|
4539
4699
|
], ColorMappingSettings.prototype, "showLegend", void 0);
|
|
4540
4700
|
/**
|
|
@@ -4543,10 +4703,10 @@ __decorate$1([
|
|
|
4543
4703
|
*/
|
|
4544
4704
|
class InitialMarkerSelectionSettings extends ChildProperty {
|
|
4545
4705
|
}
|
|
4546
|
-
__decorate
|
|
4706
|
+
__decorate([
|
|
4547
4707
|
Property(null)
|
|
4548
4708
|
], InitialMarkerSelectionSettings.prototype, "latitude", void 0);
|
|
4549
|
-
__decorate
|
|
4709
|
+
__decorate([
|
|
4550
4710
|
Property(null)
|
|
4551
4711
|
], InitialMarkerSelectionSettings.prototype, "longitude", void 0);
|
|
4552
4712
|
/**
|
|
@@ -4555,10 +4715,10 @@ __decorate$1([
|
|
|
4555
4715
|
*/
|
|
4556
4716
|
class InitialShapeSelectionSettings extends ChildProperty {
|
|
4557
4717
|
}
|
|
4558
|
-
__decorate
|
|
4718
|
+
__decorate([
|
|
4559
4719
|
Property(null)
|
|
4560
4720
|
], InitialShapeSelectionSettings.prototype, "shapePath", void 0);
|
|
4561
|
-
__decorate
|
|
4721
|
+
__decorate([
|
|
4562
4722
|
Property(null)
|
|
4563
4723
|
], InitialShapeSelectionSettings.prototype, "shapeValue", void 0);
|
|
4564
4724
|
/**
|
|
@@ -4566,19 +4726,19 @@ __decorate$1([
|
|
|
4566
4726
|
*/
|
|
4567
4727
|
class SelectionSettings extends ChildProperty {
|
|
4568
4728
|
}
|
|
4569
|
-
__decorate
|
|
4729
|
+
__decorate([
|
|
4570
4730
|
Property(false)
|
|
4571
4731
|
], SelectionSettings.prototype, "enable", void 0);
|
|
4572
|
-
__decorate
|
|
4732
|
+
__decorate([
|
|
4573
4733
|
Property(null)
|
|
4574
4734
|
], SelectionSettings.prototype, "fill", void 0);
|
|
4575
|
-
__decorate
|
|
4735
|
+
__decorate([
|
|
4576
4736
|
Property(1)
|
|
4577
4737
|
], SelectionSettings.prototype, "opacity", void 0);
|
|
4578
|
-
__decorate
|
|
4738
|
+
__decorate([
|
|
4579
4739
|
Property(false)
|
|
4580
4740
|
], SelectionSettings.prototype, "enableMultiSelect", void 0);
|
|
4581
|
-
__decorate
|
|
4741
|
+
__decorate([
|
|
4582
4742
|
Complex({ color: 'transparent', width: 0 }, Border)
|
|
4583
4743
|
], SelectionSettings.prototype, "border", void 0);
|
|
4584
4744
|
/**
|
|
@@ -4586,16 +4746,16 @@ __decorate$1([
|
|
|
4586
4746
|
*/
|
|
4587
4747
|
class HighlightSettings extends ChildProperty {
|
|
4588
4748
|
}
|
|
4589
|
-
__decorate
|
|
4749
|
+
__decorate([
|
|
4590
4750
|
Property(null)
|
|
4591
4751
|
], HighlightSettings.prototype, "fill", void 0);
|
|
4592
|
-
__decorate
|
|
4752
|
+
__decorate([
|
|
4593
4753
|
Property(false)
|
|
4594
4754
|
], HighlightSettings.prototype, "enable", void 0);
|
|
4595
|
-
__decorate
|
|
4755
|
+
__decorate([
|
|
4596
4756
|
Property(1)
|
|
4597
4757
|
], HighlightSettings.prototype, "opacity", void 0);
|
|
4598
|
-
__decorate
|
|
4758
|
+
__decorate([
|
|
4599
4759
|
Complex({ color: 'transparent', width: 0 }, Border)
|
|
4600
4760
|
], HighlightSettings.prototype, "border", void 0);
|
|
4601
4761
|
/**
|
|
@@ -4603,28 +4763,28 @@ __decorate$1([
|
|
|
4603
4763
|
*/
|
|
4604
4764
|
class PolygonSetting extends ChildProperty {
|
|
4605
4765
|
}
|
|
4606
|
-
__decorate
|
|
4766
|
+
__decorate([
|
|
4607
4767
|
Property(1)
|
|
4608
4768
|
], PolygonSetting.prototype, "borderWidth", void 0);
|
|
4609
|
-
__decorate
|
|
4769
|
+
__decorate([
|
|
4610
4770
|
Property(1)
|
|
4611
4771
|
], PolygonSetting.prototype, "borderOpacity", void 0);
|
|
4612
|
-
__decorate
|
|
4772
|
+
__decorate([
|
|
4613
4773
|
Property(1)
|
|
4614
4774
|
], PolygonSetting.prototype, "opacity", void 0);
|
|
4615
|
-
__decorate
|
|
4775
|
+
__decorate([
|
|
4616
4776
|
Property('#FF471A')
|
|
4617
4777
|
], PolygonSetting.prototype, "borderColor", void 0);
|
|
4618
|
-
__decorate
|
|
4778
|
+
__decorate([
|
|
4619
4779
|
Property('#FF471A')
|
|
4620
4780
|
], PolygonSetting.prototype, "fill", void 0);
|
|
4621
|
-
__decorate
|
|
4781
|
+
__decorate([
|
|
4622
4782
|
Property([])
|
|
4623
4783
|
], PolygonSetting.prototype, "points", void 0);
|
|
4624
|
-
__decorate
|
|
4784
|
+
__decorate([
|
|
4625
4785
|
Property('')
|
|
4626
4786
|
], PolygonSetting.prototype, "tooltipText", void 0);
|
|
4627
|
-
__decorate
|
|
4787
|
+
__decorate([
|
|
4628
4788
|
Property('')
|
|
4629
4789
|
], PolygonSetting.prototype, "tooltipTemplate", void 0);
|
|
4630
4790
|
/**
|
|
@@ -4633,16 +4793,16 @@ __decorate$1([
|
|
|
4633
4793
|
*/
|
|
4634
4794
|
class PolygonSettings extends ChildProperty {
|
|
4635
4795
|
}
|
|
4636
|
-
__decorate
|
|
4796
|
+
__decorate([
|
|
4637
4797
|
Collection([], PolygonSetting)
|
|
4638
4798
|
], PolygonSettings.prototype, "polygons", void 0);
|
|
4639
|
-
__decorate
|
|
4799
|
+
__decorate([
|
|
4640
4800
|
Complex({}, SelectionSettings)
|
|
4641
4801
|
], PolygonSettings.prototype, "selectionSettings", void 0);
|
|
4642
|
-
__decorate
|
|
4802
|
+
__decorate([
|
|
4643
4803
|
Complex({}, HighlightSettings)
|
|
4644
4804
|
], PolygonSettings.prototype, "highlightSettings", void 0);
|
|
4645
|
-
__decorate
|
|
4805
|
+
__decorate([
|
|
4646
4806
|
Complex({}, PolygonTooltipSettings)
|
|
4647
4807
|
], PolygonSettings.prototype, "tooltipSettings", void 0);
|
|
4648
4808
|
/**
|
|
@@ -4650,34 +4810,34 @@ __decorate$1([
|
|
|
4650
4810
|
*/
|
|
4651
4811
|
class NavigationLineSettings extends ChildProperty {
|
|
4652
4812
|
}
|
|
4653
|
-
__decorate
|
|
4813
|
+
__decorate([
|
|
4654
4814
|
Property(false)
|
|
4655
4815
|
], NavigationLineSettings.prototype, "visible", void 0);
|
|
4656
|
-
__decorate
|
|
4816
|
+
__decorate([
|
|
4657
4817
|
Property(1)
|
|
4658
4818
|
], NavigationLineSettings.prototype, "width", void 0);
|
|
4659
|
-
__decorate
|
|
4819
|
+
__decorate([
|
|
4660
4820
|
Property(null)
|
|
4661
4821
|
], NavigationLineSettings.prototype, "longitude", void 0);
|
|
4662
|
-
__decorate
|
|
4822
|
+
__decorate([
|
|
4663
4823
|
Property(null)
|
|
4664
4824
|
], NavigationLineSettings.prototype, "latitude", void 0);
|
|
4665
|
-
__decorate
|
|
4825
|
+
__decorate([
|
|
4666
4826
|
Property('')
|
|
4667
4827
|
], NavigationLineSettings.prototype, "dashArray", void 0);
|
|
4668
|
-
__decorate
|
|
4828
|
+
__decorate([
|
|
4669
4829
|
Property('black')
|
|
4670
4830
|
], NavigationLineSettings.prototype, "color", void 0);
|
|
4671
|
-
__decorate
|
|
4831
|
+
__decorate([
|
|
4672
4832
|
Property(0)
|
|
4673
4833
|
], NavigationLineSettings.prototype, "angle", void 0);
|
|
4674
|
-
__decorate
|
|
4834
|
+
__decorate([
|
|
4675
4835
|
Complex({ showArrow: false, position: 'Start', size: 5, color: 'black' }, Arrow)
|
|
4676
4836
|
], NavigationLineSettings.prototype, "arrowSettings", void 0);
|
|
4677
|
-
__decorate
|
|
4837
|
+
__decorate([
|
|
4678
4838
|
Complex({}, SelectionSettings)
|
|
4679
4839
|
], NavigationLineSettings.prototype, "selectionSettings", void 0);
|
|
4680
|
-
__decorate
|
|
4840
|
+
__decorate([
|
|
4681
4841
|
Complex({}, HighlightSettings)
|
|
4682
4842
|
], NavigationLineSettings.prototype, "highlightSettings", void 0);
|
|
4683
4843
|
/**
|
|
@@ -4685,55 +4845,55 @@ __decorate$1([
|
|
|
4685
4845
|
*/
|
|
4686
4846
|
class BubbleSettings extends ChildProperty {
|
|
4687
4847
|
}
|
|
4688
|
-
__decorate
|
|
4848
|
+
__decorate([
|
|
4689
4849
|
Complex({}, Border)
|
|
4690
4850
|
], BubbleSettings.prototype, "border", void 0);
|
|
4691
|
-
__decorate
|
|
4851
|
+
__decorate([
|
|
4692
4852
|
Property(false)
|
|
4693
4853
|
], BubbleSettings.prototype, "visible", void 0);
|
|
4694
|
-
__decorate
|
|
4854
|
+
__decorate([
|
|
4695
4855
|
Property([])
|
|
4696
4856
|
], BubbleSettings.prototype, "dataSource", void 0);
|
|
4697
|
-
__decorate
|
|
4857
|
+
__decorate([
|
|
4698
4858
|
Property()
|
|
4699
4859
|
], BubbleSettings.prototype, "query", void 0);
|
|
4700
|
-
__decorate
|
|
4860
|
+
__decorate([
|
|
4701
4861
|
Property(1000)
|
|
4702
4862
|
], BubbleSettings.prototype, "animationDuration", void 0);
|
|
4703
|
-
__decorate
|
|
4863
|
+
__decorate([
|
|
4704
4864
|
Property(0)
|
|
4705
4865
|
], BubbleSettings.prototype, "animationDelay", void 0);
|
|
4706
|
-
__decorate
|
|
4866
|
+
__decorate([
|
|
4707
4867
|
Property('')
|
|
4708
4868
|
], BubbleSettings.prototype, "fill", void 0);
|
|
4709
|
-
__decorate
|
|
4869
|
+
__decorate([
|
|
4710
4870
|
Property(10)
|
|
4711
4871
|
], BubbleSettings.prototype, "minRadius", void 0);
|
|
4712
|
-
__decorate
|
|
4872
|
+
__decorate([
|
|
4713
4873
|
Property(20)
|
|
4714
4874
|
], BubbleSettings.prototype, "maxRadius", void 0);
|
|
4715
|
-
__decorate
|
|
4875
|
+
__decorate([
|
|
4716
4876
|
Property(1)
|
|
4717
4877
|
], BubbleSettings.prototype, "opacity", void 0);
|
|
4718
|
-
__decorate
|
|
4878
|
+
__decorate([
|
|
4719
4879
|
Property(null)
|
|
4720
4880
|
], BubbleSettings.prototype, "valuePath", void 0);
|
|
4721
|
-
__decorate
|
|
4881
|
+
__decorate([
|
|
4722
4882
|
Property('Circle')
|
|
4723
4883
|
], BubbleSettings.prototype, "bubbleType", void 0);
|
|
4724
|
-
__decorate
|
|
4884
|
+
__decorate([
|
|
4725
4885
|
Property(null)
|
|
4726
4886
|
], BubbleSettings.prototype, "colorValuePath", void 0);
|
|
4727
|
-
__decorate
|
|
4887
|
+
__decorate([
|
|
4728
4888
|
Collection([], ColorMappingSettings)
|
|
4729
4889
|
], BubbleSettings.prototype, "colorMapping", void 0);
|
|
4730
|
-
__decorate
|
|
4890
|
+
__decorate([
|
|
4731
4891
|
Complex({}, TooltipSettings)
|
|
4732
4892
|
], BubbleSettings.prototype, "tooltipSettings", void 0);
|
|
4733
|
-
__decorate
|
|
4893
|
+
__decorate([
|
|
4734
4894
|
Complex({}, SelectionSettings)
|
|
4735
4895
|
], BubbleSettings.prototype, "selectionSettings", void 0);
|
|
4736
|
-
__decorate
|
|
4896
|
+
__decorate([
|
|
4737
4897
|
Complex({}, HighlightSettings)
|
|
4738
4898
|
], BubbleSettings.prototype, "highlightSettings", void 0);
|
|
4739
4899
|
/**
|
|
@@ -4741,10 +4901,10 @@ __decorate$1([
|
|
|
4741
4901
|
*/
|
|
4742
4902
|
class CommonTitleSettings extends ChildProperty {
|
|
4743
4903
|
}
|
|
4744
|
-
__decorate
|
|
4904
|
+
__decorate([
|
|
4745
4905
|
Property('')
|
|
4746
4906
|
], CommonTitleSettings.prototype, "text", void 0);
|
|
4747
|
-
__decorate
|
|
4907
|
+
__decorate([
|
|
4748
4908
|
Property('')
|
|
4749
4909
|
], CommonTitleSettings.prototype, "description", void 0);
|
|
4750
4910
|
/**
|
|
@@ -4752,10 +4912,10 @@ __decorate$1([
|
|
|
4752
4912
|
*/
|
|
4753
4913
|
class SubTitleSettings extends CommonTitleSettings {
|
|
4754
4914
|
}
|
|
4755
|
-
__decorate
|
|
4915
|
+
__decorate([
|
|
4756
4916
|
Complex({ size: null, fontWeight: null, fontFamily: null }, Font)
|
|
4757
4917
|
], SubTitleSettings.prototype, "textStyle", void 0);
|
|
4758
|
-
__decorate
|
|
4918
|
+
__decorate([
|
|
4759
4919
|
Property('Center')
|
|
4760
4920
|
], SubTitleSettings.prototype, "alignment", void 0);
|
|
4761
4921
|
/**
|
|
@@ -4763,13 +4923,13 @@ __decorate$1([
|
|
|
4763
4923
|
*/
|
|
4764
4924
|
class TitleSettings extends CommonTitleSettings {
|
|
4765
4925
|
}
|
|
4766
|
-
__decorate
|
|
4926
|
+
__decorate([
|
|
4767
4927
|
Complex({ size: null, fontWeight: null, fontFamily: null }, Font)
|
|
4768
4928
|
], TitleSettings.prototype, "textStyle", void 0);
|
|
4769
|
-
__decorate
|
|
4929
|
+
__decorate([
|
|
4770
4930
|
Property('Center')
|
|
4771
4931
|
], TitleSettings.prototype, "alignment", void 0);
|
|
4772
|
-
__decorate
|
|
4932
|
+
__decorate([
|
|
4773
4933
|
Complex({}, SubTitleSettings)
|
|
4774
4934
|
], TitleSettings.prototype, "subtitleSettings", void 0);
|
|
4775
4935
|
/**
|
|
@@ -4777,64 +4937,43 @@ __decorate$1([
|
|
|
4777
4937
|
*/
|
|
4778
4938
|
class ZoomSettings extends ChildProperty {
|
|
4779
4939
|
}
|
|
4780
|
-
__decorate
|
|
4940
|
+
__decorate([
|
|
4781
4941
|
Property(false)
|
|
4782
4942
|
], ZoomSettings.prototype, "enable", void 0);
|
|
4783
|
-
__decorate
|
|
4943
|
+
__decorate([
|
|
4784
4944
|
Property(true)
|
|
4785
4945
|
], ZoomSettings.prototype, "enablePanning", void 0);
|
|
4786
|
-
__decorate
|
|
4946
|
+
__decorate([
|
|
4787
4947
|
Property(true)
|
|
4788
4948
|
], ZoomSettings.prototype, "enableSelectionZooming", void 0);
|
|
4789
|
-
__decorate
|
|
4790
|
-
Property('Horizontal')
|
|
4791
|
-
], ZoomSettings.prototype, "toolBarOrientation", void 0);
|
|
4792
|
-
__decorate$1([
|
|
4793
|
-
Property(null)
|
|
4794
|
-
], ZoomSettings.prototype, "color", void 0);
|
|
4795
|
-
__decorate$1([
|
|
4796
|
-
Property(null)
|
|
4797
|
-
], ZoomSettings.prototype, "highlightColor", void 0);
|
|
4798
|
-
__decorate$1([
|
|
4799
|
-
Property(null)
|
|
4800
|
-
], ZoomSettings.prototype, "selectionColor", void 0);
|
|
4801
|
-
__decorate$1([
|
|
4802
|
-
Property('Far')
|
|
4803
|
-
], ZoomSettings.prototype, "horizontalAlignment", void 0);
|
|
4804
|
-
__decorate$1([
|
|
4805
|
-
Property('Near')
|
|
4806
|
-
], ZoomSettings.prototype, "verticalAlignment", void 0);
|
|
4807
|
-
__decorate$1([
|
|
4808
|
-
Property(['ZoomIn', 'ZoomOut', 'Reset'])
|
|
4809
|
-
], ZoomSettings.prototype, "toolbars", void 0);
|
|
4810
|
-
__decorate$1([
|
|
4949
|
+
__decorate([
|
|
4811
4950
|
Property(true)
|
|
4812
4951
|
], ZoomSettings.prototype, "mouseWheelZoom", void 0);
|
|
4813
|
-
__decorate
|
|
4952
|
+
__decorate([
|
|
4814
4953
|
Property(false)
|
|
4815
4954
|
], ZoomSettings.prototype, "doubleClickZoom", void 0);
|
|
4816
|
-
__decorate
|
|
4955
|
+
__decorate([
|
|
4817
4956
|
Property(true)
|
|
4818
4957
|
], ZoomSettings.prototype, "pinchZooming", void 0);
|
|
4819
|
-
__decorate
|
|
4958
|
+
__decorate([
|
|
4820
4959
|
Property(false)
|
|
4821
4960
|
], ZoomSettings.prototype, "zoomOnClick", void 0);
|
|
4822
|
-
__decorate
|
|
4961
|
+
__decorate([
|
|
4823
4962
|
Property(1)
|
|
4824
4963
|
], ZoomSettings.prototype, "zoomFactor", void 0);
|
|
4825
|
-
__decorate
|
|
4964
|
+
__decorate([
|
|
4826
4965
|
Property(10)
|
|
4827
4966
|
], ZoomSettings.prototype, "maxZoom", void 0);
|
|
4828
|
-
__decorate
|
|
4967
|
+
__decorate([
|
|
4829
4968
|
Property(1)
|
|
4830
4969
|
], ZoomSettings.prototype, "minZoom", void 0);
|
|
4831
|
-
__decorate
|
|
4970
|
+
__decorate([
|
|
4832
4971
|
Property(false)
|
|
4833
4972
|
], ZoomSettings.prototype, "shouldZoomInitially", void 0);
|
|
4834
|
-
__decorate
|
|
4973
|
+
__decorate([
|
|
4835
4974
|
Property(true)
|
|
4836
4975
|
], ZoomSettings.prototype, "resetToInitial", void 0);
|
|
4837
|
-
__decorate
|
|
4976
|
+
__decorate([
|
|
4838
4977
|
Complex({}, ZoomToolbarSettings)
|
|
4839
4978
|
], ZoomSettings.prototype, "toolbarSettings", void 0);
|
|
4840
4979
|
/**
|
|
@@ -4842,19 +4981,19 @@ __decorate$1([
|
|
|
4842
4981
|
*/
|
|
4843
4982
|
class ToggleLegendSettings extends ChildProperty {
|
|
4844
4983
|
}
|
|
4845
|
-
__decorate
|
|
4984
|
+
__decorate([
|
|
4846
4985
|
Property(false)
|
|
4847
4986
|
], ToggleLegendSettings.prototype, "enable", void 0);
|
|
4848
|
-
__decorate
|
|
4987
|
+
__decorate([
|
|
4849
4988
|
Property(true)
|
|
4850
4989
|
], ToggleLegendSettings.prototype, "applyShapeSettings", void 0);
|
|
4851
|
-
__decorate
|
|
4990
|
+
__decorate([
|
|
4852
4991
|
Property(1)
|
|
4853
4992
|
], ToggleLegendSettings.prototype, "opacity", void 0);
|
|
4854
|
-
__decorate
|
|
4993
|
+
__decorate([
|
|
4855
4994
|
Property('')
|
|
4856
4995
|
], ToggleLegendSettings.prototype, "fill", void 0);
|
|
4857
|
-
__decorate
|
|
4996
|
+
__decorate([
|
|
4858
4997
|
Complex({ color: '', width: 0 }, Border)
|
|
4859
4998
|
], ToggleLegendSettings.prototype, "border", void 0);
|
|
4860
4999
|
/**
|
|
@@ -4862,94 +5001,94 @@ __decorate$1([
|
|
|
4862
5001
|
*/
|
|
4863
5002
|
class LegendSettings extends ChildProperty {
|
|
4864
5003
|
}
|
|
4865
|
-
__decorate
|
|
5004
|
+
__decorate([
|
|
4866
5005
|
Property(false)
|
|
4867
5006
|
], LegendSettings.prototype, "useMarkerShape", void 0);
|
|
4868
|
-
__decorate
|
|
5007
|
+
__decorate([
|
|
4869
5008
|
Property(false)
|
|
4870
5009
|
], LegendSettings.prototype, "toggleVisibility", void 0);
|
|
4871
|
-
__decorate
|
|
5010
|
+
__decorate([
|
|
4872
5011
|
Property(false)
|
|
4873
5012
|
], LegendSettings.prototype, "visible", void 0);
|
|
4874
|
-
__decorate
|
|
5013
|
+
__decorate([
|
|
4875
5014
|
Property('transparent')
|
|
4876
5015
|
], LegendSettings.prototype, "background", void 0);
|
|
4877
|
-
__decorate
|
|
5016
|
+
__decorate([
|
|
4878
5017
|
Property('Layers')
|
|
4879
5018
|
], LegendSettings.prototype, "type", void 0);
|
|
4880
|
-
__decorate
|
|
5019
|
+
__decorate([
|
|
4881
5020
|
Property(false)
|
|
4882
5021
|
], LegendSettings.prototype, "invertedPointer", void 0);
|
|
4883
|
-
__decorate
|
|
5022
|
+
__decorate([
|
|
4884
5023
|
Property('After')
|
|
4885
5024
|
], LegendSettings.prototype, "labelPosition", void 0);
|
|
4886
|
-
__decorate
|
|
5025
|
+
__decorate([
|
|
4887
5026
|
Property('None')
|
|
4888
5027
|
], LegendSettings.prototype, "labelDisplayMode", void 0);
|
|
4889
|
-
__decorate
|
|
5028
|
+
__decorate([
|
|
4890
5029
|
Property('Circle')
|
|
4891
5030
|
], LegendSettings.prototype, "shape", void 0);
|
|
4892
|
-
__decorate
|
|
5031
|
+
__decorate([
|
|
4893
5032
|
Property('')
|
|
4894
5033
|
], LegendSettings.prototype, "width", void 0);
|
|
4895
|
-
__decorate
|
|
5034
|
+
__decorate([
|
|
4896
5035
|
Property('')
|
|
4897
5036
|
], LegendSettings.prototype, "height", void 0);
|
|
4898
|
-
__decorate
|
|
5037
|
+
__decorate([
|
|
4899
5038
|
Complex({ fontFamily: null, fontWeight: null }, Font)
|
|
4900
5039
|
], LegendSettings.prototype, "textStyle", void 0);
|
|
4901
|
-
__decorate
|
|
5040
|
+
__decorate([
|
|
4902
5041
|
Property(15)
|
|
4903
5042
|
], LegendSettings.prototype, "shapeWidth", void 0);
|
|
4904
|
-
__decorate
|
|
5043
|
+
__decorate([
|
|
4905
5044
|
Property(15)
|
|
4906
5045
|
], LegendSettings.prototype, "shapeHeight", void 0);
|
|
4907
|
-
__decorate
|
|
5046
|
+
__decorate([
|
|
4908
5047
|
Property(10)
|
|
4909
5048
|
], LegendSettings.prototype, "shapePadding", void 0);
|
|
4910
|
-
__decorate
|
|
4911
|
-
Complex({ color:
|
|
5049
|
+
__decorate([
|
|
5050
|
+
Complex({ color: null, width: 0 }, Border)
|
|
4912
5051
|
], LegendSettings.prototype, "border", void 0);
|
|
4913
|
-
__decorate
|
|
5052
|
+
__decorate([
|
|
4914
5053
|
Complex({ color: '#000000', width: 0 }, Border)
|
|
4915
5054
|
], LegendSettings.prototype, "shapeBorder", void 0);
|
|
4916
|
-
__decorate
|
|
5055
|
+
__decorate([
|
|
4917
5056
|
Complex({}, CommonTitleSettings)
|
|
4918
5057
|
], LegendSettings.prototype, "title", void 0);
|
|
4919
|
-
__decorate
|
|
5058
|
+
__decorate([
|
|
4920
5059
|
Complex({ size: null, color: Theme.legendTitleFont.color, fontStyle: Theme.legendTitleFont.fontStyle, fontWeight: null, fontFamily: null }, Font)
|
|
4921
5060
|
], LegendSettings.prototype, "titleStyle", void 0);
|
|
4922
|
-
__decorate
|
|
5061
|
+
__decorate([
|
|
4923
5062
|
Property('Bottom')
|
|
4924
5063
|
], LegendSettings.prototype, "position", void 0);
|
|
4925
|
-
__decorate
|
|
5064
|
+
__decorate([
|
|
4926
5065
|
Property('Center')
|
|
4927
5066
|
], LegendSettings.prototype, "alignment", void 0);
|
|
4928
|
-
__decorate
|
|
5067
|
+
__decorate([
|
|
4929
5068
|
Property('None')
|
|
4930
5069
|
], LegendSettings.prototype, "orientation", void 0);
|
|
4931
|
-
__decorate
|
|
5070
|
+
__decorate([
|
|
4932
5071
|
Property({ x: 0, y: 0 })
|
|
4933
5072
|
], LegendSettings.prototype, "location", void 0);
|
|
4934
|
-
__decorate
|
|
5073
|
+
__decorate([
|
|
4935
5074
|
Property(null)
|
|
4936
5075
|
], LegendSettings.prototype, "fill", void 0);
|
|
4937
|
-
__decorate
|
|
5076
|
+
__decorate([
|
|
4938
5077
|
Property(1)
|
|
4939
5078
|
], LegendSettings.prototype, "opacity", void 0);
|
|
4940
|
-
__decorate
|
|
5079
|
+
__decorate([
|
|
4941
5080
|
Property('Default')
|
|
4942
5081
|
], LegendSettings.prototype, "mode", void 0);
|
|
4943
|
-
__decorate
|
|
5082
|
+
__decorate([
|
|
4944
5083
|
Property(null)
|
|
4945
5084
|
], LegendSettings.prototype, "showLegendPath", void 0);
|
|
4946
|
-
__decorate
|
|
5085
|
+
__decorate([
|
|
4947
5086
|
Property(null)
|
|
4948
5087
|
], LegendSettings.prototype, "valuePath", void 0);
|
|
4949
|
-
__decorate
|
|
5088
|
+
__decorate([
|
|
4950
5089
|
Property(false)
|
|
4951
5090
|
], LegendSettings.prototype, "removeDuplicateLegend", void 0);
|
|
4952
|
-
__decorate
|
|
5091
|
+
__decorate([
|
|
4953
5092
|
Complex({}, ToggleLegendSettings)
|
|
4954
5093
|
], LegendSettings.prototype, "toggleLegendSettings", void 0);
|
|
4955
5094
|
/**
|
|
@@ -4957,40 +5096,40 @@ __decorate$1([
|
|
|
4957
5096
|
*/
|
|
4958
5097
|
class DataLabelSettings extends ChildProperty {
|
|
4959
5098
|
}
|
|
4960
|
-
__decorate
|
|
5099
|
+
__decorate([
|
|
4961
5100
|
Property(false)
|
|
4962
5101
|
], DataLabelSettings.prototype, "visible", void 0);
|
|
4963
|
-
__decorate
|
|
5102
|
+
__decorate([
|
|
4964
5103
|
Complex({ width: 0, color: 'transparent' }, Border)
|
|
4965
5104
|
], DataLabelSettings.prototype, "border", void 0);
|
|
4966
|
-
__decorate
|
|
5105
|
+
__decorate([
|
|
4967
5106
|
Property('black')
|
|
4968
5107
|
], DataLabelSettings.prototype, "fill", void 0);
|
|
4969
|
-
__decorate
|
|
5108
|
+
__decorate([
|
|
4970
5109
|
Property(1)
|
|
4971
5110
|
], DataLabelSettings.prototype, "opacity", void 0);
|
|
4972
|
-
__decorate
|
|
5111
|
+
__decorate([
|
|
4973
5112
|
Property(5)
|
|
4974
5113
|
], DataLabelSettings.prototype, "rx", void 0);
|
|
4975
|
-
__decorate
|
|
5114
|
+
__decorate([
|
|
4976
5115
|
Property(5)
|
|
4977
5116
|
], DataLabelSettings.prototype, "ry", void 0);
|
|
4978
|
-
__decorate
|
|
5117
|
+
__decorate([
|
|
4979
5118
|
Complex({ fontWeight: null }, Font)
|
|
4980
5119
|
], DataLabelSettings.prototype, "textStyle", void 0);
|
|
4981
|
-
__decorate
|
|
5120
|
+
__decorate([
|
|
4982
5121
|
Property('')
|
|
4983
5122
|
], DataLabelSettings.prototype, "labelPath", void 0);
|
|
4984
|
-
__decorate
|
|
5123
|
+
__decorate([
|
|
4985
5124
|
Property('None')
|
|
4986
5125
|
], DataLabelSettings.prototype, "smartLabelMode", void 0);
|
|
4987
|
-
__decorate
|
|
5126
|
+
__decorate([
|
|
4988
5127
|
Property('None')
|
|
4989
5128
|
], DataLabelSettings.prototype, "intersectionAction", void 0);
|
|
4990
|
-
__decorate
|
|
5129
|
+
__decorate([
|
|
4991
5130
|
Property('')
|
|
4992
5131
|
], DataLabelSettings.prototype, "template", void 0);
|
|
4993
|
-
__decorate
|
|
5132
|
+
__decorate([
|
|
4994
5133
|
Property(0)
|
|
4995
5134
|
], DataLabelSettings.prototype, "animationDuration", void 0);
|
|
4996
5135
|
/**
|
|
@@ -4998,40 +5137,40 @@ __decorate$1([
|
|
|
4998
5137
|
*/
|
|
4999
5138
|
class ShapeSettings extends ChildProperty {
|
|
5000
5139
|
}
|
|
5001
|
-
__decorate
|
|
5140
|
+
__decorate([
|
|
5002
5141
|
Property(null)
|
|
5003
5142
|
], ShapeSettings.prototype, "fill", void 0);
|
|
5004
|
-
__decorate
|
|
5143
|
+
__decorate([
|
|
5005
5144
|
Property([])
|
|
5006
5145
|
], ShapeSettings.prototype, "palette", void 0);
|
|
5007
|
-
__decorate
|
|
5146
|
+
__decorate([
|
|
5008
5147
|
Property(5)
|
|
5009
5148
|
], ShapeSettings.prototype, "circleRadius", void 0);
|
|
5010
|
-
__decorate
|
|
5011
|
-
Complex({ width: null, color:
|
|
5149
|
+
__decorate([
|
|
5150
|
+
Complex({ width: null, color: null }, Border)
|
|
5012
5151
|
], ShapeSettings.prototype, "border", void 0);
|
|
5013
|
-
__decorate
|
|
5152
|
+
__decorate([
|
|
5014
5153
|
Property('')
|
|
5015
5154
|
], ShapeSettings.prototype, "dashArray", void 0);
|
|
5016
|
-
__decorate
|
|
5155
|
+
__decorate([
|
|
5017
5156
|
Property(1)
|
|
5018
5157
|
], ShapeSettings.prototype, "opacity", void 0);
|
|
5019
|
-
__decorate
|
|
5158
|
+
__decorate([
|
|
5020
5159
|
Property(null)
|
|
5021
5160
|
], ShapeSettings.prototype, "colorValuePath", void 0);
|
|
5022
|
-
__decorate
|
|
5161
|
+
__decorate([
|
|
5023
5162
|
Property(null)
|
|
5024
5163
|
], ShapeSettings.prototype, "borderColorValuePath", void 0);
|
|
5025
|
-
__decorate
|
|
5164
|
+
__decorate([
|
|
5026
5165
|
Property(null)
|
|
5027
5166
|
], ShapeSettings.prototype, "borderWidthValuePath", void 0);
|
|
5028
|
-
__decorate
|
|
5167
|
+
__decorate([
|
|
5029
5168
|
Property(null)
|
|
5030
5169
|
], ShapeSettings.prototype, "valuePath", void 0);
|
|
5031
|
-
__decorate
|
|
5170
|
+
__decorate([
|
|
5032
5171
|
Collection([], ColorMappingSettings)
|
|
5033
5172
|
], ShapeSettings.prototype, "colorMapping", void 0);
|
|
5034
|
-
__decorate
|
|
5173
|
+
__decorate([
|
|
5035
5174
|
Property(false)
|
|
5036
5175
|
], ShapeSettings.prototype, "autofill", void 0);
|
|
5037
5176
|
/**
|
|
@@ -5039,82 +5178,82 @@ __decorate$1([
|
|
|
5039
5178
|
*/
|
|
5040
5179
|
class MarkerBase extends ChildProperty {
|
|
5041
5180
|
}
|
|
5042
|
-
__decorate
|
|
5181
|
+
__decorate([
|
|
5043
5182
|
Complex({ color: 'transparent', width: 1 }, Border)
|
|
5044
5183
|
], MarkerBase.prototype, "border", void 0);
|
|
5045
|
-
__decorate
|
|
5184
|
+
__decorate([
|
|
5046
5185
|
Property(null)
|
|
5047
5186
|
], MarkerBase.prototype, "dashArray", void 0);
|
|
5048
|
-
__decorate
|
|
5187
|
+
__decorate([
|
|
5049
5188
|
Property(false)
|
|
5050
5189
|
], MarkerBase.prototype, "visible", void 0);
|
|
5051
|
-
__decorate
|
|
5190
|
+
__decorate([
|
|
5052
5191
|
Property(false)
|
|
5053
5192
|
], MarkerBase.prototype, "enableDrag", void 0);
|
|
5054
|
-
__decorate
|
|
5193
|
+
__decorate([
|
|
5055
5194
|
Property('#FF471A')
|
|
5056
5195
|
], MarkerBase.prototype, "fill", void 0);
|
|
5057
|
-
__decorate
|
|
5196
|
+
__decorate([
|
|
5058
5197
|
Property(10)
|
|
5059
5198
|
], MarkerBase.prototype, "height", void 0);
|
|
5060
|
-
__decorate
|
|
5199
|
+
__decorate([
|
|
5061
5200
|
Property(10)
|
|
5062
5201
|
], MarkerBase.prototype, "width", void 0);
|
|
5063
|
-
__decorate
|
|
5202
|
+
__decorate([
|
|
5064
5203
|
Property(1)
|
|
5065
5204
|
], MarkerBase.prototype, "opacity", void 0);
|
|
5066
|
-
__decorate
|
|
5205
|
+
__decorate([
|
|
5067
5206
|
Property(null)
|
|
5068
5207
|
], MarkerBase.prototype, "colorValuePath", void 0);
|
|
5069
|
-
__decorate
|
|
5208
|
+
__decorate([
|
|
5070
5209
|
Property(null)
|
|
5071
5210
|
], MarkerBase.prototype, "shapeValuePath", void 0);
|
|
5072
|
-
__decorate
|
|
5211
|
+
__decorate([
|
|
5073
5212
|
Property(null)
|
|
5074
5213
|
], MarkerBase.prototype, "imageUrlValuePath", void 0);
|
|
5075
|
-
__decorate
|
|
5214
|
+
__decorate([
|
|
5076
5215
|
Property('Balloon')
|
|
5077
5216
|
], MarkerBase.prototype, "shape", void 0);
|
|
5078
|
-
__decorate
|
|
5217
|
+
__decorate([
|
|
5079
5218
|
Property('')
|
|
5080
5219
|
], MarkerBase.prototype, "legendText", void 0);
|
|
5081
|
-
__decorate
|
|
5220
|
+
__decorate([
|
|
5082
5221
|
Property(new Point(0, 0))
|
|
5083
5222
|
], MarkerBase.prototype, "offset", void 0);
|
|
5084
|
-
__decorate
|
|
5223
|
+
__decorate([
|
|
5085
5224
|
Property('')
|
|
5086
5225
|
], MarkerBase.prototype, "imageUrl", void 0);
|
|
5087
|
-
__decorate
|
|
5226
|
+
__decorate([
|
|
5088
5227
|
Property(null)
|
|
5089
5228
|
], MarkerBase.prototype, "template", void 0);
|
|
5090
|
-
__decorate
|
|
5229
|
+
__decorate([
|
|
5091
5230
|
Property([])
|
|
5092
5231
|
], MarkerBase.prototype, "dataSource", void 0);
|
|
5093
|
-
__decorate
|
|
5232
|
+
__decorate([
|
|
5094
5233
|
Property()
|
|
5095
5234
|
], MarkerBase.prototype, "query", void 0);
|
|
5096
|
-
__decorate
|
|
5235
|
+
__decorate([
|
|
5097
5236
|
Complex({}, TooltipSettings)
|
|
5098
5237
|
], MarkerBase.prototype, "tooltipSettings", void 0);
|
|
5099
|
-
__decorate
|
|
5238
|
+
__decorate([
|
|
5100
5239
|
Property(1000)
|
|
5101
5240
|
], MarkerBase.prototype, "animationDuration", void 0);
|
|
5102
|
-
__decorate
|
|
5241
|
+
__decorate([
|
|
5103
5242
|
Property(0)
|
|
5104
5243
|
], MarkerBase.prototype, "animationDelay", void 0);
|
|
5105
|
-
__decorate
|
|
5244
|
+
__decorate([
|
|
5106
5245
|
Complex({}, SelectionSettings)
|
|
5107
5246
|
], MarkerBase.prototype, "selectionSettings", void 0);
|
|
5108
|
-
__decorate
|
|
5247
|
+
__decorate([
|
|
5109
5248
|
Complex({}, HighlightSettings)
|
|
5110
5249
|
], MarkerBase.prototype, "highlightSettings", void 0);
|
|
5111
|
-
__decorate
|
|
5250
|
+
__decorate([
|
|
5112
5251
|
Property(null)
|
|
5113
5252
|
], MarkerBase.prototype, "latitudeValuePath", void 0);
|
|
5114
|
-
__decorate
|
|
5253
|
+
__decorate([
|
|
5115
5254
|
Property(null)
|
|
5116
5255
|
], MarkerBase.prototype, "longitudeValuePath", void 0);
|
|
5117
|
-
__decorate
|
|
5256
|
+
__decorate([
|
|
5118
5257
|
Collection([], InitialMarkerSelectionSettings)
|
|
5119
5258
|
], MarkerBase.prototype, "initialMarkerSelection", void 0);
|
|
5120
5259
|
/**
|
|
@@ -5138,82 +5277,70 @@ class LayerSettings extends ChildProperty {
|
|
|
5138
5277
|
this.isBaseLayer = false;
|
|
5139
5278
|
}
|
|
5140
5279
|
}
|
|
5141
|
-
__decorate
|
|
5280
|
+
__decorate([
|
|
5142
5281
|
Property(null)
|
|
5143
5282
|
], LayerSettings.prototype, "shapeData", void 0);
|
|
5144
|
-
__decorate
|
|
5283
|
+
__decorate([
|
|
5145
5284
|
Property()
|
|
5146
5285
|
], LayerSettings.prototype, "query", void 0);
|
|
5147
|
-
__decorate
|
|
5286
|
+
__decorate([
|
|
5148
5287
|
Complex({}, ShapeSettings)
|
|
5149
5288
|
], LayerSettings.prototype, "shapeSettings", void 0);
|
|
5150
|
-
__decorate
|
|
5289
|
+
__decorate([
|
|
5151
5290
|
Property([])
|
|
5152
5291
|
], LayerSettings.prototype, "dataSource", void 0);
|
|
5153
|
-
__decorate
|
|
5292
|
+
__decorate([
|
|
5154
5293
|
Property('Layer')
|
|
5155
5294
|
], LayerSettings.prototype, "type", void 0);
|
|
5156
|
-
__decorate
|
|
5295
|
+
__decorate([
|
|
5157
5296
|
Property('Geographic')
|
|
5158
5297
|
], LayerSettings.prototype, "geometryType", void 0);
|
|
5159
|
-
__decorate
|
|
5160
|
-
Property('Aerial')
|
|
5161
|
-
], LayerSettings.prototype, "bingMapType", void 0);
|
|
5162
|
-
__decorate$1([
|
|
5163
|
-
Property('RoadMap')
|
|
5164
|
-
], LayerSettings.prototype, "staticMapType", void 0);
|
|
5165
|
-
__decorate$1([
|
|
5166
|
-
Property('')
|
|
5167
|
-
], LayerSettings.prototype, "key", void 0);
|
|
5168
|
-
__decorate$1([
|
|
5169
|
-
Property('Geometry')
|
|
5170
|
-
], LayerSettings.prototype, "layerType", void 0);
|
|
5171
|
-
__decorate$1([
|
|
5298
|
+
__decorate([
|
|
5172
5299
|
Property('')
|
|
5173
5300
|
], LayerSettings.prototype, "urlTemplate", void 0);
|
|
5174
|
-
__decorate
|
|
5301
|
+
__decorate([
|
|
5175
5302
|
Property(true)
|
|
5176
5303
|
], LayerSettings.prototype, "visible", void 0);
|
|
5177
|
-
__decorate
|
|
5304
|
+
__decorate([
|
|
5178
5305
|
Property('name')
|
|
5179
5306
|
], LayerSettings.prototype, "shapeDataPath", void 0);
|
|
5180
|
-
__decorate
|
|
5307
|
+
__decorate([
|
|
5181
5308
|
Property('name')
|
|
5182
5309
|
], LayerSettings.prototype, "shapePropertyPath", void 0);
|
|
5183
|
-
__decorate
|
|
5310
|
+
__decorate([
|
|
5184
5311
|
Property(0)
|
|
5185
5312
|
], LayerSettings.prototype, "animationDuration", void 0);
|
|
5186
|
-
__decorate
|
|
5313
|
+
__decorate([
|
|
5187
5314
|
Collection([], MarkerSettings)
|
|
5188
5315
|
], LayerSettings.prototype, "markerSettings", void 0);
|
|
5189
|
-
__decorate
|
|
5316
|
+
__decorate([
|
|
5190
5317
|
Complex({}, MarkerClusterSettings)
|
|
5191
5318
|
], LayerSettings.prototype, "markerClusterSettings", void 0);
|
|
5192
|
-
__decorate
|
|
5319
|
+
__decorate([
|
|
5193
5320
|
Complex({}, DataLabelSettings)
|
|
5194
5321
|
], LayerSettings.prototype, "dataLabelSettings", void 0);
|
|
5195
|
-
__decorate
|
|
5322
|
+
__decorate([
|
|
5196
5323
|
Collection([], BubbleSettings)
|
|
5197
5324
|
], LayerSettings.prototype, "bubbleSettings", void 0);
|
|
5198
|
-
__decorate
|
|
5325
|
+
__decorate([
|
|
5199
5326
|
Collection([], NavigationLineSettings)
|
|
5200
5327
|
], LayerSettings.prototype, "navigationLineSettings", void 0);
|
|
5201
|
-
__decorate
|
|
5328
|
+
__decorate([
|
|
5202
5329
|
Complex({}, PolygonSettings)
|
|
5203
5330
|
], LayerSettings.prototype, "polygonSettings", void 0);
|
|
5204
|
-
__decorate
|
|
5331
|
+
__decorate([
|
|
5205
5332
|
Complex({}, TooltipSettings)
|
|
5206
5333
|
], LayerSettings.prototype, "tooltipSettings", void 0);
|
|
5207
|
-
__decorate
|
|
5334
|
+
__decorate([
|
|
5208
5335
|
Complex({}, SelectionSettings)
|
|
5209
5336
|
], LayerSettings.prototype, "selectionSettings", void 0);
|
|
5210
|
-
__decorate
|
|
5337
|
+
__decorate([
|
|
5211
5338
|
Complex({}, HighlightSettings)
|
|
5212
5339
|
], LayerSettings.prototype, "highlightSettings", void 0);
|
|
5213
|
-
__decorate
|
|
5340
|
+
__decorate([
|
|
5214
5341
|
Complex({}, ToggleLegendSettings)
|
|
5215
5342
|
], LayerSettings.prototype, "toggleLegendSettings", void 0);
|
|
5216
|
-
__decorate
|
|
5343
|
+
__decorate([
|
|
5217
5344
|
Collection([], InitialShapeSelectionSettings)
|
|
5218
5345
|
], LayerSettings.prototype, "initialShapeSelection", void 0);
|
|
5219
5346
|
/**
|
|
@@ -5235,10 +5362,10 @@ class Tile {
|
|
|
5235
5362
|
*/
|
|
5236
5363
|
class MapsAreaSettings extends ChildProperty {
|
|
5237
5364
|
}
|
|
5238
|
-
__decorate
|
|
5365
|
+
__decorate([
|
|
5239
5366
|
Property(null)
|
|
5240
5367
|
], MapsAreaSettings.prototype, "background", void 0);
|
|
5241
|
-
__decorate
|
|
5368
|
+
__decorate([
|
|
5242
5369
|
Complex({ color: 'transparent', width: 1 }, Border)
|
|
5243
5370
|
], MapsAreaSettings.prototype, "border", void 0);
|
|
5244
5371
|
|
|
@@ -5763,19 +5890,10 @@ class LayerPanel {
|
|
|
5763
5890
|
id: this.mapObject.element.id + '_Layer_Collections',
|
|
5764
5891
|
'clip-path': 'url(#' + this.mapObject.element.id + '_MapArea_ClipRect)'
|
|
5765
5892
|
}));
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
width: staticMapSize, height: areaRect.height
|
|
5771
|
-
}));
|
|
5772
|
-
}
|
|
5773
|
-
else {
|
|
5774
|
-
this.clipRectElement = this.mapObject.renderer.drawClipPath(new RectOption(this.mapObject.element.id + '_MapArea_ClipRect', 'transparent', { width: 1, color: 'Gray' }, 1, {
|
|
5775
|
-
x: this.mapObject.isTileMap ? 0 : areaRect.x, y: this.mapObject.isTileMap ? 0 : areaRect.y,
|
|
5776
|
-
width: areaRect.width, height: areaRect.height
|
|
5777
|
-
}));
|
|
5778
|
-
}
|
|
5893
|
+
this.clipRectElement = this.mapObject.renderer.drawClipPath(new RectOption(this.mapObject.element.id + '_MapArea_ClipRect', 'transparent', { width: 1, color: 'Gray' }, 1, {
|
|
5894
|
+
x: this.mapObject.isTileMap ? 0 : areaRect.x, y: this.mapObject.isTileMap ? 0 : areaRect.y,
|
|
5895
|
+
width: areaRect.width, height: areaRect.height
|
|
5896
|
+
}));
|
|
5779
5897
|
this.layerGroup.appendChild(this.clipRectElement);
|
|
5780
5898
|
this.mapObject.baseMapBounds = null;
|
|
5781
5899
|
this.mapObject.baseMapRectBounds = null;
|
|
@@ -5909,8 +6027,7 @@ class LayerPanel {
|
|
|
5909
6027
|
&& this.mapObject.availableSize.height > 512) {
|
|
5910
6028
|
this.mapObject.applyZoomReset = true;
|
|
5911
6029
|
this.mapObject.initialZoomLevel = Math.floor(this.mapObject.availableSize.height / 512);
|
|
5912
|
-
const padding =
|
|
5913
|
-
20 : 0;
|
|
6030
|
+
const padding = 20;
|
|
5914
6031
|
const totalSize = Math.pow(2, this.mapObject.initialZoomLevel) * 256;
|
|
5915
6032
|
if (!isNullOrUndefined(this.mapObject.initialTileTranslate)) {
|
|
5916
6033
|
this.mapObject.initialTileTranslate.x = (this.mapObject.availableSize.width / 2) - (totalSize / 2);
|
|
@@ -5967,55 +6084,13 @@ class LayerPanel {
|
|
|
5967
6084
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5968
6085
|
this.mapObject.trigger('layerRendering', eventArgs, (observedArgs) => {
|
|
5969
6086
|
if (!eventArgs.cancel && eventArgs.visible) {
|
|
5970
|
-
if (layer.
|
|
5971
|
-
layer.urlTemplate
|
|
5972
|
-
}
|
|
5973
|
-
if (layer.layerType === 'Google') {
|
|
5974
|
-
layer.urlTemplate = 'https://mt1.google.com/vt/lyrs=m@129&hl=en&x=tileX&y=tileY&z=level';
|
|
5975
|
-
}
|
|
5976
|
-
if (layer.layerType !== 'Geometry' || (isNullOrUndefined(layer.shapeData) && !isNullOrUndefined(layer.urlTemplate) && layer.urlTemplate !== '')) {
|
|
5977
|
-
if (layer.layerType !== 'Bing' || this.bing) {
|
|
5978
|
-
if (!isNullOrUndefined(layer.urlTemplate) && layer.urlTemplate.indexOf('quadkey') > -1) {
|
|
5979
|
-
const bing = new BingMap(this.mapObject);
|
|
5980
|
-
this.bingMapCalculation(layer, layerIndex, this, bing);
|
|
5981
|
-
}
|
|
5982
|
-
else {
|
|
5983
|
-
this.renderTileLayer(this, layer, layerIndex);
|
|
5984
|
-
}
|
|
5985
|
-
}
|
|
5986
|
-
else if (layer.key && layer.key.length > 1) {
|
|
5987
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
5988
|
-
const proxy = this;
|
|
6087
|
+
if ((isNullOrUndefined(layer.shapeData) && !isNullOrUndefined(layer.urlTemplate) && layer.urlTemplate !== '')) {
|
|
6088
|
+
if (!isNullOrUndefined(layer.urlTemplate) && layer.urlTemplate.indexOf('quadkey') > -1) {
|
|
5989
6089
|
const bing = new BingMap(this.mapObject);
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
});
|
|
5995
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5996
|
-
ajax.onSuccess = (json) => {
|
|
5997
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5998
|
-
const resource = json['resourceSets'][0]['resources'][0];
|
|
5999
|
-
const imageUrl = resource['imageUrl'];
|
|
6000
|
-
const subDomains = resource['imageUrlSubdomains'];
|
|
6001
|
-
const maxZoom = resource['zoomMax'];
|
|
6002
|
-
if (imageUrl !== null && imageUrl !== undefined && imageUrl !== bing.imageUrl) {
|
|
6003
|
-
bing.imageUrl = imageUrl;
|
|
6004
|
-
}
|
|
6005
|
-
if (subDomains !== null && subDomains !== undefined && subDomains !== bing.subDomains) {
|
|
6006
|
-
bing.subDomains = subDomains;
|
|
6007
|
-
}
|
|
6008
|
-
if (maxZoom !== null && maxZoom !== undefined && maxZoom !== bing.maxZoom) {
|
|
6009
|
-
bing.maxZoom = maxZoom;
|
|
6010
|
-
}
|
|
6011
|
-
proxy.mapObject['bingMap'] = bing;
|
|
6012
|
-
proxy.renderTileLayer(proxy, layer, layerIndex, bing);
|
|
6013
|
-
this.mapObject.arrangeTemplate();
|
|
6014
|
-
if (this.mapObject.zoomModule && (this.mapObject.previousScale !== this.mapObject.scale)) {
|
|
6015
|
-
this.mapObject.zoomModule.applyTransform(this.mapObject, true);
|
|
6016
|
-
}
|
|
6017
|
-
};
|
|
6018
|
-
ajax.send();
|
|
6090
|
+
this.bingMapCalculation(layer, layerIndex, this, bing);
|
|
6091
|
+
}
|
|
6092
|
+
else {
|
|
6093
|
+
this.renderTileLayer(this, layer, layerIndex);
|
|
6019
6094
|
}
|
|
6020
6095
|
}
|
|
6021
6096
|
else {
|
|
@@ -6122,7 +6197,7 @@ class LayerPanel {
|
|
|
6122
6197
|
for (let i = 0; i < this.currentLayer.layerData.length; i++) {
|
|
6123
6198
|
let k;
|
|
6124
6199
|
const borderValue = {
|
|
6125
|
-
color: shapeSettings.border.color,
|
|
6200
|
+
color: shapeSettings.border.color || this.mapObject.themeStyle.shapeBorderColor,
|
|
6126
6201
|
width: shapeSettings.border.width,
|
|
6127
6202
|
opacity: shapeSettings.border.opacity
|
|
6128
6203
|
};
|
|
@@ -6154,9 +6229,9 @@ class LayerPanel {
|
|
|
6154
6229
|
}
|
|
6155
6230
|
const shapeID = this.mapObject.element.id + '_LayerIndex_' + layerIndex + '_shapeIndex_' + i + '_dataIndex_' + k;
|
|
6156
6231
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6157
|
-
const getShapeColor
|
|
6158
|
-
fill = Object.prototype.toString.call(getShapeColor
|
|
6159
|
-
? getShapeColor
|
|
6232
|
+
const getShapeColor = this.getShapeColorMapping(this.currentLayer, currentShapeData['property'], fill);
|
|
6233
|
+
fill = Object.prototype.toString.call(getShapeColor) === '[object Object]' && !isNullOrUndefined(getShapeColor['fill'])
|
|
6234
|
+
? getShapeColor['fill'] : fill;
|
|
6160
6235
|
if (this.currentLayer.shapeSettings.borderColorValuePath || this.currentLayer.shapeSettings.borderWidthValuePath) {
|
|
6161
6236
|
k = checkShapeDataFields(
|
|
6162
6237
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -6170,8 +6245,8 @@ class LayerPanel {
|
|
|
6170
6245
|
}
|
|
6171
6246
|
}
|
|
6172
6247
|
}
|
|
6173
|
-
const opacity = (Object.prototype.toString.call(getShapeColor
|
|
6174
|
-
&& !isNullOrUndefined(getShapeColor
|
|
6248
|
+
const opacity = (Object.prototype.toString.call(getShapeColor) === '[object Object]'
|
|
6249
|
+
&& !isNullOrUndefined(getShapeColor['opacity'])) ? getShapeColor['opacity'] : shapeSettings.opacity;
|
|
6175
6250
|
const eventArgs = {
|
|
6176
6251
|
cancel: false, name: shapeRendering, index: i,
|
|
6177
6252
|
data: this.currentLayer.dataSource ? this.currentLayer.dataSource[k] : null,
|
|
@@ -6187,21 +6262,20 @@ class LayerPanel {
|
|
|
6187
6262
|
if (!eventArgs.cancel) {
|
|
6188
6263
|
eventArgs.fill = eventArgs.fill === '#A6A6A6' ? eventArgs.shape.fill ||
|
|
6189
6264
|
this.mapObject.themeStyle.shapeFill : eventArgs.fill;
|
|
6190
|
-
eventArgs.border.color = eventArgs.border.color === '
|
|
6265
|
+
eventArgs.border.color = eventArgs.border.color === 'transparent' ?
|
|
6191
6266
|
eventArgs.shape.border.color : eventArgs.border.color;
|
|
6192
6267
|
eventArgs.border.width = eventArgs.border.width === 0 ? eventArgs.shape.border.width : eventArgs.border.width;
|
|
6193
6268
|
if (isNullOrUndefined(shapeSettings.borderColorValuePath)) {
|
|
6194
|
-
|
|
6269
|
+
borderValue.color = eventArgs.border.color;
|
|
6195
6270
|
}
|
|
6196
6271
|
if (isNullOrUndefined(shapeSettings.borderWidthValuePath)) {
|
|
6197
|
-
|
|
6272
|
+
borderValue.width = eventArgs.border.width;
|
|
6198
6273
|
}
|
|
6199
6274
|
}
|
|
6200
6275
|
else {
|
|
6201
6276
|
eventArgs.fill = fill;
|
|
6202
|
-
eventArgs.border.color = shapeSettings.border.color;
|
|
6277
|
+
eventArgs.border.color = shapeSettings.border.color || this.mapObject.themeStyle.shapeBorderColor;
|
|
6203
6278
|
eventArgs.border.width = shapeSettings.border.width;
|
|
6204
|
-
this.mapObject.layers[layerIndex].shapeSettings.border = shapeSettings.border;
|
|
6205
6279
|
}
|
|
6206
6280
|
eventArgs.border.opacity = isNullOrUndefined(eventArgs.border.opacity) ? opacity : eventArgs.border.opacity;
|
|
6207
6281
|
if (this.groupElements.length < 1) {
|
|
@@ -6393,10 +6467,12 @@ class LayerPanel {
|
|
|
6393
6467
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6394
6468
|
const bubbleDataSource = bubble.dataSource;
|
|
6395
6469
|
this.mapObject.bubbleModule.bubbleCollection = [];
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6470
|
+
if (!isNullOrUndefined(bubbleDataSource) && bubbleDataSource.length > 0) {
|
|
6471
|
+
bubbleDataSource.map((bubbleData, i) => {
|
|
6472
|
+
this.renderBubble(this.currentLayer, bubbleData, colors[i % colors.length], range, j, i, bubbleG, layerIndex, bubble);
|
|
6473
|
+
});
|
|
6474
|
+
this.groupElements.push(bubbleG);
|
|
6475
|
+
}
|
|
6400
6476
|
}
|
|
6401
6477
|
}
|
|
6402
6478
|
if ((this.mapObject.markerModule && !this.mapObject.isTileMap) && this.mapObject.zoomSettings.enable) {
|
|
@@ -6418,9 +6494,13 @@ class LayerPanel {
|
|
|
6418
6494
|
if (this.mapObject.navigationLineModule) {
|
|
6419
6495
|
this.groupElements.push(this.mapObject.navigationLineModule.renderNavigation(this.currentLayer, this.currentFactor, layerIndex));
|
|
6420
6496
|
}
|
|
6421
|
-
this.groupElements.
|
|
6422
|
-
this.
|
|
6423
|
-
|
|
6497
|
+
if (!isNullOrUndefined(this.groupElements) && !isNullOrUndefined(this.layerObject)) {
|
|
6498
|
+
this.groupElements.map((element) => {
|
|
6499
|
+
if (!isNullOrUndefined(element)) {
|
|
6500
|
+
this.layerObject.appendChild(element);
|
|
6501
|
+
}
|
|
6502
|
+
});
|
|
6503
|
+
}
|
|
6424
6504
|
if (this.mapObject.markerModule) {
|
|
6425
6505
|
this.mapObject.markerModule.markerRender(this.mapObject, this.layerObject, layerIndex, (this.mapObject.isTileMap ? Math.floor(this.currentFactor) :
|
|
6426
6506
|
this.currentFactor), null);
|
|
@@ -6509,9 +6589,9 @@ class LayerPanel {
|
|
|
6509
6589
|
return color;
|
|
6510
6590
|
}
|
|
6511
6591
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6512
|
-
const index = checkShapeDataFields(layer.dataSource, shape, layer.shapeDataPath, layer.shapePropertyPath
|
|
6592
|
+
const index = checkShapeDataFields(layer.dataSource, shape, layer.shapeDataPath, layer.shapePropertyPath);
|
|
6513
6593
|
const colorMapping = new ColorMapping(this.mapObject);
|
|
6514
|
-
if (isNullOrUndefined(layer.dataSource[index])) {
|
|
6594
|
+
if (isNullOrUndefined(layer.dataSource) || isNullOrUndefined(layer.dataSource[index])) {
|
|
6515
6595
|
return color;
|
|
6516
6596
|
}
|
|
6517
6597
|
return colorMapping.getShapeColorMapping(layer.shapeSettings, layer.dataSource[index], color);
|
|
@@ -6689,15 +6769,15 @@ class LayerPanel {
|
|
|
6689
6769
|
if (!isNullOrUndefined(this.mapObject.baseMapRectBounds)) {
|
|
6690
6770
|
const duration = animationMode === 'Disable' ? 0 : (this.currentLayer.animationDuration === 0 && animationMode === 'Enable') ?
|
|
6691
6771
|
1000 : this.currentLayer.animationDuration;
|
|
6692
|
-
const animate
|
|
6772
|
+
const animate = duration !== 0 || isNullOrUndefined(this.mapObject.zoomModule);
|
|
6693
6773
|
this.mapObject.baseTranslatePoint = this.mapObject.zoomTranslatePoint;
|
|
6694
6774
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6695
6775
|
let translate;
|
|
6696
6776
|
if (this.mapObject.zoomSettings.zoomFactor > 1 && !isNullOrUndefined(this.mapObject.zoomModule)) {
|
|
6697
|
-
translate = getZoomTranslate(this.mapObject, this.currentLayer, animate
|
|
6777
|
+
translate = getZoomTranslate(this.mapObject, this.currentLayer, animate);
|
|
6698
6778
|
}
|
|
6699
6779
|
else {
|
|
6700
|
-
translate = getTranslate(this.mapObject, this.currentLayer, animate
|
|
6780
|
+
translate = getTranslate(this.mapObject, this.currentLayer, animate);
|
|
6701
6781
|
}
|
|
6702
6782
|
const scale = this.mapObject.previousScale = translate['scale'];
|
|
6703
6783
|
const location = this.mapObject.previousPoint = translate['location'];
|
|
@@ -6888,9 +6968,8 @@ class LayerPanel {
|
|
|
6888
6968
|
const tile = new Tile(tileI % ycount, j);
|
|
6889
6969
|
tile.left = Math.round(x);
|
|
6890
6970
|
tile.top = Math.round(y);
|
|
6891
|
-
if (
|
|
6892
|
-
|
|
6893
|
-
tile.src = bing.getBingMap(tile, key, baseLayer.bingMapType, userLang, bing.imageUrl, bing.subDomains);
|
|
6971
|
+
if ((bing && !isNullOrUndefined(baseLayer.urlTemplate) && baseLayer.urlTemplate !== '')) {
|
|
6972
|
+
tile.src = bing.getBingMap(tile, '', '', userLang, bing.imageUrl, bing.subDomains);
|
|
6894
6973
|
}
|
|
6895
6974
|
else {
|
|
6896
6975
|
tile.src = this.urlTemplate.replace('level', zoomLevel.toString()).replace('tileX', tile.x.toString())
|
|
@@ -6916,13 +6995,12 @@ class LayerPanel {
|
|
|
6916
6995
|
if (!(layer.type === 'SubLayer' && layer.visible)) {
|
|
6917
6996
|
continue;
|
|
6918
6997
|
}
|
|
6919
|
-
if ((layer.
|
|
6920
|
-
isNullOrUndefined(layer.shapeData) && !isNullOrUndefined(layer.urlTemplate) && layer.urlTemplate !== '')) {
|
|
6998
|
+
if (isNullOrUndefined(layer.shapeData) && !isNullOrUndefined(layer.urlTemplate) && layer.urlTemplate !== '') {
|
|
6921
6999
|
for (const baseTile of proxTiles) {
|
|
6922
7000
|
const subtile = extend({}, baseTile, {}, true);
|
|
6923
|
-
if (layer.
|
|
7001
|
+
if (layer.urlTemplate.indexOf('quadkey')) {
|
|
6924
7002
|
bing = new BingMap(this.mapObject);
|
|
6925
|
-
subtile.src = bing.getBingMap(subtile,
|
|
7003
|
+
subtile.src = bing.getBingMap(subtile, '', '', userLang, bing.imageUrl, bing.subDomains);
|
|
6926
7004
|
}
|
|
6927
7005
|
else {
|
|
6928
7006
|
subtile.src = layer.urlTemplate.replace('level', zoomLevel.toString()).replace('tileX', baseTile.x.toString())
|
|
@@ -6949,111 +7027,106 @@ class LayerPanel {
|
|
|
6949
7027
|
else {
|
|
6950
7028
|
timeOut = 0;
|
|
6951
7029
|
}
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
7030
|
+
setTimeout(() => {
|
|
7031
|
+
if (element) {
|
|
7032
|
+
element.style.zIndex = '1';
|
|
7033
|
+
}
|
|
7034
|
+
if (element1) {
|
|
7035
|
+
element1.style.zIndex = '0';
|
|
7036
|
+
}
|
|
7037
|
+
let animateElement;
|
|
7038
|
+
if (!document.getElementById(this.mapObject.element.id + '_animated_tiles') && element) {
|
|
7039
|
+
animateElement = createElement('div', { id: this.mapObject.element.id + '_animated_tiles' });
|
|
7040
|
+
element.appendChild(animateElement);
|
|
7041
|
+
}
|
|
7042
|
+
else {
|
|
7043
|
+
if (type !== 'Pan' && element1 && element) {
|
|
7044
|
+
element1.appendChild(element.children[0]);
|
|
7045
|
+
if (!this.mapObject.isAddLayer && !isNullOrUndefined(document.getElementById(this.mapObject.element.id + '_animated_tiles'))) {
|
|
7046
|
+
document.getElementById(this.mapObject.element.id + '_animated_tiles').id =
|
|
7047
|
+
this.mapObject.element.id + '_animated_tiles_old';
|
|
7048
|
+
}
|
|
6965
7049
|
animateElement = createElement('div', { id: this.mapObject.element.id + '_animated_tiles' });
|
|
6966
7050
|
element.appendChild(animateElement);
|
|
6967
7051
|
}
|
|
6968
7052
|
else {
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
7053
|
+
animateElement = element ? element.children[0] : null;
|
|
7054
|
+
}
|
|
7055
|
+
}
|
|
7056
|
+
for (let id = 0; id < this.tiles.length; id++) {
|
|
7057
|
+
const tile = this.tiles[id];
|
|
7058
|
+
let imgElement = null;
|
|
7059
|
+
const mapId = this.mapObject.element.id;
|
|
7060
|
+
if (type === 'Pan') {
|
|
7061
|
+
let child = document.getElementById(mapId + '_tile_' + id);
|
|
7062
|
+
let isNewTile = false;
|
|
7063
|
+
if (isNullOrUndefined(child)) {
|
|
7064
|
+
isNewTile = true;
|
|
7065
|
+
child = createElement('div', { id: mapId + '_tile_' + id });
|
|
7066
|
+
imgElement = createElement('img');
|
|
6977
7067
|
}
|
|
6978
7068
|
else {
|
|
6979
|
-
|
|
7069
|
+
child.style.removeProperty('display');
|
|
7070
|
+
imgElement = child.children[0];
|
|
6980
7071
|
}
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
const tile = this.tiles[id];
|
|
6984
|
-
let imgElement = null;
|
|
6985
|
-
const mapId = this.mapObject.element.id;
|
|
6986
|
-
if (type === 'Pan') {
|
|
6987
|
-
let child = document.getElementById(mapId + '_tile_' + id);
|
|
6988
|
-
let isNewTile = false;
|
|
6989
|
-
if (isNullOrUndefined(child)) {
|
|
6990
|
-
isNewTile = true;
|
|
6991
|
-
child = createElement('div', { id: mapId + '_tile_' + id });
|
|
6992
|
-
imgElement = createElement('img');
|
|
6993
|
-
}
|
|
6994
|
-
else {
|
|
6995
|
-
child.style.removeProperty('display');
|
|
6996
|
-
imgElement = child.children[0];
|
|
6997
|
-
}
|
|
6998
|
-
if (!isNewTile && imgElement && imgElement.src !== tile.src) {
|
|
6999
|
-
imgElement.src = tile.src;
|
|
7000
|
-
}
|
|
7001
|
-
child.style.position = 'absolute';
|
|
7002
|
-
child.style.left = tile.left + 'px';
|
|
7003
|
-
child.style.top = tile.top + 'px';
|
|
7004
|
-
child.style.height = tile.height + 'px';
|
|
7005
|
-
child.style.width = tile.width + 'px';
|
|
7006
|
-
if (isNewTile) {
|
|
7007
|
-
imgElement.setAttribute('height', '256px');
|
|
7008
|
-
imgElement.setAttribute('width', '256px');
|
|
7009
|
-
imgElement.setAttribute('src', tile.src);
|
|
7010
|
-
imgElement.setAttribute('alt', this.mapObject.getLocalizedLabel('ImageNotFound'));
|
|
7011
|
-
imgElement.style.setProperty('user-select', 'none');
|
|
7012
|
-
child.appendChild(imgElement);
|
|
7013
|
-
animateElement.appendChild(child);
|
|
7014
|
-
}
|
|
7072
|
+
if (!isNewTile && imgElement && imgElement.src !== tile.src) {
|
|
7073
|
+
imgElement.src = tile.src;
|
|
7015
7074
|
}
|
|
7016
|
-
|
|
7017
|
-
|
|
7075
|
+
child.style.position = 'absolute';
|
|
7076
|
+
child.style.left = tile.left + 'px';
|
|
7077
|
+
child.style.top = tile.top + 'px';
|
|
7078
|
+
child.style.height = tile.height + 'px';
|
|
7079
|
+
child.style.width = tile.width + 'px';
|
|
7080
|
+
if (isNewTile) {
|
|
7018
7081
|
imgElement.setAttribute('height', '256px');
|
|
7019
7082
|
imgElement.setAttribute('width', '256px');
|
|
7020
7083
|
imgElement.setAttribute('src', tile.src);
|
|
7021
|
-
imgElement.style.setProperty('user-select', 'none');
|
|
7022
7084
|
imgElement.setAttribute('alt', this.mapObject.getLocalizedLabel('ImageNotFound'));
|
|
7023
|
-
|
|
7024
|
-
child.style.position = 'absolute';
|
|
7025
|
-
child.style.left = tile.left + 'px';
|
|
7026
|
-
child.style.top = tile.top + 'px';
|
|
7027
|
-
child.style.height = tile.height + 'px';
|
|
7028
|
-
child.style.width = tile.width + 'px';
|
|
7085
|
+
imgElement.style.setProperty('user-select', 'none');
|
|
7029
7086
|
child.appendChild(imgElement);
|
|
7030
|
-
|
|
7031
|
-
animateElement.appendChild(child);
|
|
7032
|
-
}
|
|
7087
|
+
animateElement.appendChild(child);
|
|
7033
7088
|
}
|
|
7034
|
-
|
|
7035
|
-
|
|
7089
|
+
}
|
|
7090
|
+
else {
|
|
7091
|
+
imgElement = createElement('img');
|
|
7092
|
+
imgElement.setAttribute('height', '256px');
|
|
7093
|
+
imgElement.setAttribute('width', '256px');
|
|
7094
|
+
imgElement.setAttribute('src', tile.src);
|
|
7095
|
+
imgElement.style.setProperty('user-select', 'none');
|
|
7096
|
+
imgElement.setAttribute('alt', this.mapObject.getLocalizedLabel('ImageNotFound'));
|
|
7097
|
+
const child = createElement('div', { id: mapId + '_tile_' + id });
|
|
7098
|
+
child.style.position = 'absolute';
|
|
7099
|
+
child.style.left = tile.left + 'px';
|
|
7100
|
+
child.style.top = tile.top + 'px';
|
|
7101
|
+
child.style.height = tile.height + 'px';
|
|
7102
|
+
child.style.width = tile.width + 'px';
|
|
7103
|
+
child.appendChild(imgElement);
|
|
7104
|
+
if (animateElement) {
|
|
7105
|
+
animateElement.appendChild(child);
|
|
7036
7106
|
}
|
|
7037
7107
|
}
|
|
7038
|
-
if (
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
}
|
|
7050
|
-
else {
|
|
7051
|
-
animateElement.removeChild(animateElement.children[l]);
|
|
7108
|
+
if (id === (this.tiles.length - 1) && document.getElementById(this.mapObject.element.id + '_animated_tiles_old')) {
|
|
7109
|
+
removeElement(this.mapObject.element.id + '_animated_tiles_old');
|
|
7110
|
+
}
|
|
7111
|
+
}
|
|
7112
|
+
if (!isNullOrUndefined(this.mapObject.currentTiles)) {
|
|
7113
|
+
for (let l = this.tiles.length; l < animateElement.childElementCount; l++) {
|
|
7114
|
+
let isExistingElement = false;
|
|
7115
|
+
for (let a = 0; a < this.mapObject.currentTiles.childElementCount; a++) {
|
|
7116
|
+
if (!isExistingElement &&
|
|
7117
|
+
this.mapObject.currentTiles.children[a].id === animateElement.children[l].id) {
|
|
7118
|
+
isExistingElement = true;
|
|
7052
7119
|
}
|
|
7053
7120
|
}
|
|
7121
|
+
if (isExistingElement) {
|
|
7122
|
+
animateElement.children[l].style.display = 'none';
|
|
7123
|
+
}
|
|
7124
|
+
else {
|
|
7125
|
+
animateElement.removeChild(animateElement.children[l]);
|
|
7126
|
+
}
|
|
7054
7127
|
}
|
|
7055
|
-
}
|
|
7056
|
-
}
|
|
7128
|
+
}
|
|
7129
|
+
}, timeOut);
|
|
7057
7130
|
}
|
|
7058
7131
|
/**
|
|
7059
7132
|
* Animation for tile layers and hide the group element until the tile layer rendering.
|
|
@@ -7128,7 +7201,7 @@ class LayerPanel {
|
|
|
7128
7201
|
const eleWidth = mapWidth > 640 ? (mapWidth - 640) / 2 : 0;
|
|
7129
7202
|
const eleHeight = mapHeight > 640 ? (mapHeight - 640) / 2 : 0;
|
|
7130
7203
|
let center;
|
|
7131
|
-
const mapType =
|
|
7204
|
+
const mapType = 'roadmap';
|
|
7132
7205
|
if (map.centerPosition.latitude && map.centerPosition.longitude) {
|
|
7133
7206
|
center = map.centerPosition.latitude.toString() + ',' + map.centerPosition.longitude.toString();
|
|
7134
7207
|
}
|
|
@@ -7154,8 +7227,7 @@ class LayerPanel {
|
|
|
7154
7227
|
this.mapObject.tileZoomLevel = this.mapObject.tileZoomScale;
|
|
7155
7228
|
}
|
|
7156
7229
|
const level = this.mapObject.tileZoomLevel;
|
|
7157
|
-
let padding =
|
|
7158
|
-
20 : 0;
|
|
7230
|
+
let padding = 20;
|
|
7159
7231
|
let x;
|
|
7160
7232
|
let y;
|
|
7161
7233
|
const totalSize = Math.pow(2, level) * 256;
|
|
@@ -7342,15 +7414,12 @@ class Annotations {
|
|
|
7342
7414
|
}
|
|
7343
7415
|
}
|
|
7344
7416
|
|
|
7345
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7417
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7346
7418
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7347
7419
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7348
7420
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7349
7421
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7350
7422
|
};
|
|
7351
|
-
/**
|
|
7352
|
-
* Maps Component file
|
|
7353
|
-
*/
|
|
7354
7423
|
/**
|
|
7355
7424
|
* Represents the maps control. It is ideal for rendering maps from GeoJSON data or other map providers like OpenStreetMap, Google Maps, Bing Maps, etc that
|
|
7356
7425
|
* has rich feature set that includes markers, labels, bubbles and much more.
|
|
@@ -7631,7 +7700,7 @@ let Maps = class Maps extends Component {
|
|
|
7631
7700
|
}
|
|
7632
7701
|
}
|
|
7633
7702
|
}
|
|
7634
|
-
if (layer.dataSource instanceof MapAjax || !isNullOrUndefined(layer.dataSource['dataOptions'])) {
|
|
7703
|
+
if (layer.dataSource instanceof MapAjax || (!isNullOrUndefined(layer.dataSource) && !isNullOrUndefined(layer.dataSource['dataOptions']))) {
|
|
7635
7704
|
this.processAjaxRequest(layer, layer.dataSource, 'DataSource');
|
|
7636
7705
|
}
|
|
7637
7706
|
if (this.serverProcess['request'] === this.serverProcess['response'] && length === layerIndex) {
|
|
@@ -8069,8 +8138,7 @@ let Maps = class Maps extends Component {
|
|
|
8069
8138
|
createTile() {
|
|
8070
8139
|
const mainLayer = this.layersCollection[0];
|
|
8071
8140
|
const padding = 0;
|
|
8072
|
-
if (mainLayer.isBaseLayer && (mainLayer.
|
|
8073
|
-
mainLayer.layerType === 'GoogleStaticMap' || mainLayer.layerType === 'Google' || (!isNullOrUndefined(mainLayer.urlTemplate) && mainLayer.urlTemplate !== ''))) {
|
|
8141
|
+
if (mainLayer.isBaseLayer && (!isNullOrUndefined(mainLayer.urlTemplate) && mainLayer.urlTemplate !== '' && isNullOrUndefined(mainLayer.shapeData))) {
|
|
8074
8142
|
removeElement(this.element.id + '_tile_parent');
|
|
8075
8143
|
removeElement(this.element.id + '_tiles');
|
|
8076
8144
|
removeElement('animated_tiles');
|
|
@@ -8120,7 +8188,7 @@ let Maps = class Maps extends Component {
|
|
|
8120
8188
|
const baseLayer = mainLayers[i];
|
|
8121
8189
|
if (baseLayer.visible && baseIndex === i) {
|
|
8122
8190
|
baseLayer.isBaseLayer = true;
|
|
8123
|
-
this.isTileMap =
|
|
8191
|
+
this.isTileMap = !isNullOrUndefined(baseLayer.shapeData) ? false : true;
|
|
8124
8192
|
this.layersCollection.push(baseLayer);
|
|
8125
8193
|
break;
|
|
8126
8194
|
}
|
|
@@ -8488,11 +8556,11 @@ let Maps = class Maps extends Component {
|
|
|
8488
8556
|
}
|
|
8489
8557
|
}
|
|
8490
8558
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8491
|
-
getMarkerClickLocation(pageX, pageY, x, y, marker
|
|
8559
|
+
getMarkerClickLocation(pageX, pageY, x, y, marker, isDragEnd) {
|
|
8492
8560
|
document.getElementById(this.element.id + '_svg').style.cursor = 'grabbing';
|
|
8493
|
-
const targetElement = getElement(marker
|
|
8494
|
-
let latLongValue = this.getClickLocation(marker
|
|
8495
|
-
const location = (this.isTileMap) ? convertTileLatLongToPoint(new MapLocation(latLongValue.longitude, latLongValue.latitude), this.tileZoomLevel, this.tileTranslatePoint, true) : convertGeoToPoint(latLongValue.latitude, latLongValue.longitude, this.mapLayerPanel.currentFactor, this.layersCollection[marker
|
|
8561
|
+
const targetElement = getElement(marker.targetId);
|
|
8562
|
+
let latLongValue = this.getClickLocation(marker.targetId, pageX, pageY, targetElement, x, y);
|
|
8563
|
+
const location = (this.isTileMap) ? convertTileLatLongToPoint(new MapLocation(latLongValue.longitude, latLongValue.latitude), this.tileZoomLevel, this.tileTranslatePoint, true) : convertGeoToPoint(latLongValue.latitude, latLongValue.longitude, this.mapLayerPanel.currentFactor, this.layersCollection[marker.layerIndex], this);
|
|
8496
8564
|
const transPoint = this.translatePoint;
|
|
8497
8565
|
const translateX = (this.isTileMap ? location.x : (location.x + transPoint.x) * this.scale);
|
|
8498
8566
|
const translateY = (this.isTileMap ? location.y : (location.y + transPoint.y) * this.scale);
|
|
@@ -8503,8 +8571,8 @@ let Maps = class Maps extends Component {
|
|
|
8503
8571
|
targetElement.parentElement.setAttribute('transform', 'translate( ' + translateX + ' ' + translateY + ' )');
|
|
8504
8572
|
}
|
|
8505
8573
|
if (isDragEnd) {
|
|
8506
|
-
const markerSettings = this.layers[marker
|
|
8507
|
-
latLongValue = this.getClickLocation(marker
|
|
8574
|
+
const markerSettings = this.layers[marker.layerIndex].markerSettings[marker.markerIndex];
|
|
8575
|
+
latLongValue = this.getClickLocation(marker.targetId, (pageX - markerSettings.offset.x), (pageY - markerSettings.offset.y), targetElement, (x - markerSettings.offset.x), (y - markerSettings.offset.y));
|
|
8508
8576
|
}
|
|
8509
8577
|
return latLongValue;
|
|
8510
8578
|
}
|
|
@@ -8653,32 +8721,32 @@ let Maps = class Maps extends Component {
|
|
|
8653
8721
|
}
|
|
8654
8722
|
if (!isNullOrUndefined(this.markerDragArgument)) {
|
|
8655
8723
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8656
|
-
const marker
|
|
8724
|
+
const marker = this.markerDragArgument;
|
|
8657
8725
|
this.mouseClickEvent['x'] = this.mouseDownEvent['x'];
|
|
8658
8726
|
this.mouseClickEvent['y'] = this.mouseDownEvent['y'];
|
|
8659
8727
|
const latLongValue = this.getMarkerClickLocation(pageX, pageY, layerX, layerY, this.markerDragArgument, true);
|
|
8660
|
-
const markerObject = this.layers[marker
|
|
8728
|
+
const markerObject = this.layers[marker.layerIndex].markerSettings[marker.markerIndex];
|
|
8661
8729
|
document.getElementById(this.element.id + '_svg').style.cursor = markerObject.enableDrag ? 'pointer' : 'grabbing';
|
|
8662
8730
|
const dragEventArgs = {
|
|
8663
8731
|
name: 'markerDragEnd', x: pageX, y: pageY,
|
|
8664
8732
|
latitude: latLongValue.latitude, longitude: latLongValue.longitude,
|
|
8665
|
-
layerIndex: marker
|
|
8666
|
-
dataIndex: marker
|
|
8733
|
+
layerIndex: marker.layerIndex, markerIndex: marker.markerIndex,
|
|
8734
|
+
dataIndex: marker.dataIndex
|
|
8667
8735
|
};
|
|
8668
8736
|
if (isNullOrUndefined(markerObject.latitudeValuePath) && isNullOrUndefined(markerObject.longitudeValuePath)) {
|
|
8669
|
-
const data = markerObject.dataSource[marker
|
|
8737
|
+
const data = markerObject.dataSource[marker.dataIndex];
|
|
8670
8738
|
if (!isNullOrUndefined(data['Longitude']) && !isNullOrUndefined(data['Latitude'])) {
|
|
8671
|
-
markerObject.dataSource[marker
|
|
8672
|
-
markerObject.dataSource[marker
|
|
8739
|
+
markerObject.dataSource[marker.dataIndex].Latitude = dragEventArgs.latitude;
|
|
8740
|
+
markerObject.dataSource[marker.dataIndex].Longitude = dragEventArgs.longitude;
|
|
8673
8741
|
}
|
|
8674
8742
|
else {
|
|
8675
|
-
markerObject.dataSource[marker
|
|
8676
|
-
markerObject.dataSource[marker
|
|
8743
|
+
markerObject.dataSource[marker.dataIndex].latitude = dragEventArgs.latitude;
|
|
8744
|
+
markerObject.dataSource[marker.dataIndex].longitude = dragEventArgs.longitude;
|
|
8677
8745
|
}
|
|
8678
8746
|
}
|
|
8679
8747
|
else {
|
|
8680
|
-
markerObject.dataSource[marker
|
|
8681
|
-
markerObject.dataSource[marker
|
|
8748
|
+
markerObject.dataSource[marker.dataIndex][markerObject.latitudeValuePath] = dragEventArgs.latitude;
|
|
8749
|
+
markerObject.dataSource[marker.dataIndex][markerObject.longitudeValuePath] = dragEventArgs.longitude;
|
|
8682
8750
|
}
|
|
8683
8751
|
this.markerDragId = '';
|
|
8684
8752
|
this.markerDragArgument = null;
|
|
@@ -8865,10 +8933,10 @@ let Maps = class Maps extends Component {
|
|
|
8865
8933
|
}
|
|
8866
8934
|
if (!isNullOrUndefined(this.markerDragArgument)) {
|
|
8867
8935
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8868
|
-
const marker
|
|
8936
|
+
const marker = this.markerDragArgument;
|
|
8869
8937
|
this.mouseClickEvent['x'] = this.mouseDownEvent['x'];
|
|
8870
8938
|
this.mouseClickEvent['y'] = this.mouseDownEvent['y'];
|
|
8871
|
-
this.getMarkerClickLocation(pageX, pageY, layerX, layerY, marker
|
|
8939
|
+
this.getMarkerClickLocation(pageX, pageY, layerX, layerY, marker, false);
|
|
8872
8940
|
}
|
|
8873
8941
|
if (this.zoomModule) {
|
|
8874
8942
|
this.zoomModule.removeToolbarOpacity(this.isTileMap ? Math.round(this.tileZoomLevel) : this.scale, e.target.id);
|
|
@@ -9402,7 +9470,6 @@ let Maps = class Maps extends Component {
|
|
|
9402
9470
|
let render = false;
|
|
9403
9471
|
let isMarker = false;
|
|
9404
9472
|
let isLayer = false;
|
|
9405
|
-
let isStaticMapType = false;
|
|
9406
9473
|
for (const prop of Object.keys(newProp)) {
|
|
9407
9474
|
switch (prop) {
|
|
9408
9475
|
case 'background':
|
|
@@ -9422,17 +9489,13 @@ let Maps = class Maps extends Component {
|
|
|
9422
9489
|
if (!isNullOrUndefined(newProp.layers[x])) {
|
|
9423
9490
|
const collection = Object.keys(newProp.layers[x]);
|
|
9424
9491
|
for (const collectionProp of collection) {
|
|
9425
|
-
if ((
|
|
9426
|
-
|
|
9427
|
-
&& !isNullOrUndefined(this.layers[x].urlTemplate) && this.layers[x].urlTemplate !== '')) {
|
|
9492
|
+
if ((isNullOrUndefined(this.layers[x].shapeData)
|
|
9493
|
+
&& !isNullOrUndefined(this.layers[x].urlTemplate) && this.layers[x].urlTemplate !== '')) {
|
|
9428
9494
|
this.isReset = true;
|
|
9429
9495
|
}
|
|
9430
9496
|
else if (collectionProp === 'markerSettings') {
|
|
9431
9497
|
isMarker = true;
|
|
9432
9498
|
}
|
|
9433
|
-
else if (collectionProp === 'staticMapType') {
|
|
9434
|
-
isStaticMapType = true;
|
|
9435
|
-
}
|
|
9436
9499
|
}
|
|
9437
9500
|
}
|
|
9438
9501
|
}
|
|
@@ -9476,9 +9539,6 @@ let Maps = class Maps extends Component {
|
|
|
9476
9539
|
this.render();
|
|
9477
9540
|
}
|
|
9478
9541
|
}
|
|
9479
|
-
else if (newProp.layers && isStaticMapType) {
|
|
9480
|
-
this.mapLayerPanel.renderGoogleMap(this.layers[this.layers.length - 1].key, this.staticMapZoom);
|
|
9481
|
-
}
|
|
9482
9542
|
else {
|
|
9483
9543
|
this.createSVG();
|
|
9484
9544
|
this.renderElements();
|
|
@@ -9792,17 +9852,17 @@ let Maps = class Maps extends Component {
|
|
|
9792
9852
|
}
|
|
9793
9853
|
}
|
|
9794
9854
|
for (const polygon of polygonSetting.polygons) {
|
|
9795
|
-
if (polygon.points.length > 0) {
|
|
9855
|
+
if (!isNullOrUndefined(polygon.points) && polygon.points.length > 0) {
|
|
9796
9856
|
isSelection = layer.polygonSettings.highlightSettings.enable || isSelection;
|
|
9797
9857
|
isHighlight = layer.polygonSettings.selectionSettings.enable || isHighlight;
|
|
9798
9858
|
istooltipVisible = layer.polygonSettings.tooltipSettings.visible || istooltipVisible;
|
|
9799
9859
|
}
|
|
9800
9860
|
}
|
|
9801
|
-
for (const marker
|
|
9802
|
-
if (marker
|
|
9803
|
-
istooltipVisible = marker
|
|
9804
|
-
isSelection = marker
|
|
9805
|
-
isHighlight = marker
|
|
9861
|
+
for (const marker of markers) {
|
|
9862
|
+
if (marker.visible) {
|
|
9863
|
+
istooltipVisible = marker.tooltipSettings.visible || istooltipVisible;
|
|
9864
|
+
isSelection = marker.selectionSettings.enable || isSelection;
|
|
9865
|
+
isHighlight = marker.highlightSettings.enable || isHighlight;
|
|
9806
9866
|
}
|
|
9807
9867
|
if (istooltipVisible) {
|
|
9808
9868
|
break;
|
|
@@ -9899,7 +9959,7 @@ let Maps = class Maps extends Component {
|
|
|
9899
9959
|
let latitude = 0;
|
|
9900
9960
|
let longitude = 0;
|
|
9901
9961
|
if (!this.isDestroyed && !isNullOrUndefined(this.translatePoint)) {
|
|
9902
|
-
const padding =
|
|
9962
|
+
const padding = 10;
|
|
9903
9963
|
pageY = pageY + padding;
|
|
9904
9964
|
const mapSize = 256 * Math.pow(2, this.tileZoomLevel);
|
|
9905
9965
|
const x1 = (this.clip(pageX - (this.translatePoint.x * this.scale), 0, mapSize - 1) / mapSize) - 0.5;
|
|
@@ -9910,181 +9970,181 @@ let Maps = class Maps extends Component {
|
|
|
9910
9970
|
return { latitude: latitude, longitude: longitude };
|
|
9911
9971
|
}
|
|
9912
9972
|
};
|
|
9913
|
-
__decorate([
|
|
9973
|
+
__decorate$1([
|
|
9914
9974
|
Property(null)
|
|
9915
9975
|
], Maps.prototype, "background", void 0);
|
|
9916
|
-
__decorate([
|
|
9976
|
+
__decorate$1([
|
|
9917
9977
|
Property(false)
|
|
9918
9978
|
], Maps.prototype, "useGroupingSeparator", void 0);
|
|
9919
|
-
__decorate([
|
|
9979
|
+
__decorate$1([
|
|
9920
9980
|
Property(null)
|
|
9921
9981
|
], Maps.prototype, "format", void 0);
|
|
9922
|
-
__decorate([
|
|
9982
|
+
__decorate$1([
|
|
9923
9983
|
Property(null)
|
|
9924
9984
|
], Maps.prototype, "width", void 0);
|
|
9925
|
-
__decorate([
|
|
9985
|
+
__decorate$1([
|
|
9926
9986
|
Property(null)
|
|
9927
9987
|
], Maps.prototype, "height", void 0);
|
|
9928
|
-
__decorate([
|
|
9988
|
+
__decorate$1([
|
|
9929
9989
|
Property('MouseMove')
|
|
9930
9990
|
], Maps.prototype, "tooltipDisplayMode", void 0);
|
|
9931
|
-
__decorate([
|
|
9991
|
+
__decorate$1([
|
|
9932
9992
|
Property(false)
|
|
9933
9993
|
], Maps.prototype, "allowPrint", void 0);
|
|
9934
|
-
__decorate([
|
|
9994
|
+
__decorate$1([
|
|
9935
9995
|
Property(false)
|
|
9936
9996
|
], Maps.prototype, "allowImageExport", void 0);
|
|
9937
|
-
__decorate([
|
|
9997
|
+
__decorate$1([
|
|
9938
9998
|
Property(false)
|
|
9939
9999
|
], Maps.prototype, "allowPdfExport", void 0);
|
|
9940
|
-
__decorate([
|
|
10000
|
+
__decorate$1([
|
|
9941
10001
|
Complex({}, TitleSettings)
|
|
9942
10002
|
], Maps.prototype, "titleSettings", void 0);
|
|
9943
|
-
__decorate([
|
|
10003
|
+
__decorate$1([
|
|
9944
10004
|
Complex({}, ZoomSettings)
|
|
9945
10005
|
], Maps.prototype, "zoomSettings", void 0);
|
|
9946
|
-
__decorate([
|
|
10006
|
+
__decorate$1([
|
|
9947
10007
|
Complex({}, LegendSettings)
|
|
9948
10008
|
], Maps.prototype, "legendSettings", void 0);
|
|
9949
|
-
__decorate([
|
|
10009
|
+
__decorate$1([
|
|
9950
10010
|
Collection([], LayerSettings)
|
|
9951
10011
|
], Maps.prototype, "layers", void 0);
|
|
9952
|
-
__decorate([
|
|
10012
|
+
__decorate$1([
|
|
9953
10013
|
Collection([], Annotation)
|
|
9954
10014
|
], Maps.prototype, "annotations", void 0);
|
|
9955
|
-
__decorate([
|
|
10015
|
+
__decorate$1([
|
|
9956
10016
|
Complex({}, Margin)
|
|
9957
10017
|
], Maps.prototype, "margin", void 0);
|
|
9958
|
-
__decorate([
|
|
10018
|
+
__decorate$1([
|
|
9959
10019
|
Complex({ color: '#DDDDDD', width: 0 }, Border)
|
|
9960
10020
|
], Maps.prototype, "border", void 0);
|
|
9961
|
-
__decorate([
|
|
10021
|
+
__decorate$1([
|
|
9962
10022
|
Property('Material')
|
|
9963
10023
|
], Maps.prototype, "theme", void 0);
|
|
9964
|
-
__decorate([
|
|
10024
|
+
__decorate$1([
|
|
9965
10025
|
Property('Mercator')
|
|
9966
10026
|
], Maps.prototype, "projectionType", void 0);
|
|
9967
|
-
__decorate([
|
|
10027
|
+
__decorate$1([
|
|
9968
10028
|
Property(0)
|
|
9969
10029
|
], Maps.prototype, "baseLayerIndex", void 0);
|
|
9970
|
-
__decorate([
|
|
10030
|
+
__decorate$1([
|
|
9971
10031
|
Property(null)
|
|
9972
10032
|
], Maps.prototype, "description", void 0);
|
|
9973
|
-
__decorate([
|
|
10033
|
+
__decorate$1([
|
|
9974
10034
|
Property(0)
|
|
9975
10035
|
], Maps.prototype, "tabIndex", void 0);
|
|
9976
|
-
__decorate([
|
|
10036
|
+
__decorate$1([
|
|
9977
10037
|
Complex({ latitude: null, longitude: null }, CenterPosition)
|
|
9978
10038
|
], Maps.prototype, "centerPosition", void 0);
|
|
9979
|
-
__decorate([
|
|
10039
|
+
__decorate$1([
|
|
9980
10040
|
Complex({}, MapsAreaSettings)
|
|
9981
10041
|
], Maps.prototype, "mapsArea", void 0);
|
|
9982
|
-
__decorate([
|
|
10042
|
+
__decorate$1([
|
|
9983
10043
|
Event()
|
|
9984
10044
|
], Maps.prototype, "load", void 0);
|
|
9985
|
-
__decorate([
|
|
10045
|
+
__decorate$1([
|
|
9986
10046
|
Event()
|
|
9987
10047
|
], Maps.prototype, "beforePrint", void 0);
|
|
9988
|
-
__decorate([
|
|
10048
|
+
__decorate$1([
|
|
9989
10049
|
Event()
|
|
9990
10050
|
], Maps.prototype, "loaded", void 0);
|
|
9991
|
-
__decorate([
|
|
10051
|
+
__decorate$1([
|
|
9992
10052
|
Event()
|
|
9993
10053
|
], Maps.prototype, "click", void 0);
|
|
9994
|
-
__decorate([
|
|
10054
|
+
__decorate$1([
|
|
9995
10055
|
Event()
|
|
9996
10056
|
], Maps.prototype, "onclick", void 0);
|
|
9997
|
-
__decorate([
|
|
10057
|
+
__decorate$1([
|
|
9998
10058
|
Event()
|
|
9999
10059
|
], Maps.prototype, "doubleClick", void 0);
|
|
10000
|
-
__decorate([
|
|
10060
|
+
__decorate$1([
|
|
10001
10061
|
Event()
|
|
10002
10062
|
], Maps.prototype, "rightClick", void 0);
|
|
10003
|
-
__decorate([
|
|
10063
|
+
__decorate$1([
|
|
10004
10064
|
Event()
|
|
10005
10065
|
], Maps.prototype, "resize", void 0);
|
|
10006
|
-
__decorate([
|
|
10066
|
+
__decorate$1([
|
|
10007
10067
|
Event()
|
|
10008
10068
|
], Maps.prototype, "tooltipRender", void 0);
|
|
10009
|
-
__decorate([
|
|
10069
|
+
__decorate$1([
|
|
10010
10070
|
Event()
|
|
10011
10071
|
], Maps.prototype, "legendRendering", void 0);
|
|
10012
|
-
__decorate([
|
|
10072
|
+
__decorate$1([
|
|
10013
10073
|
Event()
|
|
10014
10074
|
], Maps.prototype, "tooltipRenderComplete", void 0);
|
|
10015
|
-
__decorate([
|
|
10075
|
+
__decorate$1([
|
|
10016
10076
|
Event()
|
|
10017
10077
|
], Maps.prototype, "shapeSelected", void 0);
|
|
10018
|
-
__decorate([
|
|
10078
|
+
__decorate$1([
|
|
10019
10079
|
Event()
|
|
10020
10080
|
], Maps.prototype, "itemSelection", void 0);
|
|
10021
|
-
__decorate([
|
|
10081
|
+
__decorate$1([
|
|
10022
10082
|
Event()
|
|
10023
10083
|
], Maps.prototype, "itemHighlight", void 0);
|
|
10024
|
-
__decorate([
|
|
10084
|
+
__decorate$1([
|
|
10025
10085
|
Event()
|
|
10026
10086
|
], Maps.prototype, "shapeHighlight", void 0);
|
|
10027
|
-
__decorate([
|
|
10087
|
+
__decorate$1([
|
|
10028
10088
|
Event()
|
|
10029
10089
|
], Maps.prototype, "layerRendering", void 0);
|
|
10030
|
-
__decorate([
|
|
10090
|
+
__decorate$1([
|
|
10031
10091
|
Event()
|
|
10032
10092
|
], Maps.prototype, "shapeRendering", void 0);
|
|
10033
|
-
__decorate([
|
|
10093
|
+
__decorate$1([
|
|
10034
10094
|
Event()
|
|
10035
10095
|
], Maps.prototype, "markerRendering", void 0);
|
|
10036
|
-
__decorate([
|
|
10096
|
+
__decorate$1([
|
|
10037
10097
|
Event()
|
|
10038
10098
|
], Maps.prototype, "markerClusterRendering", void 0);
|
|
10039
|
-
__decorate([
|
|
10099
|
+
__decorate$1([
|
|
10040
10100
|
Event()
|
|
10041
10101
|
], Maps.prototype, "markerClick", void 0);
|
|
10042
|
-
__decorate([
|
|
10102
|
+
__decorate$1([
|
|
10043
10103
|
Event()
|
|
10044
10104
|
], Maps.prototype, "markerDragStart", void 0);
|
|
10045
|
-
__decorate([
|
|
10105
|
+
__decorate$1([
|
|
10046
10106
|
Event()
|
|
10047
10107
|
], Maps.prototype, "markerDragEnd", void 0);
|
|
10048
|
-
__decorate([
|
|
10108
|
+
__decorate$1([
|
|
10049
10109
|
Event()
|
|
10050
10110
|
], Maps.prototype, "markerClusterClick", void 0);
|
|
10051
|
-
__decorate([
|
|
10111
|
+
__decorate$1([
|
|
10052
10112
|
Event()
|
|
10053
10113
|
], Maps.prototype, "markerClusterMouseMove", void 0);
|
|
10054
|
-
__decorate([
|
|
10114
|
+
__decorate$1([
|
|
10055
10115
|
Event()
|
|
10056
10116
|
], Maps.prototype, "markerMouseMove", void 0);
|
|
10057
|
-
__decorate([
|
|
10117
|
+
__decorate$1([
|
|
10058
10118
|
Event()
|
|
10059
10119
|
], Maps.prototype, "dataLabelRendering", void 0);
|
|
10060
|
-
__decorate([
|
|
10120
|
+
__decorate$1([
|
|
10061
10121
|
Event()
|
|
10062
10122
|
], Maps.prototype, "bubbleRendering", void 0);
|
|
10063
|
-
__decorate([
|
|
10123
|
+
__decorate$1([
|
|
10064
10124
|
Event()
|
|
10065
10125
|
], Maps.prototype, "bubbleClick", void 0);
|
|
10066
|
-
__decorate([
|
|
10126
|
+
__decorate$1([
|
|
10067
10127
|
Event()
|
|
10068
10128
|
], Maps.prototype, "bubbleMouseMove", void 0);
|
|
10069
|
-
__decorate([
|
|
10129
|
+
__decorate$1([
|
|
10070
10130
|
Event()
|
|
10071
10131
|
], Maps.prototype, "animationComplete", void 0);
|
|
10072
|
-
__decorate([
|
|
10132
|
+
__decorate$1([
|
|
10073
10133
|
Event()
|
|
10074
10134
|
], Maps.prototype, "annotationRendering", void 0);
|
|
10075
|
-
__decorate([
|
|
10135
|
+
__decorate$1([
|
|
10076
10136
|
Event()
|
|
10077
10137
|
], Maps.prototype, "zoom", void 0);
|
|
10078
|
-
__decorate([
|
|
10138
|
+
__decorate$1([
|
|
10079
10139
|
Event()
|
|
10080
10140
|
], Maps.prototype, "pan", void 0);
|
|
10081
|
-
__decorate([
|
|
10141
|
+
__decorate$1([
|
|
10082
10142
|
Event()
|
|
10083
10143
|
], Maps.prototype, "panComplete", void 0);
|
|
10084
|
-
__decorate([
|
|
10144
|
+
__decorate$1([
|
|
10085
10145
|
Event()
|
|
10086
10146
|
], Maps.prototype, "zoomComplete", void 0);
|
|
10087
|
-
Maps = __decorate([
|
|
10147
|
+
Maps = __decorate$1([
|
|
10088
10148
|
NotifyPropertyChanges
|
|
10089
10149
|
], Maps);
|
|
10090
10150
|
|
|
@@ -10247,12 +10307,12 @@ class Bubble {
|
|
|
10247
10307
|
});
|
|
10248
10308
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10249
10309
|
let translate;
|
|
10250
|
-
const animate
|
|
10310
|
+
const animate = (layer.animationDuration !== 0 || animationMode === 'Enable') || isNullOrUndefined(this.maps.zoomModule);
|
|
10251
10311
|
if (this.maps.zoomSettings.zoomFactor > 1 && !isNullOrUndefined(this.maps.zoomModule) && !this.maps.isTileMap) {
|
|
10252
|
-
translate = getZoomTranslate(this.maps, layer, animate
|
|
10312
|
+
translate = getZoomTranslate(this.maps, layer, animate);
|
|
10253
10313
|
}
|
|
10254
10314
|
else {
|
|
10255
|
-
translate = getTranslate(this.maps, layer, animate
|
|
10315
|
+
translate = getTranslate(this.maps, layer, animate);
|
|
10256
10316
|
}
|
|
10257
10317
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10258
10318
|
const bubbleDataSource = bubbleSettings.dataSource;
|
|
@@ -10430,83 +10490,85 @@ class Marker {
|
|
|
10430
10490
|
Array.prototype.forEach.call(currentLayer.markerSettings, (markerSettings, markerIndex) => {
|
|
10431
10491
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10432
10492
|
const markerData = markerSettings.dataSource;
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
const scale = type === 'AddMarker' ? maps.scale : translatePoint['scale'];
|
|
10462
|
-
const transPoint = type === 'AddMarker' ? maps.translatePoint : translatePoint['location'];
|
|
10463
|
-
if (eventArgs.template && (!isNaN(location.x) && !isNaN(location.y))) {
|
|
10464
|
-
markerTemplateCount++;
|
|
10465
|
-
markerTemplate(eventArgs, templateFn, markerID, data, markerIndex, markerTemplateEle, location, transPoint, scale, offset, maps);
|
|
10466
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10467
|
-
maps.renderReactTemplates();
|
|
10468
|
-
}
|
|
10469
|
-
else if (!eventArgs.template && (!isNaN(location.x) && !isNaN(location.y))) {
|
|
10470
|
-
markerCount++;
|
|
10471
|
-
marker(eventArgs, markerSettings, markerData, dataIndex, location, transPoint, markerID, offset, scale, maps, this.markerSVGObject);
|
|
10472
|
-
}
|
|
10473
|
-
}
|
|
10474
|
-
nullCount += (!isNaN(lat) && !isNaN(lng)) ? 0 : 1;
|
|
10475
|
-
markerTemplateCount += (eventArgs.cancel) ? 1 : 0;
|
|
10476
|
-
markerCount += (eventArgs.cancel) ? 1 : 0;
|
|
10477
|
-
maps.markerNullCount = (isNullOrUndefined(lng) || isNullOrUndefined(lat)) ?
|
|
10478
|
-
maps.markerNullCount + 1 : maps.markerNullCount;
|
|
10479
|
-
const markerDataLength = markerData.length - maps.markerNullCount;
|
|
10480
|
-
let isMarkersClustered = false;
|
|
10481
|
-
if (this.markerSVGObject.childElementCount === (markerDataLength - markerTemplateCount - nullCount) && (type !== 'Template')) {
|
|
10482
|
-
layerElement.appendChild(this.markerSVGObject);
|
|
10483
|
-
if (currentLayer.markerClusterSettings.allowClustering) {
|
|
10484
|
-
maps.svgObject.appendChild(this.markerSVGObject);
|
|
10485
|
-
maps.element.appendChild(maps.svgObject);
|
|
10486
|
-
if ((currentLayer.layerType === 'OSM' || (currentLayer.urlTemplate.indexOf('openstreetmap') !== -1 && isNullOrUndefined(currentLayer.shapeData)))
|
|
10487
|
-
&& maps.zoomSettings.enable) {
|
|
10488
|
-
isMarkersClustered = clusterTemplate(currentLayer, this.markerSVGObject, maps, layerIndex, this.markerSVGObject, layerElement, true, false);
|
|
10489
|
-
layerElement.appendChild(this.markerSVGObject);
|
|
10493
|
+
if (!isNullOrUndefined(markerSettings.dataSource)) {
|
|
10494
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10495
|
+
Array.prototype.forEach.call(markerData, (data, dataIndex) => {
|
|
10496
|
+
maps.markerNullCount = markerIndex > 0 && dataIndex === 0 ? 0 : maps.markerNullCount;
|
|
10497
|
+
let eventArgs = {
|
|
10498
|
+
cancel: false, name: markerRendering, fill: markerSettings.fill, height: markerSettings.height,
|
|
10499
|
+
width: markerSettings.width, imageUrl: markerSettings.imageUrl, shape: markerSettings.shape,
|
|
10500
|
+
template: markerSettings.template, data: data, maps: maps, marker: markerSettings,
|
|
10501
|
+
border: markerSettings.border, colorValuePath: markerSettings.colorValuePath,
|
|
10502
|
+
shapeValuePath: markerSettings.shapeValuePath, imageUrlValuePath: markerSettings.imageUrlValuePath
|
|
10503
|
+
};
|
|
10504
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10505
|
+
maps.trigger('markerRendering', eventArgs, (MarkerArgs) => {
|
|
10506
|
+
eventArgs = markerColorChoose(eventArgs, data);
|
|
10507
|
+
eventArgs = markerShapeChoose(eventArgs, data);
|
|
10508
|
+
const lng = (!isNullOrUndefined(markerSettings.longitudeValuePath)) ?
|
|
10509
|
+
Number(getValueFromObject(data, markerSettings.longitudeValuePath)) : !isNullOrUndefined(data['longitude']) ?
|
|
10510
|
+
parseFloat(data['longitude']) : !isNullOrUndefined(data['Longitude']) ? parseFloat(data['Longitude']) : null;
|
|
10511
|
+
const lat = (!isNullOrUndefined(markerSettings.latitudeValuePath)) ?
|
|
10512
|
+
Number(getValueFromObject(data, markerSettings.latitudeValuePath)) : !isNullOrUndefined(data['latitude']) ?
|
|
10513
|
+
parseFloat(data['latitude']) : !isNullOrUndefined(data['Latitude']) ? parseFloat(data['Latitude']) : null;
|
|
10514
|
+
const offset = markerSettings.offset;
|
|
10515
|
+
if (!eventArgs.cancel && markerSettings.visible && !isNullOrUndefined(lng) && !isNullOrUndefined(lat)) {
|
|
10516
|
+
const markerID = maps.element.id + '_LayerIndex_' + layerIndex + '_MarkerIndex_'
|
|
10517
|
+
+ markerIndex + '_dataIndex_' + dataIndex;
|
|
10518
|
+
let location = (maps.isTileMap) ? convertTileLatLongToPoint(new MapLocation(lng, lat), factor, maps.tileTranslatePoint, true) : convertGeoToPoint(lat, lng, factor, currentLayer, maps);
|
|
10519
|
+
if (maps.isTileMap) {
|
|
10520
|
+
translatePoint = (currentLayer.type === 'SubLayer' && isNullOrUndefined(maps.zoomModule)) ? location = convertTileLatLongToPoint(new MapLocation(lng, lat), maps.tileZoomLevel, maps.tileTranslatePoint, true) : new Object();
|
|
10490
10521
|
}
|
|
10491
|
-
|
|
10492
|
-
|
|
10522
|
+
const scale = type === 'AddMarker' ? maps.scale : translatePoint['scale'];
|
|
10523
|
+
const transPoint = type === 'AddMarker' ? maps.translatePoint : translatePoint['location'];
|
|
10524
|
+
if (eventArgs.template && (!isNaN(location.x) && !isNaN(location.y))) {
|
|
10525
|
+
markerTemplateCount++;
|
|
10526
|
+
markerTemplate(eventArgs, templateFn, markerID, data, markerIndex, markerTemplateEle, location, transPoint, scale, offset, maps);
|
|
10527
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10528
|
+
maps.renderReactTemplates();
|
|
10529
|
+
}
|
|
10530
|
+
else if (!eventArgs.template && (!isNaN(location.x) && !isNaN(location.y))) {
|
|
10531
|
+
markerCount++;
|
|
10532
|
+
marker(eventArgs, markerSettings, markerData, dataIndex, location, transPoint, markerID, offset, scale, maps, this.markerSVGObject);
|
|
10493
10533
|
}
|
|
10494
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10495
|
-
maps.renderReactTemplates();
|
|
10496
10534
|
}
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10535
|
+
nullCount += (!isNaN(lat) && !isNaN(lng)) ? 0 : 1;
|
|
10536
|
+
markerTemplateCount += (eventArgs.cancel) ? 1 : 0;
|
|
10537
|
+
markerCount += (eventArgs.cancel) ? 1 : 0;
|
|
10538
|
+
maps.markerNullCount = (isNullOrUndefined(lng) || isNullOrUndefined(lat)) ?
|
|
10539
|
+
maps.markerNullCount + 1 : maps.markerNullCount;
|
|
10540
|
+
const markerDataLength = markerData.length - maps.markerNullCount;
|
|
10541
|
+
let isMarkersClustered = false;
|
|
10542
|
+
if (this.markerSVGObject.childElementCount === (markerDataLength - markerTemplateCount - nullCount) && (type !== 'Template')) {
|
|
10543
|
+
layerElement.appendChild(this.markerSVGObject);
|
|
10544
|
+
if (currentLayer.markerClusterSettings.allowClustering) {
|
|
10545
|
+
maps.svgObject.appendChild(this.markerSVGObject);
|
|
10546
|
+
maps.element.appendChild(maps.svgObject);
|
|
10547
|
+
if ((currentLayer.urlTemplate.indexOf('openstreetmap') !== -1 && isNullOrUndefined(currentLayer.shapeData))
|
|
10548
|
+
&& maps.zoomSettings.enable) {
|
|
10549
|
+
isMarkersClustered = clusterTemplate(currentLayer, this.markerSVGObject, maps, layerIndex, this.markerSVGObject, layerElement, true, false);
|
|
10550
|
+
layerElement.appendChild(this.markerSVGObject);
|
|
10551
|
+
}
|
|
10552
|
+
else {
|
|
10553
|
+
isMarkersClustered = clusterTemplate(currentLayer, this.markerSVGObject, maps, layerIndex, this.markerSVGObject, layerElement, true, false);
|
|
10554
|
+
}
|
|
10503
10555
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10504
10556
|
maps.renderReactTemplates();
|
|
10505
10557
|
}
|
|
10506
10558
|
}
|
|
10507
|
-
|
|
10559
|
+
if (markerTemplateEle.childElementCount === (markerDataLength - markerCount - nullCount) && getElementByID(maps.element.id + '_Secondary_Element')) {
|
|
10560
|
+
getElementByID(maps.element.id + '_Secondary_Element').appendChild(markerTemplateEle);
|
|
10561
|
+
if (maps.checkInitialRender) {
|
|
10562
|
+
if (currentLayer.markerClusterSettings.allowClustering && !isMarkersClustered) {
|
|
10563
|
+
clusterTemplate(currentLayer, markerTemplateEle, maps, layerIndex, this.markerSVGObject, layerElement, false, false);
|
|
10564
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10565
|
+
maps.renderReactTemplates();
|
|
10566
|
+
}
|
|
10567
|
+
}
|
|
10568
|
+
}
|
|
10569
|
+
});
|
|
10508
10570
|
});
|
|
10509
|
-
}
|
|
10571
|
+
}
|
|
10510
10572
|
});
|
|
10511
10573
|
}
|
|
10512
10574
|
/**
|
|
@@ -10563,35 +10625,37 @@ class Marker {
|
|
|
10563
10625
|
Array.prototype.forEach.call(currentLayer.markerSettings, (markerSetting) => {
|
|
10564
10626
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10565
10627
|
const markerData = markerSetting.dataSource;
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
!isNullOrUndefined(data['
|
|
10570
|
-
|
|
10571
|
-
!isNullOrUndefined(data['
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
minLong
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
minLat
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
maxLong
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
maxLat
|
|
10628
|
+
if (!isNullOrUndefined(markerData) && markerData.length > 0) {
|
|
10629
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10630
|
+
Array.prototype.forEach.call(markerData, (data, dataIndex) => {
|
|
10631
|
+
const latitude = !isNullOrUndefined(data['latitude']) ? parseFloat(data['latitude']) :
|
|
10632
|
+
!isNullOrUndefined(data['Latitude']) ? parseFloat(data['Latitude']) : null;
|
|
10633
|
+
const longitude = !isNullOrUndefined(data['longitude']) ? parseFloat(data['longitude']) :
|
|
10634
|
+
!isNullOrUndefined(data['Longitude']) ? parseFloat(data['Longitude']) : null;
|
|
10635
|
+
if (!isNullOrUndefined(latitude) && !isNullOrUndefined(longitude)) {
|
|
10636
|
+
minLong = isNullOrUndefined(minLong) && dataIndex === 0 ?
|
|
10637
|
+
longitude : minLong;
|
|
10638
|
+
maxLat = isNullOrUndefined(maxLat) && dataIndex === 0 ?
|
|
10639
|
+
latitude : maxLat;
|
|
10640
|
+
minLat = isNullOrUndefined(minLat) && dataIndex === 0 ?
|
|
10641
|
+
latitude : minLat;
|
|
10642
|
+
maxLong = isNullOrUndefined(maxLong) && dataIndex === 0 ?
|
|
10643
|
+
longitude : maxLong;
|
|
10644
|
+
if (minLong > longitude) {
|
|
10645
|
+
minLong = longitude;
|
|
10646
|
+
}
|
|
10647
|
+
if (minLat > latitude) {
|
|
10648
|
+
minLat = latitude;
|
|
10649
|
+
}
|
|
10650
|
+
if (maxLong < longitude) {
|
|
10651
|
+
maxLong = longitude;
|
|
10652
|
+
}
|
|
10653
|
+
if (maxLat < latitude) {
|
|
10654
|
+
maxLat = latitude;
|
|
10655
|
+
}
|
|
10592
10656
|
}
|
|
10593
|
-
}
|
|
10594
|
-
}
|
|
10657
|
+
});
|
|
10658
|
+
}
|
|
10595
10659
|
});
|
|
10596
10660
|
}
|
|
10597
10661
|
});
|
|
@@ -10700,7 +10764,7 @@ class Marker {
|
|
|
10700
10764
|
const layerIndex = parseInt(target.split('_LayerIndex_')[1].split('_')[0], 10);
|
|
10701
10765
|
const markerIndex = parseInt(target.split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
10702
10766
|
const dataIndex = parseInt(target.split('_dataIndex_')[1].split('_')[0], 10);
|
|
10703
|
-
const marker
|
|
10767
|
+
const marker = this.maps.layers[layerIndex].markerSettings[markerIndex];
|
|
10704
10768
|
if (this.sameMarkerData.length > 0) {
|
|
10705
10769
|
isCluster = (this.sameMarkerData[0].data.filter((el) => { return (el['index'] === dataIndex); })).length > 0 &&
|
|
10706
10770
|
this.sameMarkerData[0].layerIndex === layerIndex && this.sameMarkerData[0].markerIndex === markerIndex;
|
|
@@ -10717,8 +10781,8 @@ class Marker {
|
|
|
10717
10781
|
targetId: target, x: e.clientX, y: e.clientY,
|
|
10718
10782
|
latitude: options.data['latitude'] || options.data['Latitude'],
|
|
10719
10783
|
longitude: options.data['longitude'] || options.data['Longitude'],
|
|
10720
|
-
shape: isNullOrUndefined(marker
|
|
10721
|
-
: marker
|
|
10784
|
+
shape: isNullOrUndefined(marker.shapeValuePath) ? marker.shape
|
|
10785
|
+
: marker.dataSource[dataIndex][marker.shapeValuePath],
|
|
10722
10786
|
layerIndex: layerIndex, markerIndex: markerIndex, dataIndex: dataIndex
|
|
10723
10787
|
};
|
|
10724
10788
|
}
|
|
@@ -10779,19 +10843,19 @@ class Marker {
|
|
|
10779
10843
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10780
10844
|
const markCollection = [];
|
|
10781
10845
|
const clusterCollection = [];
|
|
10782
|
-
let marker
|
|
10846
|
+
let marker;
|
|
10783
10847
|
this.maps.markerClusterExpand = layer.markerClusterSettings.allowClusterExpand;
|
|
10784
10848
|
if (target.indexOf('_MarkerIndex_') > -1) {
|
|
10785
10849
|
const markerIndex = parseInt(id[1].split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
10786
10850
|
const dataIndex = parseInt(id[1].split('_dataIndex_')[1].split('_')[0], 10);
|
|
10787
|
-
marker
|
|
10851
|
+
marker = layer.markerSettings[markerIndex];
|
|
10788
10852
|
if (!isNaN(markerIndex)) {
|
|
10789
|
-
data = marker
|
|
10853
|
+
data = marker.dataSource[dataIndex];
|
|
10790
10854
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10791
10855
|
let collection = [];
|
|
10792
|
-
if (!marker
|
|
10856
|
+
if (!marker.template && (target.indexOf('_cluster_') > -1) && (this.maps.layers[index].markerClusterSettings.allowClusterExpand)) {
|
|
10793
10857
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10794
|
-
Array.prototype.forEach.call(marker
|
|
10858
|
+
Array.prototype.forEach.call(marker.dataSource, (location, index) => {
|
|
10795
10859
|
if (location['latitude'] === data['latitude'] && location['longitude'] === data['longitude']) {
|
|
10796
10860
|
collection.push({ data: data, index: index });
|
|
10797
10861
|
}
|
|
@@ -10803,8 +10867,8 @@ class Marker {
|
|
|
10803
10867
|
const indexes = layer.markerClusterSettings.shape === 'Balloon' ? clusterElement.children[0].textContent.split(',').map(Number) : clusterElement.textContent.split(',').map(Number);
|
|
10804
10868
|
collection = [];
|
|
10805
10869
|
for (const i of indexes) {
|
|
10806
|
-
collection.push({ data: marker
|
|
10807
|
-
markCollection.push(marker
|
|
10870
|
+
collection.push({ data: marker.dataSource[i], index: i });
|
|
10871
|
+
markCollection.push(marker.dataSource[i]);
|
|
10808
10872
|
}
|
|
10809
10873
|
isClusterSame = false;
|
|
10810
10874
|
clusterCollection.push({
|
|
@@ -10813,7 +10877,7 @@ class Marker {
|
|
|
10813
10877
|
isClusterSame: isClusterSame
|
|
10814
10878
|
});
|
|
10815
10879
|
}
|
|
10816
|
-
return { marker: marker
|
|
10880
|
+
return { marker: marker, data: data, clusterCollection: clusterCollection, markCollection: markCollection };
|
|
10817
10881
|
}
|
|
10818
10882
|
}
|
|
10819
10883
|
return null;
|
|
@@ -10932,12 +10996,14 @@ class Polygon {
|
|
|
10932
10996
|
id: maps.element.id + '_LayerIndex_' + layerIndex + '_Polygons_Group_' + polygonIndex
|
|
10933
10997
|
});
|
|
10934
10998
|
const polygonData = polygonSetting.points;
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10999
|
+
if (!isNullOrUndefined(polygonSetting.points) && polygonSetting.points.length > 0) {
|
|
11000
|
+
const path = calculatePolygonPath(maps, factor, currentLayer, polygonData);
|
|
11001
|
+
const pathOptions = new PathOption(maps.element.id + '_LayerIndex_' + layerIndex + '_PolygonIndex_' + polygonIndex, polygonSetting.fill, (polygonSetting.borderWidth / factor), polygonSetting.borderColor, polygonSetting.opacity, polygonSetting.borderOpacity, '', path);
|
|
11002
|
+
const polygonEle = maps.renderer.drawPath(pathOptions);
|
|
11003
|
+
maintainSelection(maps.selectedPolygonElementId, maps.polygonSelectionClass, polygonEle, 'PolygonselectionMapStyle');
|
|
11004
|
+
polygonSVGObject.appendChild(polygonEle);
|
|
11005
|
+
polygonsSVGObject.appendChild(polygonSVGObject);
|
|
11006
|
+
}
|
|
10941
11007
|
});
|
|
10942
11008
|
return polygonsSVGObject;
|
|
10943
11009
|
}
|
|
@@ -10975,7 +11041,7 @@ class DataLabel {
|
|
|
10975
11041
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10976
11042
|
let text;
|
|
10977
11043
|
let shapeNameValue;
|
|
10978
|
-
for (let i = 0; i < dataSource.length; i++) {
|
|
11044
|
+
for (let i = 0; i < (isNullOrUndefined(dataSource) ? 0 : dataSource.length); i++) {
|
|
10979
11045
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10980
11046
|
const data = dataSource[i];
|
|
10981
11047
|
const dataShapePathValue = !isNullOrUndefined(data[shapeDataPath]) && isNaN(data[shapeDataPath]) &&
|
|
@@ -11037,17 +11103,17 @@ class DataLabel {
|
|
|
11037
11103
|
let locationX;
|
|
11038
11104
|
let locationY;
|
|
11039
11105
|
style.fontFamily = this.maps.theme.toLowerCase() !== 'material' ? this.maps.themeStyle.labelFontFamily : style.fontFamily;
|
|
11040
|
-
style.fontWeight = style.fontWeight || this.maps.themeStyle.fontWeight
|
|
11106
|
+
style.fontWeight = style.fontWeight || this.maps.themeStyle.fontWeight;
|
|
11107
|
+
style.size = style.size || this.maps.themeStyle.fontSize;
|
|
11041
11108
|
shape = !isNullOrUndefined(shapes) ? shapes['property'] : null;
|
|
11042
11109
|
const properties = (Object.prototype.toString.call(layer.shapePropertyPath) === '[object Array]' ?
|
|
11043
11110
|
layer.shapePropertyPath : [layer.shapePropertyPath]);
|
|
11044
11111
|
let propertyPath;
|
|
11045
|
-
const
|
|
11046
|
-
const animate$$1 = (layer.animationDuration !== 0 || animationMode === 'Enable') || isNullOrUndefined(this.maps.zoomModule);
|
|
11112
|
+
const animate = (layer.animationDuration !== 0 || animationMode === 'Enable') || isNullOrUndefined(this.maps.zoomModule);
|
|
11047
11113
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11048
11114
|
const translate = (this.maps.isTileMap) ? new Object() : ((this.maps.zoomSettings.zoomFactor > 1 &&
|
|
11049
|
-
!isNullOrUndefined(this.maps.zoomModule)) ? getZoomTranslate(this.maps, layer, animate
|
|
11050
|
-
getTranslate(this.maps, layer, animate
|
|
11115
|
+
!isNullOrUndefined(this.maps.zoomModule)) ? getZoomTranslate(this.maps, layer, animate) :
|
|
11116
|
+
getTranslate(this.maps, layer, animate));
|
|
11051
11117
|
const scale = (this.maps.isTileMap) ? this.maps.scale : translate['scale'];
|
|
11052
11118
|
const transPoint = (this.maps.isTileMap) ? this.maps.translatePoint : translate['location'];
|
|
11053
11119
|
const zoomTransPoint = this.maps.zoomTranslatePoint;
|
|
@@ -11098,7 +11164,7 @@ class DataLabel {
|
|
|
11098
11164
|
text = (!isNullOrUndefined(datasrcObj)) ? !isNullOrUndefined(datasrcObj[labelpath]) ?
|
|
11099
11165
|
datasrcObj[labelpath].toString() : datasrcObj[layer.shapeDataPath] : shapeData['properties'][labelpath];
|
|
11100
11166
|
if ((Object.prototype.toString.call(layer.shapePropertyPath) === '[object Array]') &&
|
|
11101
|
-
(isNullOrUndefined(text) && layer.dataSource['length'] === 0)) {
|
|
11167
|
+
(isNullOrUndefined(text) && (!isNullOrUndefined(layer.dataSource) && layer.dataSource['length'] === 0))) {
|
|
11102
11168
|
for (let l = 0; l < layer.shapePropertyPath.length; l++) {
|
|
11103
11169
|
if (shapeData['properties'][layer.shapePropertyPath[l]]) {
|
|
11104
11170
|
text = shapeData['properties'][layer.shapePropertyPath[l]];
|
|
@@ -11109,20 +11175,12 @@ class DataLabel {
|
|
|
11109
11175
|
if (isNullOrUndefined(text) && (layer.dataLabelSettings.template !== '' && layer.dataSource['length'] === 0)) {
|
|
11110
11176
|
text = shapeData['properties'][layer.shapePropertyPath];
|
|
11111
11177
|
}
|
|
11112
|
-
if (isNullOrUndefined(text) && layer.dataSource['length'] > 0) {
|
|
11178
|
+
if (isNullOrUndefined(text) && (!isNullOrUndefined(layer.dataSource) && layer.dataSource['length'] > 0)) {
|
|
11113
11179
|
text = '';
|
|
11114
11180
|
}
|
|
11115
11181
|
const dataLabelText = text;
|
|
11116
11182
|
const projectionType = this.maps.projectionType;
|
|
11117
|
-
|
|
11118
|
-
location = {
|
|
11119
|
-
x: shapePoint[midIndex][index]['x'], y: shapePoint[midIndex][index]['y'],
|
|
11120
|
-
rightMin: 0, rightMax: 0, leftMin: 0, leftMax: 0,
|
|
11121
|
-
points: shapePoint[midIndex][index], topMax: 0, topMin: 0,
|
|
11122
|
-
bottomMax: 0, bottomMin: 0, height: 0
|
|
11123
|
-
};
|
|
11124
|
-
}
|
|
11125
|
-
else {
|
|
11183
|
+
{
|
|
11126
11184
|
location = findMidPointOfPolygon(shapePoint[midIndex], projectionType, layer.geometryType);
|
|
11127
11185
|
}
|
|
11128
11186
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -11181,7 +11239,7 @@ class DataLabel {
|
|
|
11181
11239
|
const start = ((location['y'] + transPoint['y']) * scale) - textSize['height'] / 2;
|
|
11182
11240
|
const end = ((location['y'] + transPoint['y']) * scale) + textSize['height'] / 2;
|
|
11183
11241
|
position = filter(shapePoint[midIndex], startY, endY);
|
|
11184
|
-
if (
|
|
11242
|
+
if ( position.length > 5 && (shapeData['geometry']['type'] !== 'MultiPolygon') &&
|
|
11185
11243
|
(shapeData['type'] !== 'MultiPolygon')) {
|
|
11186
11244
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11187
11245
|
const location1 = findMidPointOfPolygon(position, projectionType, layer.geometryType);
|
|
@@ -11463,7 +11521,7 @@ class NavigationLine {
|
|
|
11463
11521
|
dashArray = navigation[i].dashArray;
|
|
11464
11522
|
arrowSettings = navigation[i].arrowSettings;
|
|
11465
11523
|
showArrow = !isNullOrUndefined(arrowSettings) ? arrowSettings.showArrow : false;
|
|
11466
|
-
if (longitude.length === latitude.length && visible) {
|
|
11524
|
+
if (!isNullOrUndefined(longitude) && !isNullOrUndefined(latitude) && longitude.length === latitude.length && visible) {
|
|
11467
11525
|
for (let i = 0; i < longitude.length; i++) {
|
|
11468
11526
|
const location = (this.maps.isTileMap) ? convertTileLatLongToPoint(new Point(longitude[i], latitude[i]), factor, this.maps.tileTranslatePoint, true) : convertGeoToPoint(latitude[i], longitude[i], factor, layer, this.maps);
|
|
11469
11527
|
point.push(location);
|
|
@@ -12066,8 +12124,8 @@ class Legend {
|
|
|
12066
12124
|
}
|
|
12067
12125
|
if (legend.type === 'Markers' && legend.useMarkerShape) {
|
|
12068
12126
|
const legendShapeData = this.legendCollection[collection['idIndex']].data[0];
|
|
12069
|
-
const marker
|
|
12070
|
-
legendShape = !isNullOrUndefined(marker
|
|
12127
|
+
const marker = map.layers[legendShapeData['layerIndex']].markerSettings[legendShapeData['markerIndex']];
|
|
12128
|
+
legendShape = !isNullOrUndefined(marker.dataSource[legendShapeData['dataIndex']][marker['shapeValuePath']]) && marker.dataSource[legendShapeData['dataIndex']][marker['shapeValuePath']] !== '' ? marker.dataSource[legendShapeData['dataIndex']][marker['shapeValuePath']] : marker.shape;
|
|
12071
12129
|
}
|
|
12072
12130
|
if (legendShape === 'Balloon') {
|
|
12073
12131
|
legendElement.appendChild(drawBalloon(map, renderOptions, shapeSize, { x: shapeLocation.x, y: (shapeLocation.y + 5) }, 'Legend'));
|
|
@@ -12193,7 +12251,9 @@ class Legend {
|
|
|
12193
12251
|
}
|
|
12194
12252
|
else {
|
|
12195
12253
|
const layerIndex = currentItem[currentItem.length - 1].layerIndex;
|
|
12196
|
-
this.setToggleAttributes(legendTextElement, legendShapeElement, this.maps.layers[layerIndex].shapeSettings.fill, this.maps.layers[layerIndex].shapeSettings.opacity,
|
|
12254
|
+
this.setToggleAttributes(legendTextElement, legendShapeElement, this.maps.layers[layerIndex].shapeSettings.fill, this.maps.layers[layerIndex].shapeSettings.opacity,
|
|
12255
|
+
/* eslint-disable-next-line max-len */
|
|
12256
|
+
this.maps.layers[layerIndex].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor, isNullOrUndefined(this.maps.layers[layerIndex].shapeSettings.border.width)
|
|
12197
12257
|
? 0 : this.maps.layers[layerIndex].shapeSettings.border.width, isNullOrUndefined(this.maps.layers[layerIndex].shapeSettings.border.opacity)
|
|
12198
12258
|
? this.maps.layers[layerIndex].shapeSettings.opacity
|
|
12199
12259
|
: this.maps.layers[layerIndex].shapeSettings.border.opacity, this.maps.layers[layerIndex].shapeSettings.fill);
|
|
@@ -12392,7 +12452,7 @@ class Legend {
|
|
|
12392
12452
|
collection.push({
|
|
12393
12453
|
legendElement: targetElement, legendOldFill: oldElement['fill'], legendOldOpacity: oldElement['opacity'],
|
|
12394
12454
|
legendOldBorderColor: oldElement['borderColor'], legendOldBorderWidth: oldElement['borderWidth'],
|
|
12395
|
-
shapeOpacity: shapeSettings.opacity, shapeOldBorderColor: shapeSettings.border.color,
|
|
12455
|
+
shapeOpacity: shapeSettings.opacity, shapeOldBorderColor: shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor,
|
|
12396
12456
|
shapeOldBorderWidth: shapeSettings.border.width
|
|
12397
12457
|
});
|
|
12398
12458
|
const length = collection.length;
|
|
@@ -12869,7 +12929,8 @@ class Legend {
|
|
|
12869
12929
|
this.legendBorderRect = new Rect((this.legendItemRect.x - spacing), (this.legendItemRect.y - spacing - textSize.height), (this.legendItemRect.width) + (spacing * 2), (this.legendItemRect.height) + (spacing * 2) + textSize.height +
|
|
12870
12930
|
(legend.mode === 'Interactive' ? 0 : (this.page !== 0) ? spacing : 0));
|
|
12871
12931
|
const legendBorder = {
|
|
12872
|
-
color: legend.border.color
|
|
12932
|
+
color: legend.border.color || this.maps.themeStyle.legendBorderColor, opacity: legend.border.opacity,
|
|
12933
|
+
width: legend.border.width || this.maps.themeStyle.legendBorderWidth
|
|
12873
12934
|
};
|
|
12874
12935
|
legendBorder.opacity = isNullOrUndefined(legendBorder.opacity) ? 1 : legendBorder.opacity;
|
|
12875
12936
|
const renderOptions = new RectOption(map.element.id + '_Legend_Border', legend.background, legendBorder, 1, this.legendBorderRect, null, null, '', '');
|
|
@@ -12984,10 +13045,10 @@ class Legend {
|
|
|
12984
13045
|
}
|
|
12985
13046
|
}
|
|
12986
13047
|
getMarkersLegendCollections(layerIndex, markers) {
|
|
12987
|
-
Array.prototype.forEach.call(markers, (marker
|
|
13048
|
+
Array.prototype.forEach.call(markers, (marker, markerIndex) => {
|
|
12988
13049
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12989
|
-
const dataSource = marker
|
|
12990
|
-
const field = marker
|
|
13050
|
+
const dataSource = marker.dataSource;
|
|
13051
|
+
const field = marker.legendText;
|
|
12991
13052
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12992
13053
|
let templateFn;
|
|
12993
13054
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -12995,9 +13056,9 @@ class Legend {
|
|
|
12995
13056
|
let imageSrc = null;
|
|
12996
13057
|
const showLegend = isNullOrUndefined(data[this.maps.legendSettings.showLegendPath]) ? true :
|
|
12997
13058
|
data[this.maps.legendSettings.showLegendPath];
|
|
12998
|
-
if (marker
|
|
12999
|
-
if (marker
|
|
13000
|
-
templateFn = getTemplateFunction(marker
|
|
13059
|
+
if (marker.visible && showLegend && (!isNullOrUndefined(data['latitude'])) && (!isNullOrUndefined(data['longitude']))) {
|
|
13060
|
+
if (marker.template) {
|
|
13061
|
+
templateFn = getTemplateFunction(marker.template, this.maps);
|
|
13001
13062
|
const templateElement = templateFn(this.maps);
|
|
13002
13063
|
const markerEle = isNullOrUndefined(templateElement.childElementCount) ? templateElement[0] :
|
|
13003
13064
|
templateElement;
|
|
@@ -13005,7 +13066,7 @@ class Legend {
|
|
|
13005
13066
|
imageSrc = markerEle.querySelector('img').src;
|
|
13006
13067
|
}
|
|
13007
13068
|
const text = isNullOrUndefined(data[field]) ? '' : data[field];
|
|
13008
|
-
const legendFill = !isNullOrUndefined(marker
|
|
13069
|
+
const legendFill = !isNullOrUndefined(marker.colorValuePath) ? data[marker.colorValuePath] : marker.fill;
|
|
13009
13070
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13010
13071
|
const newData = [];
|
|
13011
13072
|
if (this.maps.legendSettings.removeDuplicateLegend) {
|
|
@@ -13015,7 +13076,7 @@ class Legend {
|
|
|
13015
13076
|
else {
|
|
13016
13077
|
newData.push({ layerIndex: layerIndex, markerIndex: markerIndex, dataIndex: dataIndex, value: legendFill,
|
|
13017
13078
|
name: text,
|
|
13018
|
-
shape: (!isNullOrUndefined(marker
|
|
13079
|
+
shape: (!isNullOrUndefined(marker.shapeValuePath) && !isNullOrUndefined(data[marker.shapeValuePath]) && data[marker.shapeValuePath] !== '') ? data[marker.shapeValuePath] : (this.maps.legendSettings.useMarkerShape ? marker.shape : this.maps.legendSettings.shape) });
|
|
13019
13080
|
this.getOverallLegendItemsCollection(text, legendFill, newData, showLegend);
|
|
13020
13081
|
}
|
|
13021
13082
|
}
|
|
@@ -13031,10 +13092,10 @@ class Legend {
|
|
|
13031
13092
|
const markerData = markerSettings.dataSource;
|
|
13032
13093
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13033
13094
|
Array.prototype.forEach.call(markerData, (data, dataIndex) => {
|
|
13034
|
-
const marker
|
|
13035
|
-
if ((text === data[marker
|
|
13095
|
+
const marker = this.maps.layers[layerIndex].markerSettings[markerIndex];
|
|
13096
|
+
if ((text === data[marker.legendText] || text === '') && legendFill === (data[marker.colorValuePath] || marker.fill)) {
|
|
13036
13097
|
legendData.push({ layerIndex: layerIndex, markerIndex: markerIndex, dataIndex: dataIndex, value: legendFill, name: text,
|
|
13037
|
-
shape: !isNullOrUndefined(marker
|
|
13098
|
+
shape: !isNullOrUndefined(marker.shapeValuePath) ? data[marker.shapeValuePath] : marker.shape });
|
|
13038
13099
|
}
|
|
13039
13100
|
});
|
|
13040
13101
|
});
|
|
@@ -13053,15 +13114,17 @@ class Legend {
|
|
|
13053
13114
|
legendText = !isNullOrUndefined(colorMap.label) ? colorMap.label : colorMap.from + ' - ' + colorMap.to;
|
|
13054
13115
|
rangeData = [];
|
|
13055
13116
|
let colorMapProcess = false;
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13117
|
+
if (!isNullOrUndefined(dataSource) && dataSource.length > 0) {
|
|
13118
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13119
|
+
Array.prototype.forEach.call(dataSource, (data, dataIndex) => {
|
|
13120
|
+
const colorValue = (colorValuePath.indexOf('.') > -1) ? Number(getValueFromObject(data, colorValuePath)) :
|
|
13121
|
+
parseFloat(data[colorValuePath]);
|
|
13122
|
+
if (colorValue >= colorMap.from && colorValue <= colorMap.to) {
|
|
13123
|
+
colorMapProcess = true;
|
|
13124
|
+
rangeData.push(this.getLegendData(layerIndex, dataIndex, data, dataPath, layerData, propertyPath, colorValue));
|
|
13125
|
+
}
|
|
13126
|
+
});
|
|
13127
|
+
}
|
|
13065
13128
|
if (!colorMapProcess) {
|
|
13066
13129
|
rangeData.push({
|
|
13067
13130
|
layerIndex: layerIndex, shapeIndex: null, dataIndex: null,
|
|
@@ -13143,23 +13206,25 @@ class Legend {
|
|
|
13143
13206
|
legendText = !isNullOrUndefined(colorMap.label) ? colorMap.label : colorMap.value;
|
|
13144
13207
|
equalData = [];
|
|
13145
13208
|
let eqaulColorProcess = false;
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
(data
|
|
13150
|
-
|
|
13151
|
-
|
|
13152
|
-
|
|
13153
|
-
equalValues.
|
|
13209
|
+
if (!isNullOrUndefined(dataSource) && dataSource.length > 0) {
|
|
13210
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13211
|
+
Array.prototype.forEach.call(dataSource, (data, dataIndex) => {
|
|
13212
|
+
const equalValue = ((colorValuePath.indexOf('.') > -1) ? (getValueFromObject(data, colorValuePath)) :
|
|
13213
|
+
(data[colorValuePath]));
|
|
13214
|
+
if (equalValue === colorMap.value) {
|
|
13215
|
+
eqaulColorProcess = true;
|
|
13216
|
+
if (equalValues.indexOf(equalValue) === -1) {
|
|
13217
|
+
equalValues.push(equalValue);
|
|
13218
|
+
}
|
|
13219
|
+
equalData.push(this.getLegendData(layerIndex, dataIndex, data, dataPath, layerData, propertyPath, equalValue));
|
|
13154
13220
|
}
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
outOfRangeValues.push(equalValue);
|
|
13221
|
+
else {
|
|
13222
|
+
if (outOfRangeValues.indexOf(equalValue) === -1) {
|
|
13223
|
+
outOfRangeValues.push(equalValue);
|
|
13224
|
+
}
|
|
13160
13225
|
}
|
|
13161
|
-
}
|
|
13162
|
-
}
|
|
13226
|
+
});
|
|
13227
|
+
}
|
|
13163
13228
|
for (let x = 0; x < equalValues.length; x++) {
|
|
13164
13229
|
for (let y = 0; y < outOfRangeValues.length; y++) {
|
|
13165
13230
|
if (equalValues[x] === outOfRangeValues[y]) {
|
|
@@ -13414,7 +13479,7 @@ class Legend {
|
|
|
13414
13479
|
if (isVisible && mapElement !== null) {
|
|
13415
13480
|
if (this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
13416
13481
|
mapElement.setAttribute('fill', this.maps.layers[k].shapeSettings.fill);
|
|
13417
|
-
mapElement.setAttribute('stroke', this.maps.layers[k].shapeSettings.border.color);
|
|
13482
|
+
mapElement.setAttribute('stroke', this.maps.layers[k].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor);
|
|
13418
13483
|
mapElement.setAttribute('fill-opacity', (this.maps.layers[k].shapeSettings.opacity).toString());
|
|
13419
13484
|
mapElement.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width) ? 0 : this.maps.layers[k].shapeSettings.border.width).toString());
|
|
13420
13485
|
mapElement.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.opacity) ?
|
|
@@ -13444,7 +13509,9 @@ class Legend {
|
|
|
13444
13509
|
this.setToggleAttributes(legendTextId, legendShapeId, legendToggleFill, legendToggleOpacity, legendToggleBorderColor, legendToggleBorderWidth, legendToggleBorderOpacity, legendToggleFill);
|
|
13445
13510
|
}
|
|
13446
13511
|
else {
|
|
13447
|
-
this.setToggleAttributes(legendTextId, legendShapeId, this.maps.layers[k].shapeSettings.fill, this.maps.layers[k].shapeSettings.opacity,
|
|
13512
|
+
this.setToggleAttributes(legendTextId, legendShapeId, this.maps.layers[k].shapeSettings.fill, this.maps.layers[k].shapeSettings.opacity,
|
|
13513
|
+
/* eslint-disable-next-line max-len */
|
|
13514
|
+
this.maps.layers[k].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor, isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width)
|
|
13448
13515
|
? 0 : this.maps.layers[k].shapeSettings.border.width,
|
|
13449
13516
|
/* eslint-disable-next-line max-len */
|
|
13450
13517
|
isNullOrUndefined(this.maps.layers[k].shapeSettings.border.opacity)
|
|
@@ -13501,7 +13568,7 @@ class Legend {
|
|
|
13501
13568
|
if (this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
13502
13569
|
layerElement.setAttribute('fill', this.maps.layers[j].shapeSettings.fill);
|
|
13503
13570
|
layerElement.setAttribute('fill-opacity', (this.maps.layers[j].shapeSettings.opacity).toString());
|
|
13504
|
-
layerElement.setAttribute('stroke', this.maps.layers[j].shapeSettings.border.color);
|
|
13571
|
+
layerElement.setAttribute('stroke', this.maps.layers[j].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor);
|
|
13505
13572
|
layerElement.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[j].shapeSettings.border.width) ? 0 : this.maps.layers[j].shapeSettings.border.width).toString());
|
|
13506
13573
|
layerElement.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[j].shapeSettings.border.opacity) ?
|
|
13507
13574
|
this.maps.layers[j].shapeSettings.opacity :
|
|
@@ -13521,7 +13588,9 @@ class Legend {
|
|
|
13521
13588
|
this.setToggleAttributes(legendTextId, legendShapeId, legendToggleFill, legendToggleOpacity, legendToggleBorderColor, legendToggleBorderWidth, legendToggleBorderOpacity, legendToggleFill);
|
|
13522
13589
|
}
|
|
13523
13590
|
else {
|
|
13524
|
-
this.setToggleAttributes(legendTextId, legendShapeId, this.maps.layers[j].shapeSettings.fill, this.maps.layers[j].shapeSettings.opacity,
|
|
13591
|
+
this.setToggleAttributes(legendTextId, legendShapeId, this.maps.layers[j].shapeSettings.fill, this.maps.layers[j].shapeSettings.opacity,
|
|
13592
|
+
/* eslint-disable-next-line max-len */
|
|
13593
|
+
this.maps.layers[j].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor, isNullOrUndefined(this.maps.layers[j].shapeSettings.border.width)
|
|
13525
13594
|
? 0 : this.maps.layers[j].shapeSettings.border.width,
|
|
13526
13595
|
/* eslint-disable-next-line max-len */
|
|
13527
13596
|
isNullOrUndefined(this.maps.layers[j].shapeSettings.border.opacity)
|
|
@@ -13543,7 +13612,7 @@ class Legend {
|
|
|
13543
13612
|
this.maps.layers[j].shapeSettings.border.opacity).toString());
|
|
13544
13613
|
layerElement.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[j].shapeSettings.border.width) ? 0 : this.maps.layers[j].shapeSettings.border.width).toString());
|
|
13545
13614
|
layerElement.setAttribute('fill-opacity', (this.maps.layers[j].shapeSettings.opacity).toString());
|
|
13546
|
-
layerElement.setAttribute('stroke', this.maps.layers[j].shapeSettings.border.color);
|
|
13615
|
+
layerElement.setAttribute('stroke', this.maps.layers[j].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor);
|
|
13547
13616
|
if (targetEle !== null) {
|
|
13548
13617
|
legendTextId = querySelector(this.maps.element.id + '_Legend_Text_Index_' + legendIndex, this.maps.element.id);
|
|
13549
13618
|
legendShapeId = querySelector(this.maps.element.id + '_Legend_Shape_Index_' + legendIndex, this.maps.element.id);
|
|
@@ -13593,7 +13662,7 @@ class Legend {
|
|
|
13593
13662
|
}
|
|
13594
13663
|
if (this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
13595
13664
|
LegendInteractive.setAttribute('fill', this.maps.layers[k].shapeSettings.fill);
|
|
13596
|
-
LegendInteractive.setAttribute('stroke', this.maps.layers[k].shapeSettings.border.color);
|
|
13665
|
+
LegendInteractive.setAttribute('stroke', this.maps.layers[k].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor);
|
|
13597
13666
|
LegendInteractive.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width) ? 0 : this.maps.layers[k].shapeSettings.border.width).toString());
|
|
13598
13667
|
LegendInteractive.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.opacity) ?
|
|
13599
13668
|
this.maps.layers[k].shapeSettings.opacity :
|
|
@@ -13614,7 +13683,9 @@ class Legend {
|
|
|
13614
13683
|
this.setToggleAttributes(legendTextId, legendShapeId, legendToggleFill, legendToggleOpacity, legendToggleBorderColor, legendToggleBorderWidth, legendToggleBorderOpacity, legendToggleFill);
|
|
13615
13684
|
}
|
|
13616
13685
|
else {
|
|
13617
|
-
this.setToggleAttributes(legendTextId, legendShapeId, this.maps.layers[k].shapeSettings.fill, this.maps.layers[k].shapeSettings.opacity,
|
|
13686
|
+
this.setToggleAttributes(legendTextId, legendShapeId, this.maps.layers[k].shapeSettings.fill, this.maps.layers[k].shapeSettings.opacity,
|
|
13687
|
+
/* eslint-disable-next-line max-len */
|
|
13688
|
+
this.maps.layers[k].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor,
|
|
13618
13689
|
/* eslint-disable-next-line max-len */
|
|
13619
13690
|
(isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width)
|
|
13620
13691
|
? 0
|
|
@@ -13675,7 +13746,7 @@ class Legend {
|
|
|
13675
13746
|
}
|
|
13676
13747
|
if (this.maps.legendSettings.toggleLegendSettings.applyShapeSettings) {
|
|
13677
13748
|
mapLegendElement.setAttribute('fill', this.maps.layers[0].shapeSettings.fill);
|
|
13678
|
-
mapLegendElement.setAttribute('stroke', this.maps.layers[0].shapeSettings.border.color);
|
|
13749
|
+
mapLegendElement.setAttribute('stroke', this.maps.layers[0].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor);
|
|
13679
13750
|
mapLegendElement.setAttribute('fill-opacity', (this.maps.layers[k].shapeSettings.opacity).toString());
|
|
13680
13751
|
mapLegendElement.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width) ? 0 : this.maps.layers[k].shapeSettings.border.width).toString());
|
|
13681
13752
|
mapLegendElement.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.opacity) ?
|
|
@@ -13696,7 +13767,9 @@ class Legend {
|
|
|
13696
13767
|
this.setToggleAttributes(legendTextId, legendShapeId, legendToggleFill, legendToggleOpacity, legendToggleBorderColor, legendToggleBorderWidth, legendToggleBorderOpacity, legendToggleFill);
|
|
13697
13768
|
}
|
|
13698
13769
|
else {
|
|
13699
|
-
this.setToggleAttributes(legendTextId, legendShapeId, this.maps.layers[0].shapeSettings.fill, this.maps.layers[k].shapeSettings.opacity,
|
|
13770
|
+
this.setToggleAttributes(legendTextId, legendShapeId, this.maps.layers[0].shapeSettings.fill, this.maps.layers[k].shapeSettings.opacity,
|
|
13771
|
+
/* eslint-disable-next-line max-len */
|
|
13772
|
+
this.maps.layers[0].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor, isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width)
|
|
13700
13773
|
? 0
|
|
13701
13774
|
: this.maps.layers[k].shapeSettings.border.width,
|
|
13702
13775
|
/* eslint-disable-next-line max-len */
|
|
@@ -13716,7 +13789,7 @@ class Legend {
|
|
|
13716
13789
|
mapLegendElement.setAttribute('fill-opacity', (this.maps.layers[k].shapeSettings.opacity).toString());
|
|
13717
13790
|
mapLegendElement.setAttribute('stroke-width', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.width) ? 0 :
|
|
13718
13791
|
this.maps.layers[k].shapeSettings.border.width).toString());
|
|
13719
|
-
mapLegendElement.setAttribute('stroke', this.maps.layers[0].shapeSettings.border.color);
|
|
13792
|
+
mapLegendElement.setAttribute('stroke', this.maps.layers[0].shapeSettings.border.color || this.maps.themeStyle.shapeBorderColor);
|
|
13720
13793
|
mapLegendElement.setAttribute('stroke-opacity', (isNullOrUndefined(this.maps.layers[k].shapeSettings.border.opacity) ?
|
|
13721
13794
|
this.maps.layers[k].shapeSettings.opacity :
|
|
13722
13795
|
this.maps.layers[k].shapeSettings.border.opacity).toString());
|
|
@@ -13962,10 +14035,10 @@ class Highlight {
|
|
|
13962
14035
|
this.highlightSettings = this.maps.layers[layerIndex].bubbleSettings[bubble].highlightSettings;
|
|
13963
14036
|
}
|
|
13964
14037
|
else if (targetEle.id.indexOf('MarkerIndex') > -1) {
|
|
13965
|
-
const marker
|
|
14038
|
+
const marker = parseInt(targetEle.id.split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
13966
14039
|
dataIndex = parseInt(targetEle.id.split('_dataIndex_')[1].split('_')[0], 10);
|
|
13967
|
-
data = this.maps.layers[layerIndex].markerSettings[marker
|
|
13968
|
-
this.highlightSettings = this.maps.layers[layerIndex].markerSettings[marker
|
|
14040
|
+
data = this.maps.layers[layerIndex].markerSettings[marker].dataSource[dataIndex];
|
|
14041
|
+
this.highlightSettings = this.maps.layers[layerIndex].markerSettings[marker].highlightSettings;
|
|
13969
14042
|
}
|
|
13970
14043
|
else if (targetEle.id.indexOf('_PolygonIndex_') > -1) {
|
|
13971
14044
|
dataIndex = parseInt(targetEle.id.split('_PolygonIndex_')[1].split('_')[0], 10);
|
|
@@ -14048,8 +14121,8 @@ class Highlight {
|
|
|
14048
14121
|
const layerIndex = parseInt(targetEle.id.split('_LayerIndex_')[1].split('_')[0], 10);
|
|
14049
14122
|
let isMarkerSelect = false;
|
|
14050
14123
|
if (targetEle.id.indexOf('MarkerIndex') > -1) {
|
|
14051
|
-
const marker
|
|
14052
|
-
isMarkerSelect = this.maps.layers[layerIndex].markerSettings[marker
|
|
14124
|
+
const marker = parseInt(targetEle.id.split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
14125
|
+
isMarkerSelect = this.maps.layers[layerIndex].markerSettings[marker].highlightSettings.enable;
|
|
14053
14126
|
}
|
|
14054
14127
|
const borderColor = (targetEle.parentElement.id.indexOf('LineString') === -1) ? this.highlightSettings.border.color : (this.highlightSettings.fill || this.highlightSettings.border.color);
|
|
14055
14128
|
const borderWidth = (targetEle.parentElement.id.indexOf('LineString') === -1) ? (this.highlightSettings.border.width / (isMarkerSelect ? 1 : this.maps.scale)) : (this.highlightSettings.border.width / this.maps.scale);
|
|
@@ -14610,22 +14683,22 @@ class MapsTooltip {
|
|
|
14610
14683
|
else if (targetId.indexOf('_MarkerIndex_') > -1) {
|
|
14611
14684
|
const markerIdex = parseInt(targetId.split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
14612
14685
|
const dataIndex = parseInt(targetId.split('_MarkerIndex_')[1].split('_')[2], 10);
|
|
14613
|
-
const marker
|
|
14614
|
-
option = marker
|
|
14615
|
-
templateData = marker
|
|
14686
|
+
const marker = layer.markerSettings[markerIdex];
|
|
14687
|
+
option = marker.tooltipSettings;
|
|
14688
|
+
templateData = marker.dataSource[dataIndex];
|
|
14616
14689
|
if (option.visible && !isNaN(markerIdex)) {
|
|
14617
|
-
if (marker
|
|
14618
|
-
currentData = this.formatter(marker
|
|
14690
|
+
if (marker.tooltipSettings.format) {
|
|
14691
|
+
currentData = this.formatter(marker.tooltipSettings.format, marker.dataSource[dataIndex]);
|
|
14619
14692
|
}
|
|
14620
14693
|
else {
|
|
14621
|
-
if (typeof marker
|
|
14622
|
-
currentData = marker
|
|
14694
|
+
if (typeof marker.template !== 'function' && marker.template && !marker.tooltipSettings.valuePath) {
|
|
14695
|
+
currentData = marker.template.split('>')[1].split('<')[0];
|
|
14623
14696
|
}
|
|
14624
14697
|
else {
|
|
14625
14698
|
currentData =
|
|
14626
|
-
formatValue(((marker
|
|
14627
|
-
(getValueFromObject(marker
|
|
14628
|
-
marker
|
|
14699
|
+
formatValue(((marker.tooltipSettings.valuePath.indexOf('.') > -1) ?
|
|
14700
|
+
(getValueFromObject(marker.dataSource[dataIndex], marker.tooltipSettings.valuePath)) :
|
|
14701
|
+
marker.dataSource[dataIndex][marker.tooltipSettings.valuePath]), this.maps);
|
|
14629
14702
|
}
|
|
14630
14703
|
}
|
|
14631
14704
|
}
|
|
@@ -14713,8 +14786,17 @@ class MapsTooltip {
|
|
|
14713
14786
|
|| this.maps.themeStyle.fontWeight;
|
|
14714
14787
|
tooltipArgs.options['textStyle']['opacity'] = tooltipArgs.options['textStyle']['opacity']
|
|
14715
14788
|
|| this.maps.themeStyle.tooltipTextOpacity;
|
|
14789
|
+
const borderObject = isPolygon ? {
|
|
14790
|
+
color: polygonTooltipOption.border.color ||
|
|
14791
|
+
this.maps.themeStyle.tooltipBorderColor, width: polygonTooltipOption.border.width,
|
|
14792
|
+
opacity: polygonTooltipOption.border.opacity
|
|
14793
|
+
} : {
|
|
14794
|
+
color: option.border.color ||
|
|
14795
|
+
this.maps.themeStyle.tooltipBorderColor, width: option.border.width, opacity: option.border.opacity
|
|
14796
|
+
};
|
|
14716
14797
|
if (tooltipArgs.cancel) {
|
|
14717
14798
|
this.svgTooltip = new Tooltip({
|
|
14799
|
+
theme: this.maps.theme,
|
|
14718
14800
|
enable: true,
|
|
14719
14801
|
header: '',
|
|
14720
14802
|
data: option['data'],
|
|
@@ -14729,11 +14811,12 @@ class MapsTooltip {
|
|
|
14729
14811
|
availableSize: this.maps.availableSize,
|
|
14730
14812
|
fill: option.fill || this.maps.themeStyle.tooltipFillColor,
|
|
14731
14813
|
enableShadow: true,
|
|
14732
|
-
border:
|
|
14814
|
+
border: borderObject
|
|
14733
14815
|
});
|
|
14734
14816
|
}
|
|
14735
14817
|
else {
|
|
14736
14818
|
this.svgTooltip = new Tooltip({
|
|
14819
|
+
theme: this.maps.theme,
|
|
14737
14820
|
enable: true,
|
|
14738
14821
|
header: '',
|
|
14739
14822
|
data: tooltipArgs.options['data'],
|
|
@@ -14748,7 +14831,7 @@ class MapsTooltip {
|
|
|
14748
14831
|
availableSize: this.maps.availableSize,
|
|
14749
14832
|
fill: tooltipArgs.fill || this.maps.themeStyle.tooltipFillColor,
|
|
14750
14833
|
enableShadow: true,
|
|
14751
|
-
border:
|
|
14834
|
+
border: borderObject
|
|
14752
14835
|
});
|
|
14753
14836
|
}
|
|
14754
14837
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -14980,10 +15063,8 @@ class Zoom {
|
|
|
14980
15063
|
this.maps = maps;
|
|
14981
15064
|
this.wheelEvent = this.browserName === 'mozilla' ? (this.isPointer ? 'mousewheel' : 'DOMMouseScroll') : 'mousewheel';
|
|
14982
15065
|
this.cancelEvent = this.isPointer ? 'pointerleave' : 'mouseleave';
|
|
14983
|
-
this.selectionColor = this.maps.zoomSettings.toolbarSettings.buttonSettings.selectionColor
|
|
14984
|
-
|
|
14985
|
-
this.fillColor = this.maps.zoomSettings.toolbarSettings.buttonSettings.color == null ? this.maps.zoomSettings.color :
|
|
14986
|
-
this.maps.zoomSettings.toolbarSettings.buttonSettings.color;
|
|
15066
|
+
this.selectionColor = this.maps.zoomSettings.toolbarSettings.buttonSettings.selectionColor;
|
|
15067
|
+
this.fillColor = this.maps.zoomSettings.toolbarSettings.buttonSettings.color;
|
|
14987
15068
|
this.addEventListener();
|
|
14988
15069
|
}
|
|
14989
15070
|
/**
|
|
@@ -15423,9 +15504,9 @@ class Zoom {
|
|
|
15423
15504
|
* @param {number} scale - Specifies the scale value
|
|
15424
15505
|
* @returns {void}
|
|
15425
15506
|
*/
|
|
15426
|
-
animateTransform(element, animate
|
|
15507
|
+
animateTransform(element, animate, x, y, scale) {
|
|
15427
15508
|
const duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
15428
|
-
if (!animate
|
|
15509
|
+
if (!animate || duration === 0 || this.maps.isTileMap) {
|
|
15429
15510
|
if (!(this.maps.isTileMap && element.id.indexOf('_Polygons_Group') > -1)) {
|
|
15430
15511
|
element.setAttribute('transform', 'scale(' + (scale) + ') translate( ' + x + ' ' + y + ' )');
|
|
15431
15512
|
}
|
|
@@ -15442,7 +15523,7 @@ class Zoom {
|
|
|
15442
15523
|
* @returns {void}
|
|
15443
15524
|
* @private
|
|
15444
15525
|
*/
|
|
15445
|
-
applyTransform(maps, animate
|
|
15526
|
+
applyTransform(maps, animate, isPanning) {
|
|
15446
15527
|
let layerIndex;
|
|
15447
15528
|
this.templateCount = 0;
|
|
15448
15529
|
let markerStyle;
|
|
@@ -15483,7 +15564,9 @@ class Zoom {
|
|
|
15483
15564
|
const markerData = polygonSettings.points;
|
|
15484
15565
|
const path = calculatePolygonPath(maps, maps.tileZoomLevel, this.currentLayer, markerData);
|
|
15485
15566
|
const element = document.getElementById(maps.element.id + '_LayerIndex_' + this.index + '_PolygonIndex_' + polygonIndex);
|
|
15486
|
-
element
|
|
15567
|
+
if (!isNullOrUndefined(element)) {
|
|
15568
|
+
element.setAttribute('d', path);
|
|
15569
|
+
}
|
|
15487
15570
|
});
|
|
15488
15571
|
document.getElementById(maps.element.id + '_LayerIndex_' + this.index + '_Polygons_Group').style.visibility = '';
|
|
15489
15572
|
}
|
|
@@ -15491,7 +15574,7 @@ class Zoom {
|
|
|
15491
15574
|
else if (currentEle.id.indexOf('Legend') === -1) {
|
|
15492
15575
|
changeBorderWidth(currentEle, this.index, scale, maps);
|
|
15493
15576
|
maps.zoomTranslatePoint = maps.translatePoint;
|
|
15494
|
-
this.animateTransform(currentEle, animate
|
|
15577
|
+
this.animateTransform(currentEle, animate, x, y, scale);
|
|
15495
15578
|
}
|
|
15496
15579
|
}
|
|
15497
15580
|
else if (currentEle.id.indexOf('_Markers_Group') > -1) {
|
|
@@ -15502,7 +15585,7 @@ class Zoom {
|
|
|
15502
15585
|
let markerAnimation;
|
|
15503
15586
|
if (!isNullOrUndefined(currentEle) && currentEle.id.indexOf('Markers') !== -1) {
|
|
15504
15587
|
Array.prototype.forEach.call(currentEle.childNodes, (childNode, k) => {
|
|
15505
|
-
this.markerTranslate(childNode, factor, x, y, scale, 'Marker', animate
|
|
15588
|
+
this.markerTranslate(childNode, factor, x, y, scale, 'Marker', animate);
|
|
15506
15589
|
const dataIndex = parseInt(childNode['id'].split('_dataIndex_')[1].split('_')[0], 10);
|
|
15507
15590
|
const markerIndex = parseInt(childNode['id'].split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
15508
15591
|
markerAnimation = this.currentLayer.markerSettings[markerIndex].animationDuration > 0 || animationMode === 'Enable';
|
|
@@ -15580,7 +15663,7 @@ class Zoom {
|
|
|
15580
15663
|
const currentX = ((centerX + x) * scale);
|
|
15581
15664
|
const currentY = ((centerY + y) * scale);
|
|
15582
15665
|
const duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
15583
|
-
if (!animate
|
|
15666
|
+
if (!animate || duration === 0) {
|
|
15584
15667
|
childElement.setAttribute('transform', 'translate( ' + currentX + ' ' + currentY + ' )');
|
|
15585
15668
|
}
|
|
15586
15669
|
else {
|
|
@@ -15594,7 +15677,7 @@ class Zoom {
|
|
|
15594
15677
|
else if (currentEle.id.indexOf('_dataLableIndex_Group') > -1 && !isNullOrUndefined(maps.layers[this.index])) {
|
|
15595
15678
|
maps.zoomLabelPositions = [];
|
|
15596
15679
|
maps.zoomLabelPositions = maps.dataLabelModule.dataLabelCollections;
|
|
15597
|
-
const labelAnimate = !maps.isTileMap && animate
|
|
15680
|
+
const labelAnimate = !maps.isTileMap && animate;
|
|
15598
15681
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15599
15682
|
const intersect = [];
|
|
15600
15683
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -15630,7 +15713,7 @@ class Zoom {
|
|
|
15630
15713
|
maps.arrangeTemplate();
|
|
15631
15714
|
}
|
|
15632
15715
|
if (!isNullOrUndefined(this.currentLayer)) {
|
|
15633
|
-
if (!animate
|
|
15716
|
+
if (!animate || this.currentLayer.animationDuration === 0 || maps.isTileMap) {
|
|
15634
15717
|
this.processTemplate(x, y, scale, maps);
|
|
15635
15718
|
}
|
|
15636
15719
|
}
|
|
@@ -15794,7 +15877,7 @@ class Zoom {
|
|
|
15794
15877
|
}
|
|
15795
15878
|
}
|
|
15796
15879
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15797
|
-
dataLabelTranslate(element, factor, x, y, scale, type, animate
|
|
15880
|
+
dataLabelTranslate(element, factor, x, y, scale, type, animate = false, currentLabelIndex, isPanning, intersect) {
|
|
15798
15881
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15799
15882
|
const labelCollection = this.maps.dataLabelModule.dataLabelCollections;
|
|
15800
15883
|
let text;
|
|
@@ -15842,7 +15925,7 @@ class Zoom {
|
|
|
15842
15925
|
labelX = ((labelX + x) * scale);
|
|
15843
15926
|
labelY = ((labelY + y) * scale);
|
|
15844
15927
|
zoomtext = label['dataLabelText'];
|
|
15845
|
-
if (!animate
|
|
15928
|
+
if (!animate || duration === 0) {
|
|
15846
15929
|
element.setAttribute('transform', 'translate( ' + labelX + ' ' + labelY + ' )');
|
|
15847
15930
|
}
|
|
15848
15931
|
if ((isNullOrUndefined(isPanning) || !isPanning) && (this.maps.layers[this.index].dataLabelSettings.smartLabelMode !== 'None' ||
|
|
@@ -15939,51 +16022,38 @@ class Zoom {
|
|
|
15939
16022
|
}
|
|
15940
16023
|
}
|
|
15941
16024
|
}
|
|
15942
|
-
if (animate
|
|
16025
|
+
if (animate || duration > 0) {
|
|
15943
16026
|
smoothTranslate(element, 0, duration, new MapLocation(labelX, labelY));
|
|
15944
16027
|
}
|
|
15945
16028
|
}
|
|
15946
16029
|
}
|
|
15947
16030
|
}
|
|
15948
|
-
markerTranslate(element, factor, x, y, scale, type, animate
|
|
16031
|
+
markerTranslate(element, factor, x, y, scale, type, animate = false) {
|
|
15949
16032
|
const layerIndex = parseInt(element.id.split('_LayerIndex_')[1].split('_')[0], 10);
|
|
15950
16033
|
const markerIndex = parseInt(element.id.split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
15951
16034
|
const dataIndex = parseInt(element.id.split('_dataIndex_')[1].split('_')[0], 10);
|
|
15952
16035
|
const layer = this.maps.layersCollection[layerIndex];
|
|
15953
|
-
const marker
|
|
15954
|
-
if (!isNullOrUndefined(marker
|
|
15955
|
-
const lng = (!isNullOrUndefined(marker
|
|
15956
|
-
Number(getValueFromObject(marker
|
|
15957
|
-
!isNullOrUndefined(marker
|
|
15958
|
-
!isNullOrUndefined(marker
|
|
15959
|
-
const lat = (!isNullOrUndefined(marker
|
|
15960
|
-
Number(getValueFromObject(marker
|
|
15961
|
-
!isNullOrUndefined(marker
|
|
15962
|
-
!isNullOrUndefined(marker
|
|
16036
|
+
const marker = layer.markerSettings[markerIndex];
|
|
16037
|
+
if (!isNullOrUndefined(marker) && !isNullOrUndefined(marker.dataSource) && !isNullOrUndefined(marker.dataSource[dataIndex])) {
|
|
16038
|
+
const lng = (!isNullOrUndefined(marker.longitudeValuePath)) ?
|
|
16039
|
+
Number(getValueFromObject(marker.dataSource[dataIndex], marker.longitudeValuePath)) :
|
|
16040
|
+
!isNullOrUndefined(marker.dataSource[dataIndex]['longitude']) ? parseFloat(marker.dataSource[dataIndex]['longitude']) :
|
|
16041
|
+
!isNullOrUndefined(marker.dataSource[dataIndex]['Longitude']) ? parseFloat(marker.dataSource[dataIndex]['Longitude']) : 0;
|
|
16042
|
+
const lat = (!isNullOrUndefined(marker.latitudeValuePath)) ?
|
|
16043
|
+
Number(getValueFromObject(marker.dataSource[dataIndex], marker.latitudeValuePath)) :
|
|
16044
|
+
!isNullOrUndefined(marker.dataSource[dataIndex]['latitude']) ? parseFloat(marker.dataSource[dataIndex]['latitude']) :
|
|
16045
|
+
!isNullOrUndefined(marker.dataSource[dataIndex]['Latitude']) ? parseFloat(marker.dataSource[dataIndex]['Latitude']) : 0;
|
|
15963
16046
|
const duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
15964
16047
|
const location = (this.maps.isTileMap) ? convertTileLatLongToPoint(new Point(lng, lat), this.maps.tileZoomLevel, this.maps.tileTranslatePoint, true) : convertGeoToPoint(lat, lng, factor, layer, this.maps);
|
|
15965
16048
|
if (this.maps.isTileMap) {
|
|
15966
16049
|
if (type === 'Template') {
|
|
15967
16050
|
const templateOffset = element.getBoundingClientRect();
|
|
15968
|
-
element.style.left = ((location.x - (templateOffset.width / 2)) + marker
|
|
15969
|
-
element.style.top = ((location.y - (templateOffset.height / 2)) + marker
|
|
15970
|
-
if (this.maps.layers[this.maps.baseLayerIndex].layerType === 'GoogleStaticMap') {
|
|
15971
|
-
const staticMapOffset = getElementByID(this.maps.element.id + '_StaticGoogleMap').getBoundingClientRect();
|
|
15972
|
-
const staticMapOffsetWidth = 640;
|
|
15973
|
-
if (element['style']['display'] !== 'none') {
|
|
15974
|
-
if ((staticMapOffset['x'] > templateOffset['x'] || staticMapOffset['x'] + staticMapOffsetWidth < templateOffset['x'] + templateOffset['width'])
|
|
15975
|
-
&& (staticMapOffset['y'] > templateOffset['y'] || staticMapOffset['y'] + staticMapOffset['height'] < templateOffset['y'] + templateOffset['height'])) {
|
|
15976
|
-
element.style.display = 'none';
|
|
15977
|
-
}
|
|
15978
|
-
else if ((staticMapOffset['x'] > templateOffset['x'] || staticMapOffset['x'] + staticMapOffsetWidth < templateOffset['x'] + templateOffset['width'])) {
|
|
15979
|
-
element.style.display = 'none';
|
|
15980
|
-
}
|
|
15981
|
-
}
|
|
15982
|
-
}
|
|
16051
|
+
element.style.left = ((location.x - (templateOffset.width / 2)) + marker.offset.x) + 'px';
|
|
16052
|
+
element.style.top = ((location.y - (templateOffset.height / 2)) + marker.offset.y) + 'px';
|
|
15983
16053
|
}
|
|
15984
16054
|
else {
|
|
15985
|
-
location.x += marker
|
|
15986
|
-
location.y += marker
|
|
16055
|
+
location.x += marker.offset.x;
|
|
16056
|
+
location.y += marker.offset.y;
|
|
15987
16057
|
element.setAttribute('transform', 'translate( ' + location.x + ' ' + location.y + ' )');
|
|
15988
16058
|
}
|
|
15989
16059
|
}
|
|
@@ -15994,20 +16064,20 @@ class Zoom {
|
|
|
15994
16064
|
location.y = ((Math.abs(this.maps.baseMapRectBounds['min']['y'] - location.y)) * scale);
|
|
15995
16065
|
const layerOffset = getElementByID(this.maps.element.id + '_Layer_Collections').getBoundingClientRect();
|
|
15996
16066
|
const elementOffset = element.parentElement.getBoundingClientRect();
|
|
15997
|
-
element.style.left = (((location.x) + (layerOffset.left - elementOffset.left)) + marker
|
|
15998
|
-
element.style.top = (((location.y) + (layerOffset.top - elementOffset.top)) + marker
|
|
16067
|
+
element.style.left = (((location.x) + (layerOffset.left - elementOffset.left)) + marker.offset.x) + 'px';
|
|
16068
|
+
element.style.top = (((location.y) + (layerOffset.top - elementOffset.top)) + marker.offset.y) + 'px';
|
|
15999
16069
|
element.style.transform = 'translate(-50%, -50%)';
|
|
16000
16070
|
}
|
|
16001
16071
|
else {
|
|
16002
16072
|
const elementOffset = element.getBoundingClientRect();
|
|
16003
|
-
element.style.left = ((location.x + x) * scale) + marker
|
|
16004
|
-
element.style.top = ((location.y + y) * scale) + marker
|
|
16073
|
+
element.style.left = ((location.x + x) * scale) + marker.offset.x - this.maps.mapAreaRect.x - (elementOffset.width / 2) + 'px';
|
|
16074
|
+
element.style.top = ((location.y + y) * scale) + marker.offset.y - this.maps.mapAreaRect.y - (elementOffset.height / 2) + 'px';
|
|
16005
16075
|
}
|
|
16006
16076
|
}
|
|
16007
16077
|
else {
|
|
16008
|
-
location.x = (((location.x + x) * scale) + marker
|
|
16009
|
-
location.y = (((location.y + y) * scale) + marker
|
|
16010
|
-
if (!animate
|
|
16078
|
+
location.x = (((location.x + x) * scale) + marker.offset.x);
|
|
16079
|
+
location.y = (((location.y + y) * scale) + marker.offset.y);
|
|
16080
|
+
if (!animate || duration === 0) {
|
|
16011
16081
|
element.setAttribute('transform', 'translate( ' + location.x + ' ' + location.y + ' )');
|
|
16012
16082
|
}
|
|
16013
16083
|
else {
|
|
@@ -16257,44 +16327,44 @@ class Zoom {
|
|
|
16257
16327
|
const toolbar = map.zoomSettings.toolbarSettings;
|
|
16258
16328
|
const button = map.zoomSettings.toolbarSettings.buttonSettings;
|
|
16259
16329
|
this.maps.toolbarProperties = {
|
|
16260
|
-
toolBarOrientation: toolbar.orientation
|
|
16261
|
-
highlightColor: button.highlightColor
|
|
16262
|
-
selectionColor: button.selectionColor
|
|
16263
|
-
horizontalAlignment: toolbar.horizontalAlignment
|
|
16264
|
-
verticalAlignment: toolbar.verticalAlignment
|
|
16265
|
-
color: button.color
|
|
16266
|
-
shapeOpacity: button.opacity
|
|
16267
|
-
borderOpacity: button.borderOpacity
|
|
16330
|
+
toolBarOrientation: toolbar.orientation,
|
|
16331
|
+
highlightColor: button.highlightColor,
|
|
16332
|
+
selectionColor: button.selectionColor,
|
|
16333
|
+
horizontalAlignment: toolbar.horizontalAlignment,
|
|
16334
|
+
verticalAlignment: toolbar.verticalAlignment,
|
|
16335
|
+
color: button.color,
|
|
16336
|
+
shapeOpacity: button.opacity,
|
|
16337
|
+
borderOpacity: button.borderOpacity
|
|
16268
16338
|
};
|
|
16269
|
-
const
|
|
16270
|
-
const
|
|
16271
|
-
const
|
|
16339
|
+
const buttonRadius = button.radius || map.themeStyle.zoomButtonRadius;
|
|
16340
|
+
const cx = buttonRadius / 4;
|
|
16341
|
+
const cy = buttonRadius / 4;
|
|
16342
|
+
const radius = buttonRadius / 2;
|
|
16272
16343
|
const padding = button.padding;
|
|
16273
16344
|
const orientation = this.maps.toolbarProperties.toolBarOrientation;
|
|
16274
16345
|
const toolbarCollection = map.zoomSettings.toolbarSettings.buttonSettings.toolbarItems.map((value) => { return value; });
|
|
16275
|
-
|
|
16276
|
-
|
|
16277
|
-
ySpacing = (button.radius / 4) + (button.borderWidth / 2) + padding;
|
|
16346
|
+
xSpacing = (buttonRadius / 4) + (button.borderWidth / 2) + padding;
|
|
16347
|
+
ySpacing = (buttonRadius / 4) + (button.borderWidth / 2) + padding;
|
|
16278
16348
|
let shadowElement = '<filter id="chart_shadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="5"/>';
|
|
16279
16349
|
shadowElement += '<feOffset dx="-3" dy="4" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="1"/>';
|
|
16280
16350
|
shadowElement += '</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';
|
|
16281
16351
|
const toolBarLength = toolbarCollection.length;
|
|
16282
|
-
const toolWidth = (orientation === 'Horizontal') ? ((toolBarLength *
|
|
16283
|
-
const toolHeight = (orientation === 'Horizontal') ? (
|
|
16352
|
+
const toolWidth = (orientation === 'Horizontal') ? ((toolBarLength * buttonRadius) + (toolBarLength * padding) + padding + (toolBarLength * button.borderWidth)) : (buttonRadius + button.borderWidth + (2 * padding));
|
|
16353
|
+
const toolHeight = (orientation === 'Horizontal') ? (buttonRadius + button.borderWidth + (2 * padding)) : ((toolBarLength * buttonRadius) + (toolBarLength * padding) + padding + (toolBarLength * button.borderWidth));
|
|
16284
16354
|
const defElement = map.renderer.createDefs();
|
|
16285
16355
|
defElement.innerHTML = shadowElement;
|
|
16286
16356
|
this.toolBarGroup.appendChild(defElement);
|
|
16287
16357
|
const outerElement = map.renderer.drawRectangle(new RectOption(map.element.id + '_Zooming_Rect', toolbar.backgroundColor, { color: toolbar.borderColor, width: toolbar.borderWidth, opacity: toolbar.borderOpacity }, toolbar.borderOpacity, new Rect((toolbar.borderWidth / 2), (toolbar.borderWidth / 2), (toolWidth - toolbar.borderWidth), (toolHeight - toolbar.borderWidth)), 0, 0));
|
|
16288
16358
|
this.toolBarGroup.appendChild(outerElement);
|
|
16289
|
-
const scaleX = (
|
|
16290
|
-
for (let i = 0; i <
|
|
16359
|
+
const scaleX = (buttonRadius - (button.borderWidth / 2)) / 30;
|
|
16360
|
+
for (let i = 0; i < toolbarCollection.length; i++) {
|
|
16291
16361
|
if (i !== 0) {
|
|
16292
|
-
xSpacing = (map.toolbarProperties.toolBarOrientation === 'Horizontal') ? (xSpacing + (
|
|
16293
|
-
ySpacing = (map.toolbarProperties.toolBarOrientation === 'Horizontal') ? ySpacing : (ySpacing + (
|
|
16362
|
+
xSpacing = (map.toolbarProperties.toolBarOrientation === 'Horizontal') ? (xSpacing + (buttonRadius + padding) + button.borderWidth) : xSpacing;
|
|
16363
|
+
ySpacing = (map.toolbarProperties.toolBarOrientation === 'Horizontal') ? ySpacing : (ySpacing + (buttonRadius + padding) + button.borderWidth);
|
|
16294
16364
|
}
|
|
16295
|
-
const toolbar =
|
|
16365
|
+
const toolbar = toolbarCollection[i];
|
|
16296
16366
|
const pathStroke = !isNullOrUndefined(this.maps.toolbarProperties.color) ? this.maps.toolbarProperties.color : this.maps.themeStyle.zoomFillColor;
|
|
16297
|
-
const borderColor = button.borderColor || this.maps.themeStyle.zoomFillColor;
|
|
16367
|
+
const borderColor = button.borderColor || (this.maps.themeStyle.zoomBorderColor || this.maps.themeStyle.zoomFillColor);
|
|
16298
16368
|
this.currentToolbarEle = map.renderer.createGroup({
|
|
16299
16369
|
id: map.element.id + '_Zooming_ToolBar_' + toolbar + '_Group',
|
|
16300
16370
|
transform: 'translate( ' + xSpacing + ' ' + ySpacing + ' ) '
|
|
@@ -16942,7 +17012,6 @@ class Zoom {
|
|
|
16942
17012
|
let pageX;
|
|
16943
17013
|
let pageY;
|
|
16944
17014
|
const map = this.maps;
|
|
16945
|
-
//eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
16946
17015
|
let target;
|
|
16947
17016
|
let touches = null;
|
|
16948
17017
|
const zoom = this.maps.zoomSettings;
|
|
@@ -17267,10 +17336,13 @@ class Print {
|
|
|
17267
17336
|
backgroundElement = backgroundElement.childNodes[0];
|
|
17268
17337
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
17269
17338
|
const backgroundColor = backgroundElement.getAttribute('fill');
|
|
17270
|
-
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3'
|
|
17339
|
+
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
|
|
17340
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
17271
17341
|
backgroundElement.setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
17272
17342
|
}
|
|
17273
|
-
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark'
|
|
17343
|
+
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
|
|
17344
|
+
maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
|
|
17345
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
17274
17346
|
backgroundElement.setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
17275
17347
|
}
|
|
17276
17348
|
}
|
|
@@ -17372,10 +17444,13 @@ class ImageExport {
|
|
|
17372
17444
|
const svgObject = getElementByID(maps.element.id + '_svg').cloneNode(true);
|
|
17373
17445
|
const backgroundElement = svgObject.childNodes[0];
|
|
17374
17446
|
const backgroundColor = backgroundElement.getAttribute('fill');
|
|
17375
|
-
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3'
|
|
17447
|
+
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
|
|
17448
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
17376
17449
|
svgObject.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
17377
17450
|
}
|
|
17378
|
-
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark'
|
|
17451
|
+
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
|
|
17452
|
+
maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
|
|
17453
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
17379
17454
|
svgObject.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
17380
17455
|
}
|
|
17381
17456
|
if (!maps.isTileMap) {
|
|
@@ -17555,10 +17630,13 @@ class PdfExport {
|
|
|
17555
17630
|
const exportElement = maps.svgObject.cloneNode(true);
|
|
17556
17631
|
const backgroundElement = exportElement.childNodes[0];
|
|
17557
17632
|
const backgroundColor = backgroundElement.getAttribute('fill');
|
|
17558
|
-
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3'
|
|
17633
|
+
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
|
|
17634
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
17559
17635
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
17560
17636
|
}
|
|
17561
|
-
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark'
|
|
17637
|
+
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
|
|
17638
|
+
maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
|
|
17639
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
17562
17640
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
17563
17641
|
}
|
|
17564
17642
|
const url = window.URL.createObjectURL(new Blob(type === 'SVG' ? [svgData] :
|
|
@@ -17678,13 +17756,5 @@ class PdfExport {
|
|
|
17678
17756
|
destroy() { }
|
|
17679
17757
|
}
|
|
17680
17758
|
|
|
17681
|
-
|
|
17682
|
-
* export all modules from maps component
|
|
17683
|
-
*/
|
|
17684
|
-
|
|
17685
|
-
/**
|
|
17686
|
-
* exporting all modules from maps index
|
|
17687
|
-
*/
|
|
17688
|
-
|
|
17689
|
-
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 };
|
|
17759
|
+
export { Annotation, Annotations, Arrow, BingMap, Border, Bubble, BubbleSettings, CenterPosition, CircleOption, ColorMapping, ColorMappingSettings, ColorValue, CommonTitleSettings, ConnectorLineSettings, Coordinate, DataLabel, DataLabelSettings, Font, GeoLocation, Highlight, HighlightSettings, ImageExport, InitialMarkerSelectionSettings, InitialShapeSelectionSettings, Internalize, LayerPanel, LayerSettings, Legend, LegendSettings, Line, LineOption, MapAjax, MapLocation, Maps, MapsAreaSettings, MapsTooltip, Margin, Marker, MarkerBase, MarkerClusterData, MarkerClusterSettings, MarkerSettings, MinMax, NavigationLine, NavigationLineSettings, PathOption, PatternOptions, PdfExport, Point, Polygon, PolygonOption, PolygonSetting, PolygonSettings, PolygonTooltipSettings, PolylineOption, Print, Rect, RectOption, Selection, SelectionSettings, ShapeSettings, Size, SubTitleSettings, TextOption, Tile, TitleSettings, ToggleLegendSettings, TooltipSettings, Zoom, ZoomSettings, ZoomToolbarButtonSettings, ZoomToolbarSettings, ZoomToolbarTooltipSettings, acos, aitoff, animate, animationComplete, annotationRendering, appendShape, beforePrint, bubbleClick, bubbleMouseMove, bubbleRendering, calculateBound, calculateCenterFromPixel, calculatePolygonPath, calculateScale, calculateShapes, calculateSize, calculateZoomLevel, changeBorderWidth, changeNavaigationLineWidth, checkPropertyPath, checkShapeDataFields, click, clusterSeparate, clusterTemplate, compareZoomFactor, convertElement, convertElementFromLabel, convertGeoToPoint, convertStringToValue, convertTileLatLongToPoint, createStyle, createSvg, createTooltip, customizeStyle, dataLabelRendering, degreesToRadians, doubleClick, drawBalloon, drawCircle, drawCross, drawDiamond, drawHorizontalLine, drawLine, drawPath, drawPattern, drawPolygon, drawPolyline, drawRectangle, drawStar, drawSymbol, drawSymbols, drawTriangle, drawVerticalLine, elementAnimate, filter, findMidPointOfPolygon, findPosition, fixInitialScaleForTile, formatValue, getClientElement, getDistance, getElement, getElementByID, getElementOffset, getElementsByClassName, getFieldData, getHexColor, getMousePosition, getRatioOfBubble, getShapeData, getTargetElement, getTemplateFunction, getTouchCenter, getTouches, getTranslate, getValueFromObject, getZoomTranslate, isCustomPath, itemHighlight, itemSelection, layerRendering, legendRendering, load, loaded, maintainSelection, maintainStyleClass, maintainToggleSelection, marker, markerBoundsComparer, markerClick, markerClusterClick, markerClusterListHandler, markerClusterMouseMove, markerClusterRendering, markerColorChoose, markerDragEnd, markerDragStart, markerMouseMove, markerRendering, markerShapeChoose, markerTemplate, measureText, measureTextElement, mergeSeparateCluster, mousedown, mousemove, mouseup, onclick, pan, panComplete, processResult, querySelector, radiansToDegrees, removeClass, removeElement, renderLegendShape, renderTextElement, resize, rightClick, roundTo, shapeHighlight, shapeRendering, shapeSelected, showTooltip, sinci, smoothTranslate, stringToNumber, sum, targetTouches, textTrim, timeout, tooltipRender, triggerDownload, triggerItemSelectionEvent, triggerShapeEvent, wordWrap, xToCoordinate, yToCoordinate, zoomAnimate, zoomComplete, zoomIn, zoomOut };
|
|
17690
17760
|
//# sourceMappingURL=ej2-maps.es2015.js.map
|