@syncfusion/ej2-maps 19.2.60 → 19.3.53
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 +1 -1
- package/CHANGELOG.md +10 -4
- package/README.md +3 -3
- 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 +182 -393
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +182 -394
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/maps/layers/bubble.js +3 -24
- package/src/maps/layers/data-label.js +5 -17
- package/src/maps/layers/layer-panel.js +0 -22
- package/src/maps/layers/legend.js +1 -1
- package/src/maps/layers/marker.js +0 -16
- package/src/maps/maps-model.d.ts +1 -28
- package/src/maps/maps.d.ts +1 -38
- package/src/maps/maps.js +39 -86
- package/src/maps/model/base-model.d.ts +0 -5
- package/src/maps/model/base.d.ts +0 -5
- package/src/maps/model/export-pdf.js +1 -1
- package/src/maps/model/theme.js +54 -1
- package/src/maps/user-interaction/annotation.js +3 -7
- package/src/maps/user-interaction/highlight.js +0 -13
- package/src/maps/user-interaction/selection.js +0 -13
- package/src/maps/user-interaction/tooltip.js +52 -122
- package/src/maps/user-interaction/zoom.js +19 -68
- package/src/maps/utils/enum.d.ts +5 -1
- package/src/maps/utils/helper.d.ts +1 -1
- package/src/maps/utils/helper.js +6 -6
package/dist/es6/ej2-maps.es5.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ajax, Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, L10n, NotifyPropertyChanges, Property, compile, createElement, extend,
|
|
1
|
+
import { Ajax, Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, L10n, NotifyPropertyChanges, Property, compile, createElement, extend, isNullOrUndefined, merge, print, remove, setValue } from '@syncfusion/ej2-base';
|
|
2
2
|
import { SvgRenderer, Tooltip } from '@syncfusion/ej2-svg-base';
|
|
3
3
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
4
4
|
import { PdfBitmap, PdfDocument, PdfPageOrientation } from '@syncfusion/ej2-pdf-export';
|
|
@@ -624,7 +624,7 @@ function renderTextElement(option, style, color, parent, isMinus) {
|
|
|
624
624
|
'opacity': style.opacity,
|
|
625
625
|
'dominant-baseline': option.baseLine
|
|
626
626
|
};
|
|
627
|
-
var text = typeof option.text === 'string' ? option.text : isMinus ? option.text[option.text.length - 1] : option.text[0];
|
|
627
|
+
var text = typeof option.text === 'string' || typeof option.text === 'number' ? option.text : isMinus ? option.text[option.text.length - 1] : option.text[0];
|
|
628
628
|
var tspanElement;
|
|
629
629
|
var renderer = new SvgRenderer('');
|
|
630
630
|
var height;
|
|
@@ -1742,7 +1742,7 @@ function getRatioOfBubble(min, max, value, minValue, maxValue) {
|
|
|
1742
1742
|
* @returns {any} - Specifies the object
|
|
1743
1743
|
*/
|
|
1744
1744
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1745
|
-
function findMidPointOfPolygon(points, type) {
|
|
1745
|
+
function findMidPointOfPolygon(points, type, geometryType) {
|
|
1746
1746
|
if (!points.length) {
|
|
1747
1747
|
return null;
|
|
1748
1748
|
}
|
|
@@ -1757,14 +1757,14 @@ function findMidPointOfPolygon(points, type) {
|
|
|
1757
1757
|
var ySum = 0;
|
|
1758
1758
|
for (var i = min; i <= max - 1; i++) {
|
|
1759
1759
|
startX = points[i].x;
|
|
1760
|
-
startY = type === 'Mercator' ? points[i].y : -(points[i].y);
|
|
1760
|
+
startY = type === 'Mercator' || geometryType === 'Normal' ? points[i].y : -(points[i].y);
|
|
1761
1761
|
if (i === max - 1) {
|
|
1762
1762
|
startX1 = points[0].x;
|
|
1763
|
-
startY1 = type === 'Mercator' ? points[0].y : -(points[0].y);
|
|
1763
|
+
startY1 = type === 'Mercator' || geometryType === 'Normal' ? points[0].y : -(points[0].y);
|
|
1764
1764
|
}
|
|
1765
1765
|
else {
|
|
1766
1766
|
startX1 = points[i + 1].x;
|
|
1767
|
-
startY1 = type === 'Mercator' ? points[i + 1].y : -(points[i + 1].y);
|
|
1767
|
+
startY1 = type === 'Mercator' || geometryType === 'Normal' ? points[i + 1].y : -(points[i + 1].y);
|
|
1768
1768
|
}
|
|
1769
1769
|
sum = sum + Math.abs(((startX * startY1)) - (startX1 * startY));
|
|
1770
1770
|
xSum = xSum + Math.abs(((startX + startX1) * (((startX * startY1) - (startX1 * startY)))));
|
|
@@ -1785,7 +1785,7 @@ function findMidPointOfPolygon(points, type) {
|
|
|
1785
1785
|
var height = 0;
|
|
1786
1786
|
for (var i = min; i <= max - 1; i++) {
|
|
1787
1787
|
var point = points[i];
|
|
1788
|
-
point.y = type === 'Mercator' ? point.y : -(point.y);
|
|
1788
|
+
point.y = type === 'Mercator' || geometryType === 'Normal' ? point.y : -(point.y);
|
|
1789
1789
|
if (point.y > ySum) {
|
|
1790
1790
|
if (point.x < xSum && xSum - point.x < xSum - bottomMinPoint.x) {
|
|
1791
1791
|
bottomMinPoint = { x: point.x, y: point.y };
|
|
@@ -3362,7 +3362,6 @@ var BootstrapTheme;
|
|
|
3362
3362
|
* @param {MapsTheme} theme Specifies the theme of the maps
|
|
3363
3363
|
* @returns {string[]} Returns the shape color
|
|
3364
3364
|
*/
|
|
3365
|
-
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
3366
3365
|
function getShapeColor(theme) {
|
|
3367
3366
|
var themePalette;
|
|
3368
3367
|
switch (theme.toLowerCase()) {
|
|
@@ -3374,6 +3373,14 @@ function getShapeColor(theme) {
|
|
|
3374
3373
|
themePalette = ['#10B981', '#22D3EE', '#2DD4BF', '#4ADE80', '#8B5CF6',
|
|
3375
3374
|
'#E879F9', '#F472B6', '#F87171', '#F97316', '#FCD34D'];
|
|
3376
3375
|
break;
|
|
3376
|
+
case 'bootstrap5':
|
|
3377
|
+
themePalette = ['#262E0B', '#668E1F', '#AF6E10', '#862C0B', '#1F2D50',
|
|
3378
|
+
'#64680B', '#311508', '#4C4C81', '#0C7DA0', '#862C0B'];
|
|
3379
|
+
break;
|
|
3380
|
+
case 'bootstrap5dark':
|
|
3381
|
+
themePalette = ['#5ECB9B', '#A860F1', '#EBA844', '#557EF7', '#E9599B',
|
|
3382
|
+
'#BFC529', '#3BC6CF', '#7A68EC', '#74B706', '#EA6266'];
|
|
3383
|
+
break;
|
|
3377
3384
|
default:
|
|
3378
3385
|
themePalette = ['#B5E485', '#7BC1E8', '#DF819C', '#EC9B79', '#78D0D3',
|
|
3379
3386
|
'#D6D572', '#9178E3', '#A1E5B4', '#87A4B4', '#E4C16C'];
|
|
@@ -3611,6 +3618,52 @@ function getThemeStyle(theme) {
|
|
|
3611
3618
|
shapeFill: '#374151'
|
|
3612
3619
|
};
|
|
3613
3620
|
break;
|
|
3621
|
+
case 'bootstrap5':
|
|
3622
|
+
style = {
|
|
3623
|
+
backgroundColor: 'rgba(255,255,255, 0.0)',
|
|
3624
|
+
areaBackgroundColor: 'rgba(255,255,255, 0.0)',
|
|
3625
|
+
titleFontColor: '#212529',
|
|
3626
|
+
subTitleFontColor: '#212529',
|
|
3627
|
+
legendTitleFontColor: '#212529',
|
|
3628
|
+
legendTextColor: '#212529',
|
|
3629
|
+
dataLabelFontColor: '#212529',
|
|
3630
|
+
tooltipFontColor: '#F9FAFB',
|
|
3631
|
+
tooltipFillColor: '#212529',
|
|
3632
|
+
zoomFillColor: '#6C757D',
|
|
3633
|
+
fontFamily: 'Helvetica Neue',
|
|
3634
|
+
titleFontSize: '14px',
|
|
3635
|
+
legendFontSize: '12px',
|
|
3636
|
+
tooltipFillOpacity: 1,
|
|
3637
|
+
tooltipTextOpacity: 1,
|
|
3638
|
+
labelFontFamily: 'Helvetica Neue',
|
|
3639
|
+
titleFontWeight: 'normal',
|
|
3640
|
+
zoomSelectionColor: '#343A40',
|
|
3641
|
+
shapeFill: '#E9ECEF'
|
|
3642
|
+
};
|
|
3643
|
+
break;
|
|
3644
|
+
case 'bootstrap5dark':
|
|
3645
|
+
style = {
|
|
3646
|
+
backgroundColor: 'rgba(255,255,255, 0.0)',
|
|
3647
|
+
areaBackgroundColor: 'rgba(255,255,255, 0.0)',
|
|
3648
|
+
titleFontColor: '#FFFFFF',
|
|
3649
|
+
subTitleFontColor: '#FFFFFF',
|
|
3650
|
+
legendTitleFontColor: '#FFFFFF',
|
|
3651
|
+
legendTextColor: '#FFFFFF',
|
|
3652
|
+
dataLabelFontColor: '#FFFFFF',
|
|
3653
|
+
tooltipFontColor: '#212529',
|
|
3654
|
+
tooltipFillColor: '#E9ECEF',
|
|
3655
|
+
zoomFillColor: '#B5BABE',
|
|
3656
|
+
fontFamily: 'Helvetica Neue',
|
|
3657
|
+
titleFontSize: '14px',
|
|
3658
|
+
legendFontSize: '12px',
|
|
3659
|
+
tooltipFillOpacity: 1,
|
|
3660
|
+
tooltipTextOpacity: 1,
|
|
3661
|
+
labelFontFamily: 'Helvetica Neue',
|
|
3662
|
+
titleFontWeight: 'normal',
|
|
3663
|
+
zoomSelectionColor: '#DEE2E6',
|
|
3664
|
+
shapeFill: '#495057'
|
|
3665
|
+
};
|
|
3666
|
+
break;
|
|
3614
3667
|
default:
|
|
3615
3668
|
style = {
|
|
3616
3669
|
backgroundColor: '#FFFFFF',
|
|
@@ -4663,15 +4716,6 @@ var MapsAreaSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
4663
4716
|
return MapsAreaSettings;
|
|
4664
4717
|
}(ChildProperty));
|
|
4665
4718
|
|
|
4666
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
4667
|
-
var t = {};
|
|
4668
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4669
|
-
t[p] = s[p];
|
|
4670
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
4671
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
4672
|
-
t[p[i]] = s[p[i]];
|
|
4673
|
-
return t;
|
|
4674
|
-
};
|
|
4675
4719
|
/**
|
|
4676
4720
|
* Marker class
|
|
4677
4721
|
*/
|
|
@@ -4952,10 +4996,6 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
4952
4996
|
longitude: options.data['longitude'] || options.data['Longitude'],
|
|
4953
4997
|
value: options.data['name']
|
|
4954
4998
|
};
|
|
4955
|
-
if (this.maps.isBlazor) {
|
|
4956
|
-
var maps = eventArgs.maps, marker_1 = eventArgs.marker, blazorEventArgs = __rest(eventArgs, ["maps", "marker"]);
|
|
4957
|
-
eventArgs = blazorEventArgs;
|
|
4958
|
-
}
|
|
4959
4999
|
this.maps.trigger(markerClick, eventArgs);
|
|
4960
5000
|
};
|
|
4961
5001
|
/**
|
|
@@ -5035,9 +5075,6 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
5035
5075
|
for (var _i = 0, indexes_1 = indexes; _i < indexes_1.length; _i++) {
|
|
5036
5076
|
var i = indexes_1[_i];
|
|
5037
5077
|
collection_1.push({ data: marker$$1.dataSource[i], index: i });
|
|
5038
|
-
if (this.maps.isBlazor) {
|
|
5039
|
-
marker$$1.dataSource[i]['text'] = '';
|
|
5040
|
-
}
|
|
5041
5078
|
markCollection.push(marker$$1.dataSource[i]);
|
|
5042
5079
|
}
|
|
5043
5080
|
isClusterSame = false;
|
|
@@ -5556,15 +5593,6 @@ var ColorMapping = /** @__PURE__ @class */ (function () {
|
|
|
5556
5593
|
return ColorMapping;
|
|
5557
5594
|
}());
|
|
5558
5595
|
|
|
5559
|
-
var __rest$1 = (undefined && undefined.__rest) || function (s, e) {
|
|
5560
|
-
var t = {};
|
|
5561
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5562
|
-
t[p] = s[p];
|
|
5563
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
5564
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
5565
|
-
t[p[i]] = s[p[i]];
|
|
5566
|
-
return t;
|
|
5567
|
-
};
|
|
5568
5596
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
5569
5597
|
/* eslint-disable jsdoc/require-param */
|
|
5570
5598
|
/* eslint-disable no-case-declarations */
|
|
@@ -5781,10 +5809,6 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
5781
5809
|
cancel: false, name: layerRendering, index: layerIndex,
|
|
5782
5810
|
layer: layer, maps: this.mapObject, visible: layer.visible
|
|
5783
5811
|
};
|
|
5784
|
-
if (this.mapObject.isBlazor) {
|
|
5785
|
-
var maps = eventArgs.maps, layer_1 = eventArgs.layer, blazorEventArgs = __rest$1(eventArgs, ["maps", "layer"]);
|
|
5786
|
-
eventArgs = blazorEventArgs;
|
|
5787
|
-
}
|
|
5788
5812
|
this.mapObject.trigger('layerRendering', eventArgs, function (observedArgs) {
|
|
5789
5813
|
if (!eventArgs.cancel && eventArgs.visible) {
|
|
5790
5814
|
if (layer.layerType !== 'Geometry') {
|
|
@@ -5819,11 +5843,6 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
5819
5843
|
bing_1.maxZoom = maxZoom;
|
|
5820
5844
|
}
|
|
5821
5845
|
proxy_1.mapObject['bingMap'] = bing_1;
|
|
5822
|
-
if (_this.mapObject.isBlazor) {
|
|
5823
|
-
if (!isNullOrUndefined(markerGroupElement)) {
|
|
5824
|
-
removeElement(_this.mapObject.element.id + '_Markers_Group');
|
|
5825
|
-
}
|
|
5826
|
-
}
|
|
5827
5846
|
proxy_1.renderTileLayer(proxy_1, layer, layerIndex, bing_1);
|
|
5828
5847
|
_this.mapObject.arrangeTemplate();
|
|
5829
5848
|
};
|
|
@@ -5988,10 +6007,6 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
5988
6007
|
shape: shapeSettings, fill: fill,
|
|
5989
6008
|
border: { width: borderValue.width, color: borderValue.color, opacity: borderValue.opacity }
|
|
5990
6009
|
};
|
|
5991
|
-
if (this_1.mapObject.isBlazor) {
|
|
5992
|
-
var maps = eventArgs.maps, blazorEventArgs = __rest$1(eventArgs, ["maps"]);
|
|
5993
|
-
eventArgs = blazorEventArgs;
|
|
5994
|
-
}
|
|
5995
6010
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5996
6011
|
var shapeRenderingSuccess = function (eventArgs) {
|
|
5997
6012
|
var drawingType = !isNullOrUndefined(currentShapeData['_isMultiPolygon'])
|
|
@@ -6856,9 +6871,6 @@ var Annotations = /** @__PURE__ @class */ (function () {
|
|
|
6856
6871
|
});
|
|
6857
6872
|
if (annotationGroup.childElementCount > 0 && !(isNullOrUndefined(getElementByID(secondaryID)))) {
|
|
6858
6873
|
getElementByID(secondaryID).appendChild(annotationGroup);
|
|
6859
|
-
for (var i = 0; i < this.map.annotations.length; i++) {
|
|
6860
|
-
updateBlazorTemplate(this.map.element.id + '_ContentTemplate_' + i, 'ContentTemplate', this.map.annotations[i]);
|
|
6861
|
-
}
|
|
6862
6874
|
}
|
|
6863
6875
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6864
6876
|
this.map.renderReactTemplates();
|
|
@@ -6888,10 +6900,9 @@ var Annotations = /** @__PURE__ @class */ (function () {
|
|
|
6888
6900
|
if (argsData.cancel) {
|
|
6889
6901
|
return;
|
|
6890
6902
|
}
|
|
6891
|
-
var blazor = 'Blazor';
|
|
6892
6903
|
templateFn = getTemplateFunction(argsData.content);
|
|
6893
|
-
if (templateFn &&
|
|
6894
|
-
templateElement = Array.prototype.slice.call(templateFn(
|
|
6904
|
+
if (templateFn && templateFn(_this.map, _this.map, argsData.content, _this.map.element.id + '_ContentTemplate_' + annotationIndex).length) {
|
|
6905
|
+
templateElement = Array.prototype.slice.call(templateFn(_this.map, _this.map, argsData.content, _this.map.element.id + '_ContentTemplate_' + annotationIndex));
|
|
6895
6906
|
var length_1 = templateElement.length;
|
|
6896
6907
|
for (var i = 0; i < length_1; i++) {
|
|
6897
6908
|
childElement.appendChild(templateElement[i]);
|
|
@@ -7155,20 +7166,14 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7155
7166
|
*/
|
|
7156
7167
|
Maps.prototype.preRender = function () {
|
|
7157
7168
|
this.isDevice = Browser.isDevice;
|
|
7158
|
-
this.isBlazor = isBlazor();
|
|
7159
7169
|
this.initPrivateVariable();
|
|
7160
7170
|
this.allowServerDataBinding = false;
|
|
7161
7171
|
this.unWireEVents();
|
|
7162
7172
|
this.wireEVents();
|
|
7163
7173
|
this.setCulture();
|
|
7164
7174
|
};
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
*
|
|
7168
|
-
* @returns {void}
|
|
7169
|
-
*/
|
|
7170
|
-
Maps.prototype.render = function () {
|
|
7171
|
-
this.trigger(load, this.isBlazor ? {} : { maps: this });
|
|
7175
|
+
Maps.prototype.renderElements = function () {
|
|
7176
|
+
this.trigger(load, { maps: this });
|
|
7172
7177
|
this.createSVG();
|
|
7173
7178
|
this.findBaseAndSubLayers();
|
|
7174
7179
|
this.createSecondaryElement();
|
|
@@ -7180,6 +7185,14 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7180
7185
|
this.processRequestJsonData();
|
|
7181
7186
|
this.renderComplete();
|
|
7182
7187
|
};
|
|
7188
|
+
/**
|
|
7189
|
+
* To Initialize the control rendering.
|
|
7190
|
+
*
|
|
7191
|
+
* @returns {void}
|
|
7192
|
+
*/
|
|
7193
|
+
Maps.prototype.render = function () {
|
|
7194
|
+
this.renderElements();
|
|
7195
|
+
};
|
|
7183
7196
|
Maps.prototype.processRequestJsonData = function () {
|
|
7184
7197
|
var _this = this;
|
|
7185
7198
|
var length = this.layersCollection.length - 1;
|
|
@@ -7190,7 +7203,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7190
7203
|
if (layer.shapeData instanceof DataManager) {
|
|
7191
7204
|
_this.serverProcess['request']++;
|
|
7192
7205
|
dataModule = layer.shapeData;
|
|
7193
|
-
queryModule = layer.query instanceof Query ? layer.query :
|
|
7206
|
+
queryModule = layer.query instanceof Query ? layer.query : new Query();
|
|
7194
7207
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7195
7208
|
var dataManager = dataModule.executeQuery(queryModule);
|
|
7196
7209
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -7206,7 +7219,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7206
7219
|
if (layer.dataSource instanceof DataManager) {
|
|
7207
7220
|
_this.serverProcess['request']++;
|
|
7208
7221
|
dataModule = layer.dataSource;
|
|
7209
|
-
queryModule = layer.query instanceof Query ? layer.query :
|
|
7222
|
+
queryModule = layer.query instanceof Query ? layer.query : new Query();
|
|
7210
7223
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7211
7224
|
var dataManager = dataModule.executeQuery(queryModule);
|
|
7212
7225
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -7220,8 +7233,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7220
7233
|
if (layer.markerSettings[i].dataSource instanceof DataManager) {
|
|
7221
7234
|
_this.serverProcess['request']++;
|
|
7222
7235
|
dataModule = layer.markerSettings[i].dataSource;
|
|
7223
|
-
queryModule = layer.markerSettings[i].query instanceof Query ? layer.markerSettings[i].query :
|
|
7224
|
-
(new Query().requiresCount()) : new Query();
|
|
7236
|
+
queryModule = layer.markerSettings[i].query instanceof Query ? layer.markerSettings[i].query : new Query();
|
|
7225
7237
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7226
7238
|
var dataManager = dataModule.executeQuery(queryModule);
|
|
7227
7239
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -7240,8 +7252,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7240
7252
|
if (layer.bubbleSettings[i].dataSource instanceof DataManager) {
|
|
7241
7253
|
_this.serverProcess['request']++;
|
|
7242
7254
|
dataModule = layer.bubbleSettings[i].dataSource;
|
|
7243
|
-
queryModule = layer.bubbleSettings[i].query instanceof Query ? layer.bubbleSettings[i].query :
|
|
7244
|
-
(new Query().requiresCount()) : new Query();
|
|
7255
|
+
queryModule = layer.bubbleSettings[i].query instanceof Query ? layer.bubbleSettings[i].query : new Query();
|
|
7245
7256
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7246
7257
|
var dataManager = dataModule.executeQuery(queryModule);
|
|
7247
7258
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -7403,7 +7414,6 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7403
7414
|
tileElement1.style.left = left + 'px';
|
|
7404
7415
|
}
|
|
7405
7416
|
this.arrangeTemplate();
|
|
7406
|
-
var blazor = this.isBlazor ? this.blazorTemplates() : null;
|
|
7407
7417
|
if (this.annotationsModule) {
|
|
7408
7418
|
if (this.width !== '0px' && this.height !== '0px' && this.width !== '0%' && this.height !== '0%') {
|
|
7409
7419
|
this.annotationsModule.renderAnnotationElements();
|
|
@@ -7416,7 +7426,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7416
7426
|
}
|
|
7417
7427
|
}
|
|
7418
7428
|
this.zoomingChange();
|
|
7419
|
-
this.trigger(loaded,
|
|
7429
|
+
this.trigger(loaded, { maps: this, isResized: this.isResize });
|
|
7420
7430
|
this.isResize = false;
|
|
7421
7431
|
};
|
|
7422
7432
|
/**
|
|
@@ -7482,37 +7492,6 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7482
7492
|
}
|
|
7483
7493
|
}
|
|
7484
7494
|
};
|
|
7485
|
-
/**
|
|
7486
|
-
* To append blazor templates
|
|
7487
|
-
*
|
|
7488
|
-
* @returns {void}
|
|
7489
|
-
* @private
|
|
7490
|
-
*/
|
|
7491
|
-
Maps.prototype.blazorTemplates = function () {
|
|
7492
|
-
var _this = this;
|
|
7493
|
-
for (var i = 0; i < this.layers.length; i++) {
|
|
7494
|
-
var markerLength = this.layers[i].markerSettings.length - 1;
|
|
7495
|
-
if (markerLength >= 0) {
|
|
7496
|
-
if (this.layers[i].dataLabelSettings.visible || this.layers[i].markerSettings[markerLength].template) {
|
|
7497
|
-
updateBlazorTemplate(this.element.id + '_LabelTemplate', 'LabelTemplate', this.layers[i].dataLabelSettings);
|
|
7498
|
-
for (var j = 0; j < this.layers[i].markerSettings.length; j++) {
|
|
7499
|
-
var markerRendered = function () {
|
|
7500
|
-
for (var x = 0; x < _this.layers.length; x++) {
|
|
7501
|
-
var markerTemplateEle = document.getElementById(_this.element.id + '_LayerIndex_' + x + '_Markers_Template_Group');
|
|
7502
|
-
if (!isNullOrUndefined(markerTemplateEle)) {
|
|
7503
|
-
for (var z = 0; z < markerTemplateEle.childElementCount; z++) {
|
|
7504
|
-
var markerTemplate$$1 = markerTemplateEle.childNodes[z];
|
|
7505
|
-
markerTemplate$$1['style']['transform'] = 'translate(-50%, -50%)';
|
|
7506
|
-
}
|
|
7507
|
-
}
|
|
7508
|
-
}
|
|
7509
|
-
};
|
|
7510
|
-
updateBlazorTemplate(this.element.id + '_MarkerTemplate' + j, 'MarkerTemplate', this.layers[i].markerSettings[j], undefined, markerRendered);
|
|
7511
|
-
}
|
|
7512
|
-
}
|
|
7513
|
-
}
|
|
7514
|
-
}
|
|
7515
|
-
};
|
|
7516
7495
|
/**
|
|
7517
7496
|
* Render the map area border
|
|
7518
7497
|
*
|
|
@@ -7789,12 +7768,6 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7789
7768
|
* @returns {void}
|
|
7790
7769
|
*/
|
|
7791
7770
|
Maps.prototype.createSVG = function () {
|
|
7792
|
-
resetBlazorTemplate(this.element.id + '_LabelTemplate', 'LabelTemplate');
|
|
7793
|
-
for (var i = 0; i < this.layers.length; i++) {
|
|
7794
|
-
for (var j = 0; j < this.layers[i].markerSettings.length; j++) {
|
|
7795
|
-
resetBlazorTemplate(this.element.id + '_MarkerTemplate' + j, 'MarkerTemplate');
|
|
7796
|
-
}
|
|
7797
|
-
}
|
|
7798
7771
|
this.removeSvg();
|
|
7799
7772
|
createSvg(this);
|
|
7800
7773
|
};
|
|
@@ -7804,9 +7777,6 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7804
7777
|
* @returns {void}
|
|
7805
7778
|
*/
|
|
7806
7779
|
Maps.prototype.removeSvg = function () {
|
|
7807
|
-
for (var i = 0; i < this.annotations.length; i++) {
|
|
7808
|
-
resetBlazorTemplate(this.element.id + '_ContentTemplate_' + i, 'ContentTemplate');
|
|
7809
|
-
}
|
|
7810
7780
|
removeElement(this.element.id + '_Secondary_Element');
|
|
7811
7781
|
removeElement(this.element.id + '_tile_parent');
|
|
7812
7782
|
removeElement(this.element.id + '_tiles');
|
|
@@ -7884,7 +7854,6 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
7884
7854
|
* This method is used to perform the operations when a click operation is performed on maps.
|
|
7885
7855
|
*
|
|
7886
7856
|
* @param {PointerEvent} e - Specifies the pointer event on maps.
|
|
7887
|
-
* @blazorProperty 'PerformClick'
|
|
7888
7857
|
*/
|
|
7889
7858
|
Maps.prototype.mapsOnClick = function (e) {
|
|
7890
7859
|
var _this = this;
|
|
@@ -8036,7 +8005,9 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8036
8005
|
}
|
|
8037
8006
|
}
|
|
8038
8007
|
this.notify(Browser.touchEndEvent, e);
|
|
8039
|
-
e.
|
|
8008
|
+
if (e.cancelable) {
|
|
8009
|
+
e.preventDefault();
|
|
8010
|
+
}
|
|
8040
8011
|
return false;
|
|
8041
8012
|
};
|
|
8042
8013
|
/**
|
|
@@ -8084,7 +8055,6 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8084
8055
|
* This method is used to perform operations when performing the double click operation on maps.
|
|
8085
8056
|
*
|
|
8086
8057
|
* @param {PointerEvent} e - Specifies the pointer event.
|
|
8087
|
-
* @blazorProperty 'PerformDoubleClick'
|
|
8088
8058
|
*/
|
|
8089
8059
|
Maps.prototype.mapsOnDoubleClick = function (e) {
|
|
8090
8060
|
this.notify('dblclick', e);
|
|
@@ -8110,9 +8080,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8110
8080
|
}
|
|
8111
8081
|
var doubleClickArgs = { cancel: false, name: doubleClick, x: e.clientX, y: e.clientY,
|
|
8112
8082
|
target: targetId, latitude: latitude, longitude: longitude, isShapeSelected: null };
|
|
8113
|
-
|
|
8114
|
-
target: targetId, latitude: latitude, longitude: longitude, isShapeSelected: null };
|
|
8115
|
-
this.trigger('doubleClick', this.isBlazor ? doubleClickBlazorArgs : doubleClickArgs);
|
|
8083
|
+
this.trigger('doubleClick', doubleClickArgs);
|
|
8116
8084
|
}
|
|
8117
8085
|
};
|
|
8118
8086
|
/**
|
|
@@ -8208,7 +8176,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8208
8176
|
name: resize,
|
|
8209
8177
|
previousSize: this.availableSize,
|
|
8210
8178
|
currentSize: new Size(0, 0),
|
|
8211
|
-
maps:
|
|
8179
|
+
maps: this
|
|
8212
8180
|
};
|
|
8213
8181
|
if (this.resizeTo) {
|
|
8214
8182
|
clearTimeout(this.resizeTo);
|
|
@@ -8482,7 +8450,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8482
8450
|
this.zoomNotApplied = true;
|
|
8483
8451
|
this.scaleOfGivenLocation = calculateZoomLevel(minLatitude, maxLatitude, minLongitude, maxLongitude, this.mapAreaRect.width, this.mapAreaRect.height, this);
|
|
8484
8452
|
var zoomArgs = {
|
|
8485
|
-
cancel: false, name: 'zoom', type: zoomIn, maps:
|
|
8453
|
+
cancel: false, name: 'zoom', type: zoomIn, maps: this,
|
|
8486
8454
|
tileTranslatePoint: {}, translatePoint: {},
|
|
8487
8455
|
tileZoomLevel: this.isTileMap ? { previous: this.tileZoomLevel, current: this.scaleOfGivenLocation } : {},
|
|
8488
8456
|
scale: !this.isTileMap ? { previous: this.scale, current: this.scaleOfGivenLocation } :
|
|
@@ -8632,19 +8600,21 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8632
8600
|
render = true;
|
|
8633
8601
|
break;
|
|
8634
8602
|
case 'zoomSettings':
|
|
8635
|
-
if (
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8603
|
+
if (!isNullOrUndefined(oldProp.zoomSettings)) {
|
|
8604
|
+
if (newProp.zoomSettings.zoomFactor !== oldProp.zoomSettings.zoomFactor) {
|
|
8605
|
+
render = false;
|
|
8606
|
+
}
|
|
8607
|
+
else if (newProp.zoomSettings.shouldZoomInitially !== oldProp.zoomSettings.shouldZoomInitially) {
|
|
8608
|
+
this.zoomSettings.zoomFactor = 1;
|
|
8609
|
+
render = true;
|
|
8610
|
+
}
|
|
8611
|
+
else if (newProp.zoomSettings.enable !== oldProp.zoomSettings.enable) {
|
|
8612
|
+
this.zoomSettings.zoomFactor = 1;
|
|
8613
|
+
render = true;
|
|
8614
|
+
}
|
|
8615
|
+
else {
|
|
8616
|
+
render = true;
|
|
8617
|
+
}
|
|
8648
8618
|
}
|
|
8649
8619
|
break;
|
|
8650
8620
|
case 'locale':
|
|
@@ -8657,12 +8627,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8657
8627
|
if (newProp.layers && isMarker) {
|
|
8658
8628
|
removeElement(this.element.id + '_Markers_Group');
|
|
8659
8629
|
if (this.isTileMap) {
|
|
8660
|
-
|
|
8661
|
-
this.render();
|
|
8662
|
-
}
|
|
8663
|
-
else {
|
|
8664
|
-
this.mapLayerPanel.renderTileLayer(this.mapLayerPanel, this.layers['currentFactor'], (this.layers.length - 1));
|
|
8665
|
-
}
|
|
8630
|
+
this.mapLayerPanel.renderTileLayer(this.mapLayerPanel, this.layers['currentFactor'], (this.layers.length - 1));
|
|
8666
8631
|
}
|
|
8667
8632
|
else {
|
|
8668
8633
|
this.render();
|
|
@@ -8673,7 +8638,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8673
8638
|
}
|
|
8674
8639
|
else {
|
|
8675
8640
|
this.createSVG();
|
|
8676
|
-
this.
|
|
8641
|
+
this.renderElements();
|
|
8677
8642
|
}
|
|
8678
8643
|
}
|
|
8679
8644
|
};
|
|
@@ -9174,15 +9139,6 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9174
9139
|
return Maps;
|
|
9175
9140
|
}(Component));
|
|
9176
9141
|
|
|
9177
|
-
var __rest$2 = (undefined && undefined.__rest) || function (s, e) {
|
|
9178
|
-
var t = {};
|
|
9179
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
9180
|
-
t[p] = s[p];
|
|
9181
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
9182
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
9183
|
-
t[p[i]] = s[p[i]];
|
|
9184
|
-
return t;
|
|
9185
|
-
};
|
|
9186
9142
|
/**
|
|
9187
9143
|
* Bubble module class
|
|
9188
9144
|
*/
|
|
@@ -9280,14 +9236,14 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
9280
9236
|
width: bubbleSettings.border.width
|
|
9281
9237
|
};
|
|
9282
9238
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9283
|
-
var center = findMidPointOfPolygon(shapePoints[midIndex], projectionType);
|
|
9239
|
+
var center = findMidPointOfPolygon(shapePoints[midIndex], projectionType, layer.geometryType);
|
|
9284
9240
|
if (bubbleSettings.visible) {
|
|
9285
9241
|
if (!isNullOrUndefined(center)) {
|
|
9286
9242
|
centerY = this.maps.projectionType === 'Mercator' ? center['y'] : (-center['y']);
|
|
9287
9243
|
eventArgs = {
|
|
9288
9244
|
cancel: false, name: bubbleRendering, border: bubbleBorder,
|
|
9289
9245
|
cx: center['x'], cy: centerY, data: shapeData, fill: bubbleColor,
|
|
9290
|
-
maps: this.maps
|
|
9246
|
+
maps: this.maps, radius: radius
|
|
9291
9247
|
};
|
|
9292
9248
|
}
|
|
9293
9249
|
else {
|
|
@@ -9296,17 +9252,13 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
9296
9252
|
eventArgs = {
|
|
9297
9253
|
cancel: false, name: bubbleRendering, border: bubbleBorder,
|
|
9298
9254
|
cx: shapePoints[shapePointsLength]['x'], cy: shapePoints[shapePointsLength]['y'],
|
|
9299
|
-
data: shapeData, fill: bubbleColor, maps: this.maps
|
|
9255
|
+
data: shapeData, fill: bubbleColor, maps: this.maps,
|
|
9300
9256
|
radius: radius
|
|
9301
9257
|
};
|
|
9302
9258
|
}
|
|
9303
9259
|
else {
|
|
9304
9260
|
return;
|
|
9305
9261
|
}
|
|
9306
|
-
if (this.maps.isBlazor) {
|
|
9307
|
-
var maps = eventArgs.maps, blazorEventArgs = __rest$2(eventArgs, ["maps"]);
|
|
9308
|
-
eventArgs = blazorEventArgs;
|
|
9309
|
-
}
|
|
9310
9262
|
}
|
|
9311
9263
|
this.maps.trigger('bubbleRendering', eventArgs, function (bubbleArgs) {
|
|
9312
9264
|
if (eventArgs.cancel) {
|
|
@@ -9393,10 +9345,6 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
9393
9345
|
cancel: false, name: bubbleClick, data: data, maps: this.maps,
|
|
9394
9346
|
target: target, x: e.clientX, y: e.clientY
|
|
9395
9347
|
};
|
|
9396
|
-
if (this.maps.isBlazor) {
|
|
9397
|
-
var maps = eventArgs.maps, blazorEventArgs = __rest$2(eventArgs, ["maps"]);
|
|
9398
|
-
eventArgs = blazorEventArgs;
|
|
9399
|
-
}
|
|
9400
9348
|
this.maps.trigger(bubbleClick, eventArgs);
|
|
9401
9349
|
};
|
|
9402
9350
|
/**
|
|
@@ -9440,10 +9388,6 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
9440
9388
|
cancel: false, name: bubbleMouseMove, data: data, maps: this.maps,
|
|
9441
9389
|
target: target, x: e.clientX, y: e.clientY
|
|
9442
9390
|
};
|
|
9443
|
-
if (this.maps.isBlazor) {
|
|
9444
|
-
var maps = eventArgs.maps, blazorEventArgs = __rest$2(eventArgs, ["maps"]);
|
|
9445
|
-
eventArgs = blazorEventArgs;
|
|
9446
|
-
}
|
|
9447
9391
|
this.maps.trigger(bubbleMouseMove, eventArgs);
|
|
9448
9392
|
};
|
|
9449
9393
|
/**
|
|
@@ -9469,15 +9413,6 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
9469
9413
|
return Bubble;
|
|
9470
9414
|
}());
|
|
9471
9415
|
|
|
9472
|
-
var __rest$3 = (undefined && undefined.__rest) || function (s, e) {
|
|
9473
|
-
var t = {};
|
|
9474
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
9475
|
-
t[p] = s[p];
|
|
9476
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
9477
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
9478
|
-
t[p[i]] = s[p[i]];
|
|
9479
|
-
return t;
|
|
9480
|
-
};
|
|
9481
9416
|
/**
|
|
9482
9417
|
* DataLabel Module used to render the maps datalabel
|
|
9483
9418
|
*/
|
|
@@ -9650,7 +9585,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
9650
9585
|
};
|
|
9651
9586
|
}
|
|
9652
9587
|
else {
|
|
9653
|
-
location = findMidPointOfPolygon(shapePoint[midIndex], projectionType);
|
|
9588
|
+
location = findMidPointOfPolygon(shapePoint[midIndex], projectionType, layer.geometryType);
|
|
9654
9589
|
}
|
|
9655
9590
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9656
9591
|
var firstLevelMapLocation = location;
|
|
@@ -9671,7 +9606,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
9671
9606
|
location['x'] = ((location['x'] + zoomTransPoint['x']) * scale);
|
|
9672
9607
|
location['y'] = ((location['y'] + zoomTransPoint['y']) * scale);
|
|
9673
9608
|
}
|
|
9674
|
-
location['y'] = (this.maps.projectionType === 'Mercator') ? location['y'] : (-location['y']);
|
|
9609
|
+
location['y'] = (this.maps.projectionType === 'Mercator') || layer.geometryType === 'Normal' ? location['y'] : (-location['y']);
|
|
9675
9610
|
if (!isNullOrUndefined(this.maps.format) && !isNaN(parseFloat(text))) {
|
|
9676
9611
|
if (this.maps.useGroupingSeparator) {
|
|
9677
9612
|
text = Internalize(this.maps, parseFloat(text));
|
|
@@ -9685,10 +9620,6 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
9685
9620
|
width: dataLabel.border.width, opacity: dataLabel.border.opacity }, datalabel: dataLabel,
|
|
9686
9621
|
fill: dataLabel.fill, template: dataLabel.template, text: text
|
|
9687
9622
|
};
|
|
9688
|
-
if (this.maps.isBlazor) {
|
|
9689
|
-
var maps = eventargs_1.maps, datalabel = eventargs_1.datalabel, blazorEventArgs = __rest$3(eventargs_1, ["maps", "datalabel"]);
|
|
9690
|
-
eventargs_1 = blazorEventArgs;
|
|
9691
|
-
}
|
|
9692
9623
|
this.maps.trigger('dataLabelRendering', eventargs_1, function (labelArgs) {
|
|
9693
9624
|
if (eventargs_1.cancel) {
|
|
9694
9625
|
return;
|
|
@@ -9716,7 +9647,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
9716
9647
|
if (!isPoint && position.length > 5 && (shapeData['geometry']['type'] !== 'MultiPolygon') &&
|
|
9717
9648
|
(shapeData['type'] !== 'MultiPolygon')) {
|
|
9718
9649
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9719
|
-
var location1 = findMidPointOfPolygon(position, projectionType);
|
|
9650
|
+
var location1 = findMidPointOfPolygon(position, projectionType, layer.geometryType);
|
|
9720
9651
|
if (zoomLabelsPosition && scaleZoomValue > 1 && !_this.maps.zoomNotApplied && eventargs_1.template === '') {
|
|
9721
9652
|
location1['x'] = ((_this.maps.zoomLabelPositions[index]['location']['x'] + zoomTransPoint['x']) * scale);
|
|
9722
9653
|
location1['y'] = ((_this.maps.zoomLabelPositions[index]['location']['y'] + zoomTransPoint['y']) * scale);
|
|
@@ -9743,7 +9674,8 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
9743
9674
|
}
|
|
9744
9675
|
else {
|
|
9745
9676
|
if (dataLabelSettings.smartLabelMode === 'Trim') {
|
|
9746
|
-
|
|
9677
|
+
var textType = typeof text === 'number' ? text.toString() : text;
|
|
9678
|
+
trimmedLable = textTrim(width, textType, style);
|
|
9747
9679
|
elementSize = measureText(trimmedLable, style);
|
|
9748
9680
|
options = new TextOption(labelId, textLocation.x, textLocation.y, 'middle', trimmedLable, '', '');
|
|
9749
9681
|
}
|
|
@@ -10569,7 +10501,7 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
10569
10501
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10570
10502
|
var collection = this.maps.legendModule.legendCollection;
|
|
10571
10503
|
var length;
|
|
10572
|
-
var multiSelectEnable = this.maps.layers[collection[0]['data'][0]['layerIndex']].selectionSettings.enableMultiSelect;
|
|
10504
|
+
var multiSelectEnable = !isNullOrUndefined(collection[0]['data'][0]['layerIndex']) ? this.maps.layers[collection[0]['data'][0]['layerIndex']].selectionSettings.enableMultiSelect : false;
|
|
10573
10505
|
var selectLength = 0;
|
|
10574
10506
|
var interactProcess = true;
|
|
10575
10507
|
var idIndex = parseFloat(targetElement.id.charAt(targetElement.id.length - 1));
|
|
@@ -12045,15 +11977,6 @@ var Legend = /** @__PURE__ @class */ (function () {
|
|
|
12045
11977
|
return Legend;
|
|
12046
11978
|
}());
|
|
12047
11979
|
|
|
12048
|
-
var __rest$4 = (undefined && undefined.__rest) || function (s, e) {
|
|
12049
|
-
var t = {};
|
|
12050
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
12051
|
-
t[p] = s[p];
|
|
12052
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
12053
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
12054
|
-
t[p[i]] = s[p[i]];
|
|
12055
|
-
return t;
|
|
12056
|
-
};
|
|
12057
11980
|
/**
|
|
12058
11981
|
* Highlight module class
|
|
12059
11982
|
*/
|
|
@@ -12218,10 +12141,6 @@ var Highlight = /** @__PURE__ @class */ (function () {
|
|
|
12218
12141
|
data: data,
|
|
12219
12142
|
maps: this.maps
|
|
12220
12143
|
};
|
|
12221
|
-
if (this.maps.isBlazor) {
|
|
12222
|
-
var shapeData_1 = eventArgs.shapeData, maps = eventArgs.maps, blazorEventArgs = __rest$4(eventArgs, ["shapeData", "maps"]);
|
|
12223
|
-
eventArgs = blazorEventArgs;
|
|
12224
|
-
}
|
|
12225
12144
|
this.maps.trigger(itemHighlight, eventArgs, function () {
|
|
12226
12145
|
eventArgs.border.opacity = isNullOrUndefined(_this.highlightSettings.border.opacity) ? _this.highlightSettings.opacity : _this.highlightSettings.border.opacity;
|
|
12227
12146
|
_this.highlightMap(targetEle, eventArgs);
|
|
@@ -12275,15 +12194,6 @@ var Highlight = /** @__PURE__ @class */ (function () {
|
|
|
12275
12194
|
return Highlight;
|
|
12276
12195
|
}());
|
|
12277
12196
|
|
|
12278
|
-
var __rest$5 = (undefined && undefined.__rest) || function (s, e) {
|
|
12279
|
-
var t = {};
|
|
12280
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
12281
|
-
t[p] = s[p];
|
|
12282
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
12283
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
12284
|
-
t[p[i]] = s[p[i]];
|
|
12285
|
-
return t;
|
|
12286
|
-
};
|
|
12287
12197
|
/**
|
|
12288
12198
|
* Selection module class
|
|
12289
12199
|
*/
|
|
@@ -12422,10 +12332,6 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
12422
12332
|
data: data,
|
|
12423
12333
|
maps: this.maps
|
|
12424
12334
|
};
|
|
12425
|
-
if (this.maps.isBlazor) {
|
|
12426
|
-
var shapeData_1 = eventArgs.shapeData, maps = eventArgs.maps, blazorEventArgs = __rest$5(eventArgs, ["shapeData", "maps"]);
|
|
12427
|
-
eventArgs = blazorEventArgs;
|
|
12428
|
-
}
|
|
12429
12335
|
this.maps.trigger('itemSelection', eventArgs, function (observedArgs) {
|
|
12430
12336
|
eventArgs.border.opacity = isNullOrUndefined(_this.selectionsettings.border.opacity) ? _this.selectionsettings.opacity : _this.selectionsettings.border.opacity;
|
|
12431
12337
|
if (!eventArgs.cancel) {
|
|
@@ -12741,131 +12647,62 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
12741
12647
|
maps: this.maps,
|
|
12742
12648
|
element: target, eventArgs: e
|
|
12743
12649
|
};
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
cancel
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
}
|
|
12766
|
-
else {
|
|
12767
|
-
|
|
12768
|
-
}
|
|
12769
|
-
_this.maps['isProtectedOnChange'] = true;
|
|
12770
|
-
if (blazorArgs_1.cancel) {
|
|
12771
|
-
_this.svgTooltip = new Tooltip({
|
|
12772
|
-
enable: true,
|
|
12773
|
-
header: '',
|
|
12774
|
-
content: [currentData.toString()],
|
|
12775
|
-
shapes: [],
|
|
12776
|
-
location: tootipOption_1.location,
|
|
12777
|
-
palette: [markerFill],
|
|
12778
|
-
areaBounds: _this.maps.mapAreaRect,
|
|
12779
|
-
textStyle: tooltipArgs.options['textStyle'],
|
|
12780
|
-
availableSize: _this.maps.availableSize,
|
|
12781
|
-
fill: tooltipArgs.fill
|
|
12782
|
-
});
|
|
12783
|
-
}
|
|
12784
|
-
else {
|
|
12785
|
-
_this.svgTooltip = new Tooltip({
|
|
12786
|
-
enable: true,
|
|
12787
|
-
header: '',
|
|
12788
|
-
content: [currentData.toString()],
|
|
12789
|
-
shapes: [],
|
|
12790
|
-
location: tootipOption_1.location,
|
|
12791
|
-
palette: [markerFill],
|
|
12792
|
-
areaBounds: _this.maps.mapAreaRect,
|
|
12793
|
-
textStyle: blazorArgs_1.textStyle,
|
|
12794
|
-
availableSize: _this.maps.availableSize,
|
|
12795
|
-
fill: blazorArgs_1.fill
|
|
12796
|
-
});
|
|
12797
|
-
}
|
|
12798
|
-
var tooltipElement = tooltipEle;
|
|
12799
|
-
_this.svgTooltip.opacity = _this.maps.themeStyle.tooltipFillOpacity || _this.svgTooltip.opacity;
|
|
12800
|
-
_this.svgTooltip.appendTo(tooltipElement);
|
|
12801
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12802
|
-
_this.maps.renderReactTemplates();
|
|
12650
|
+
this.maps.trigger(tooltipRender, tooltipArgs, function (args) {
|
|
12651
|
+
if (!tooltipArgs.cancel && option.visible && !isNullOrUndefined(currentData) &&
|
|
12652
|
+
(targetId.indexOf('_cluster_') === -1 && targetId.indexOf('_dataLabel_') === -1)) {
|
|
12653
|
+
_this.maps['isProtectedOnChange'] = true;
|
|
12654
|
+
tooltipArgs.options['textStyle']['color'] = tooltipArgs.options['textStyle']['color']
|
|
12655
|
+
|| _this.maps.themeStyle.tooltipFontColor;
|
|
12656
|
+
if (tooltipArgs.cancel) {
|
|
12657
|
+
_this.svgTooltip = new Tooltip({
|
|
12658
|
+
enable: true,
|
|
12659
|
+
header: '',
|
|
12660
|
+
data: option['data'],
|
|
12661
|
+
template: option['template'],
|
|
12662
|
+
content: [currentData.toString()],
|
|
12663
|
+
shapes: [],
|
|
12664
|
+
location: option['location'],
|
|
12665
|
+
palette: [markerFill],
|
|
12666
|
+
areaBounds: _this.maps.mapAreaRect,
|
|
12667
|
+
textStyle: option['textStyle'],
|
|
12668
|
+
availableSize: _this.maps.availableSize,
|
|
12669
|
+
fill: option.fill || _this.maps.themeStyle.tooltipFillColor
|
|
12670
|
+
});
|
|
12803
12671
|
}
|
|
12804
12672
|
else {
|
|
12805
|
-
_this.
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|| _this.maps.themeStyle.
|
|
12818
|
-
|
|
12819
|
-
_this.svgTooltip = new Tooltip({
|
|
12820
|
-
enable: true,
|
|
12821
|
-
header: '',
|
|
12822
|
-
data: option['data'],
|
|
12823
|
-
template: option['template'],
|
|
12824
|
-
content: [currentData.toString()],
|
|
12825
|
-
shapes: [],
|
|
12826
|
-
location: option['location'],
|
|
12827
|
-
palette: [markerFill],
|
|
12828
|
-
areaBounds: _this.maps.mapAreaRect,
|
|
12829
|
-
textStyle: option['textStyle'],
|
|
12830
|
-
availableSize: _this.maps.availableSize,
|
|
12831
|
-
fill: option.fill || _this.maps.themeStyle.tooltipFillColor
|
|
12832
|
-
});
|
|
12833
|
-
}
|
|
12834
|
-
else {
|
|
12835
|
-
_this.svgTooltip = new Tooltip({
|
|
12836
|
-
enable: true,
|
|
12837
|
-
header: '',
|
|
12838
|
-
data: tooltipArgs.options['data'],
|
|
12839
|
-
template: tooltipArgs.options['template'],
|
|
12840
|
-
content: [currentData.toString()],
|
|
12841
|
-
shapes: [],
|
|
12842
|
-
location: tooltipArgs.options['location'],
|
|
12843
|
-
palette: [markerFill],
|
|
12844
|
-
areaBounds: _this.maps.mapAreaRect,
|
|
12845
|
-
textStyle: tooltipArgs.options['textStyle'],
|
|
12846
|
-
availableSize: _this.maps.availableSize,
|
|
12847
|
-
fill: tooltipArgs.fill || _this.maps.themeStyle.tooltipFillColor
|
|
12848
|
-
});
|
|
12849
|
-
}
|
|
12850
|
-
_this.svgTooltip.opacity = _this.maps.themeStyle.tooltipFillOpacity || _this.svgTooltip.opacity;
|
|
12851
|
-
_this.svgTooltip.appendTo(tooltipEle);
|
|
12852
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12853
|
-
_this.maps.renderReactTemplates();
|
|
12854
|
-
tooltipTemplateElement = document.getElementById(_this.maps.element.id + '_mapsTooltip');
|
|
12855
|
-
if (tooltipTemplateElement !== null && tooltipTemplateElement.innerHTML.indexOf('href') !== -1
|
|
12856
|
-
&& tooltipTemplateElement.innerHTML.indexOf('</a>') !== -1) {
|
|
12857
|
-
var templateStyle = tooltipTemplateElement.getAttribute('style');
|
|
12858
|
-
templateStyle = templateStyle.replace('pointer-events: none;', 'position-events:all;');
|
|
12859
|
-
tooltipTemplateElement.setAttribute('style', templateStyle);
|
|
12860
|
-
}
|
|
12673
|
+
_this.svgTooltip = new Tooltip({
|
|
12674
|
+
enable: true,
|
|
12675
|
+
header: '',
|
|
12676
|
+
data: tooltipArgs.options['data'],
|
|
12677
|
+
template: tooltipArgs.options['template'],
|
|
12678
|
+
content: [currentData.toString()],
|
|
12679
|
+
shapes: [],
|
|
12680
|
+
location: tooltipArgs.options['location'],
|
|
12681
|
+
palette: [markerFill],
|
|
12682
|
+
areaBounds: _this.maps.mapAreaRect,
|
|
12683
|
+
textStyle: tooltipArgs.options['textStyle'],
|
|
12684
|
+
availableSize: _this.maps.availableSize,
|
|
12685
|
+
fill: tooltipArgs.fill || _this.maps.themeStyle.tooltipFillColor
|
|
12686
|
+
});
|
|
12861
12687
|
}
|
|
12862
|
-
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
|
|
12688
|
+
_this.svgTooltip.opacity = _this.maps.themeStyle.tooltipFillOpacity || _this.svgTooltip.opacity;
|
|
12689
|
+
_this.svgTooltip.appendTo(tooltipEle);
|
|
12690
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12691
|
+
_this.maps.renderReactTemplates();
|
|
12692
|
+
tooltipTemplateElement = document.getElementById(_this.maps.element.id + '_mapsTooltip');
|
|
12693
|
+
if (tooltipTemplateElement !== null && tooltipTemplateElement.innerHTML.indexOf('href') !== -1
|
|
12694
|
+
&& tooltipTemplateElement.innerHTML.indexOf('</a>') !== -1) {
|
|
12695
|
+
var templateStyle = tooltipTemplateElement.getAttribute('style');
|
|
12696
|
+
templateStyle = templateStyle.replace('pointer-events: none;', 'position-events:all;');
|
|
12697
|
+
tooltipTemplateElement.setAttribute('style', templateStyle);
|
|
12866
12698
|
}
|
|
12867
|
-
}
|
|
12868
|
-
|
|
12699
|
+
}
|
|
12700
|
+
else {
|
|
12701
|
+
_this.removeTooltip();
|
|
12702
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12703
|
+
_this.maps.clearTemplate();
|
|
12704
|
+
}
|
|
12705
|
+
});
|
|
12869
12706
|
if (this.svgTooltip) {
|
|
12870
12707
|
this.maps.trigger('tooltipRenderComplete', {
|
|
12871
12708
|
cancel: false, name: 'tooltipRenderComplete', maps: this.maps, options: tooltipOption,
|
|
@@ -12998,15 +12835,6 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
12998
12835
|
return MapsTooltip;
|
|
12999
12836
|
}());
|
|
13000
12837
|
|
|
13001
|
-
var __rest$6 = (undefined && undefined.__rest) || function (s, e) {
|
|
13002
|
-
var t = {};
|
|
13003
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13004
|
-
t[p] = s[p];
|
|
13005
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
13006
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
13007
|
-
t[p[i]] = s[p[i]];
|
|
13008
|
-
return t;
|
|
13009
|
-
};
|
|
13010
12838
|
/**
|
|
13011
12839
|
* Zoom module used to process the zoom for maps
|
|
13012
12840
|
*/
|
|
@@ -13131,14 +12959,14 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13131
12959
|
var zoomArgs;
|
|
13132
12960
|
if (!map.isTileMap) {
|
|
13133
12961
|
zoomArgs = {
|
|
13134
|
-
cancel: false, name: 'zoom', type: type, maps:
|
|
12962
|
+
cancel: false, name: 'zoom', type: type, maps: map,
|
|
13135
12963
|
tileTranslatePoint: {}, translatePoint: { previous: map.previousPoint, current: map.translatePoint },
|
|
13136
12964
|
tileZoomLevel: {}, scale: { previous: map.previousScale, current: map.scale }
|
|
13137
12965
|
};
|
|
13138
12966
|
}
|
|
13139
12967
|
else {
|
|
13140
12968
|
zoomArgs = {
|
|
13141
|
-
cancel: false, name: 'zoom', type: type, maps:
|
|
12969
|
+
cancel: false, name: 'zoom', type: type, maps: map,
|
|
13142
12970
|
tileTranslatePoint: { previous: prevTilePoint, current: map.tileTranslatePoint }, translatePoint: { previous: map.previousPoint, current: map.translatePoint },
|
|
13143
12971
|
tileZoomLevel: { previous: prevLevel, current: map.tileZoomLevel }, scale: { previous: map.previousScale, current: map.scale }
|
|
13144
12972
|
};
|
|
@@ -13343,7 +13171,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13343
13171
|
}
|
|
13344
13172
|
}
|
|
13345
13173
|
else if (currentEle.id.indexOf('_Markers_Group') > -1) {
|
|
13346
|
-
if (!this.isPanning
|
|
13174
|
+
if (!this.isPanning) {
|
|
13347
13175
|
this.markerTranslates(currentEle.childNodes[0], factor, x, y, scale, 'Marker', layerElement, animate$$1);
|
|
13348
13176
|
}
|
|
13349
13177
|
currentEle = layerElement.childNodes[j];
|
|
@@ -13462,7 +13290,6 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13462
13290
|
}
|
|
13463
13291
|
}
|
|
13464
13292
|
this.maps.arrangeTemplate();
|
|
13465
|
-
var blazor = this.maps.isBlazor ? this.maps.blazorTemplates() : null;
|
|
13466
13293
|
}
|
|
13467
13294
|
if (!isNullOrUndefined(this.currentLayer)) {
|
|
13468
13295
|
if (!animate$$1 || this.currentLayer.animationDuration === 0) {
|
|
@@ -13517,18 +13344,6 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13517
13344
|
};
|
|
13518
13345
|
eventArgs = markerShapeChoose(eventArgs, data);
|
|
13519
13346
|
eventArgs = markerColorChoose(eventArgs, data);
|
|
13520
|
-
if (_this.maps.isBlazor) {
|
|
13521
|
-
var maps = eventArgs.maps, marker_1 = eventArgs.marker, blazorEventArgs = __rest$6(eventArgs, ["maps", "marker"]);
|
|
13522
|
-
eventArgs = blazorEventArgs;
|
|
13523
|
-
var latitudeValue = 'Latitude';
|
|
13524
|
-
var longitudeValue = 'Longitude';
|
|
13525
|
-
markerSettings.longitudeValuePath = !isNullOrUndefined(markerSettings.longitudeValuePath) ?
|
|
13526
|
-
markerSettings.longitudeValuePath : !isNullOrUndefined(data['Longitude']) ? longitudeValue :
|
|
13527
|
-
!isNullOrUndefined(data['longitude']) ? 'longitude' : null;
|
|
13528
|
-
markerSettings.latitudeValuePath = !isNullOrUndefined(markerSettings.latitudeValuePath) ?
|
|
13529
|
-
markerSettings.latitudeValuePath : !isNullOrUndefined(data['Latitude']) ? latitudeValue :
|
|
13530
|
-
!isNullOrUndefined(data['latitude']) ? 'latitude' : null;
|
|
13531
|
-
}
|
|
13532
13347
|
_this.maps.trigger('markerRendering', eventArgs, function (MarkerArgs) {
|
|
13533
13348
|
if (markerSettings.shapeValuePath !== eventArgs.shapeValuePath) {
|
|
13534
13349
|
eventArgs = markerShapeChoose(eventArgs, data);
|
|
@@ -13542,22 +13357,6 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13542
13357
|
var long = (!isNullOrUndefined(markerSettings.longitudeValuePath)) ?
|
|
13543
13358
|
Number(getValueFromObject(data, markerSettings.longitudeValuePath)) : !isNullOrUndefined(data['longitude']) ?
|
|
13544
13359
|
parseFloat(data['longitude']) : !isNullOrUndefined(data['Longitude']) ? data['Longitude'] : 0;
|
|
13545
|
-
if (_this.maps.isBlazor) {
|
|
13546
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13547
|
-
var data1 = {};
|
|
13548
|
-
var j = 0;
|
|
13549
|
-
var text = [];
|
|
13550
|
-
for (var i = 0; i < Object.keys(data).length; i++) {
|
|
13551
|
-
if (Object.keys(data)[i].toLowerCase() !== 'text' && Object.keys(data)[i].toLowerCase() !== 'latitude'
|
|
13552
|
-
&& Object.keys(data)[i].toLowerCase() !== 'blazortemplateid' && Object.keys(data)[i].toLowerCase() !== 'longitude'
|
|
13553
|
-
&& Object.keys(data)[i].toLowerCase() !== 'name') {
|
|
13554
|
-
data1['text'] = text;
|
|
13555
|
-
text[j] = data[Object.keys(data)[i].toLowerCase()];
|
|
13556
|
-
j++;
|
|
13557
|
-
}
|
|
13558
|
-
}
|
|
13559
|
-
data['text'] = data1['text'];
|
|
13560
|
-
}
|
|
13561
13360
|
var offset = markerSettings.offset;
|
|
13562
13361
|
if (!eventArgs.cancel && markerSettings.visible && !isNullOrUndefined(long) && !isNullOrUndefined(lati)) {
|
|
13563
13362
|
var markerID = _this.maps.element.id + '_LayerIndex_' + layerIndex + '_MarkerIndex_'
|
|
@@ -13778,28 +13577,6 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13778
13577
|
var layer = this.maps.layersCollection[layerIndex];
|
|
13779
13578
|
var marker$$1 = layer.markerSettings[markerIndex];
|
|
13780
13579
|
if (!isNullOrUndefined(marker$$1) && !isNullOrUndefined(marker$$1.dataSource) && !isNullOrUndefined(marker$$1.dataSource[dataIndex])) {
|
|
13781
|
-
if (this.maps.isBlazor) {
|
|
13782
|
-
marker$$1.longitudeValuePath = !isNullOrUndefined(marker$$1.longitudeValuePath) ?
|
|
13783
|
-
marker$$1.longitudeValuePath : !isNullOrUndefined(marker$$1.dataSource[dataIndex]['Longitude']) ? 'Longitude' :
|
|
13784
|
-
!isNullOrUndefined(marker$$1.dataSource[dataIndex]['longitude']) ? 'longitude' : null;
|
|
13785
|
-
marker$$1.latitudeValuePath = !isNullOrUndefined(marker$$1.latitudeValuePath) ?
|
|
13786
|
-
marker$$1.latitudeValuePath : !isNullOrUndefined(marker$$1.dataSource[dataIndex]['Latitude']) ? 'Latitude' :
|
|
13787
|
-
!isNullOrUndefined(marker$$1.dataSource[dataIndex]['latitude']) ? 'latitude' : null;
|
|
13788
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13789
|
-
var data1 = {};
|
|
13790
|
-
var j = 0;
|
|
13791
|
-
var text = [];
|
|
13792
|
-
for (var i = 0; i < Object.keys(marker$$1.dataSource[dataIndex]).length; i++) {
|
|
13793
|
-
if (Object.keys(marker$$1.dataSource[dataIndex])[i].toLowerCase() !== 'text' && Object.keys(marker$$1.dataSource[dataIndex])[i].toLowerCase() !== 'longitude'
|
|
13794
|
-
&& Object.keys(marker$$1.dataSource[dataIndex])[i].toLowerCase() !== 'latitude' && Object.keys(marker$$1.dataSource[dataIndex])[i].toLowerCase() !== 'blazortemplateid'
|
|
13795
|
-
&& Object.keys(marker$$1.dataSource[dataIndex])[i].toLowerCase() !== 'name') {
|
|
13796
|
-
data1['text'] = text;
|
|
13797
|
-
text[j] = marker$$1.dataSource[dataIndex][Object.keys(marker$$1.dataSource[dataIndex])[i].toLowerCase()];
|
|
13798
|
-
j++;
|
|
13799
|
-
}
|
|
13800
|
-
}
|
|
13801
|
-
marker$$1.dataSource[dataIndex]['text'] = data1['text'];
|
|
13802
|
-
}
|
|
13803
13580
|
var lng = (!isNullOrUndefined(marker$$1.longitudeValuePath)) ?
|
|
13804
13581
|
Number(getValueFromObject(marker$$1.dataSource[dataIndex], marker$$1.longitudeValuePath)) :
|
|
13805
13582
|
!isNullOrUndefined(marker$$1.dataSource[dataIndex]['longitude']) ? parseFloat(marker$$1.dataSource[dataIndex]['longitude']) :
|
|
@@ -13837,9 +13614,20 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13837
13614
|
}
|
|
13838
13615
|
else {
|
|
13839
13616
|
if (type === 'Template') {
|
|
13840
|
-
|
|
13841
|
-
|
|
13842
|
-
|
|
13617
|
+
if (duration > 0) {
|
|
13618
|
+
location_2.x = ((Math.abs(this.maps.baseMapRectBounds['min']['x'] - location_2.x)) * scale);
|
|
13619
|
+
location_2.y = ((Math.abs(this.maps.baseMapRectBounds['min']['y'] - location_2.y)) * scale);
|
|
13620
|
+
var layerOffset = getElementByID(this.maps.element.id + '_Layer_Collections').getBoundingClientRect();
|
|
13621
|
+
var elementOffset = element.parentElement.getBoundingClientRect();
|
|
13622
|
+
element.style.left = (((location_2.x) + (layerOffset.left - elementOffset.left)) + marker$$1.offset.x) + 'px';
|
|
13623
|
+
element.style.top = (((location_2.y) + (layerOffset.top - elementOffset.top)) + marker$$1.offset.y) + 'px';
|
|
13624
|
+
element.style.transform = 'translate(-50%, -50%)';
|
|
13625
|
+
}
|
|
13626
|
+
else {
|
|
13627
|
+
var elementOffset = element.getBoundingClientRect();
|
|
13628
|
+
element.style.left = ((location_2.x + x) * scale) + marker$$1.offset.x - this.maps.mapAreaRect.x - (elementOffset.width / 2) + 'px';
|
|
13629
|
+
element.style.top = ((location_2.y + y) * scale) + marker$$1.offset.y - this.maps.mapAreaRect.y - (elementOffset.height / 2) + 'px';
|
|
13630
|
+
}
|
|
13843
13631
|
}
|
|
13844
13632
|
else {
|
|
13845
13633
|
location_2.x = (((location_2.x + x) * scale) + marker$$1.offset.x);
|
|
@@ -13883,7 +13671,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13883
13671
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13884
13672
|
var location_3 = this.maps.getGeoLocation(this.maps.layersCollection.length - 1, mouseLocation['layerX'], mouseLocation['layerY']);
|
|
13885
13673
|
panArgs = {
|
|
13886
|
-
cancel: false, name: pan, maps:
|
|
13674
|
+
cancel: false, name: pan, maps: map,
|
|
13887
13675
|
tileTranslatePoint: {}, translatePoint: { previous: translatePoint, current: new Point(x, y) },
|
|
13888
13676
|
scale: map.scale, tileZoomLevel: map.tileZoomLevel, latitude: location_3['latitude'], longitude: location_3['longitude']
|
|
13889
13677
|
};
|
|
@@ -13920,7 +13708,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
13920
13708
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13921
13709
|
var location_4 = this.maps.getTileGeoLocation(mouseLocation['layerX'], mouseLocation['layerY']);
|
|
13922
13710
|
panArgs = {
|
|
13923
|
-
cancel: false, name: pan, maps:
|
|
13711
|
+
cancel: false, name: pan, maps: map,
|
|
13924
13712
|
tileTranslatePoint: { previous: prevTilePoint, current: map.tileTranslatePoint },
|
|
13925
13713
|
translatePoint: { previous: translatePoint, current: map.translatePoint }, scale: map.scale,
|
|
13926
13714
|
tileZoomLevel: map.tileZoomLevel, latitude: location_4['latitude'], longitude: location_4['longitude']
|
|
@@ -14892,7 +14680,7 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
14892
14680
|
var exportElement = _this.control.svgObject.cloneNode(true);
|
|
14893
14681
|
var backgroundElement = exportElement.childNodes[0];
|
|
14894
14682
|
var backgroundColor = backgroundElement.getAttribute('fill');
|
|
14895
|
-
if ((_this.control.theme === 'Tailwind' || _this.control.theme === 'TailwindDark')
|
|
14683
|
+
if ((_this.control.theme === 'Tailwind' || _this.control.theme === 'TailwindDark' || _this.control.theme === 'Bootstrap5' || _this.control.theme === 'Bootstrap5Dark')
|
|
14896
14684
|
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
14897
14685
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
14898
14686
|
}
|