@syncfusion/ej2-maps 21.2.5 → 22.1.34

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.
@@ -1,4 +1,4 @@
1
- import { Ajax, Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, compile, createElement, extend, isNullOrUndefined, merge, print, remove, setValue } from '@syncfusion/ej2-base';
1
+ import { Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Fetch, Internationalization, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, 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';
@@ -828,7 +828,7 @@ function drawSymbols(shape, imageUrl, location, markerID, shapeCustom, markerCol
828
828
  }
829
829
  else if (shape === 'Image') {
830
830
  x = location.x - (size.width / 2);
831
- y = location.y - (size.height / 2);
831
+ y = location.y - (markerID.indexOf('cluster') > -1 ? (size.height / 2) : size.height);
832
832
  merge(pathOptions, { 'href': imageUrl, 'height': size.height, 'width': size.width, x: x, y: y });
833
833
  markerEle = maps.renderer.drawImage(pathOptions);
834
834
  }
@@ -2375,13 +2375,16 @@ function getTemplateFunction(template, maps) {
2375
2375
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2376
2376
  var templateFn = null;
2377
2377
  try {
2378
- if (document.querySelectorAll(template).length) {
2378
+ if (typeof template !== 'function' && document.querySelectorAll(template).length) {
2379
2379
  templateFn = compile(document.querySelector(template).innerHTML.trim());
2380
2380
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2381
2381
  }
2382
2382
  else if (maps.isVue || maps.isVue3) {
2383
2383
  templateFn = compile(template);
2384
2384
  }
2385
+ else if (typeof template === 'function') {
2386
+ templateFn = compile(template);
2387
+ }
2385
2388
  }
2386
2389
  catch (e) {
2387
2390
  templateFn = compile(template);
@@ -3576,6 +3579,14 @@ function getShapeColor(theme) {
3576
3579
  themePalette = ['#8AB113', '#2A72D5', '#43B786', '#584EC6', '#E85F9C',
3577
3580
  '#6E7A89', '#EA6266', '#EBA844', '#26BC7A', '#BC4870'];
3578
3581
  break;
3582
+ case 'material3':
3583
+ themePalette = ['#6200EE', '#E77A16', '#82C100', '#7107DC', '#05BB3D',
3584
+ '#D21020', '#FAD200', '#0085FF', '#9204EA', '#08EE9B'];
3585
+ break;
3586
+ case 'material3dark':
3587
+ themePalette = ['#4EAAFF', '#FA4EAB', '#FFF500', '#17EA58', '#38FFE7',
3588
+ '#FF9E45', '#B3F32F', '#B93CE4', '#FC5664', '#9B55FF'];
3589
+ break;
3579
3590
  default:
3580
3591
  themePalette = ['#B5E485', '#7BC1E8', '#DF819C', '#EC9B79', '#78D0D3',
3581
3592
  '#D6D572', '#9178E3', '#A1E5B4', '#87A4B4', '#E4C16C'];
@@ -3724,9 +3735,14 @@ function getThemeStyle(theme) {
3724
3735
  zoomFillColor: '#FFFFFF',
3725
3736
  labelFontFamily: 'Roboto, Noto, Sans-serif',
3726
3737
  fontFamily: 'Roboto, Noto, Sans-serif',
3738
+ fontSize: '12px',
3739
+ fontWeight: 'Medium',
3727
3740
  titleFontWeight: 'Medium',
3728
3741
  zoomSelectionColor: '#e61576',
3729
- shapeFill: '#A6A6A6'
3742
+ shapeFill: '#A6A6A6',
3743
+ rectangleZoomFillColor: '#d3d3d3',
3744
+ rectangleZoomFillOpacity: 0.5,
3745
+ rectangleZoomBorderColor: "#009900"
3730
3746
  };
3731
3747
  break;
3732
3748
  case 'highcontrast':
@@ -3743,10 +3759,15 @@ function getThemeStyle(theme) {
3743
3759
  tooltipFillColor: '#ffffff',
3744
3760
  zoomFillColor: '#FFFFFF',
3745
3761
  fontFamily: 'Roboto, Noto, Sans-serif',
3762
+ fontSize: '12px',
3763
+ fontWeight: 'Medium',
3746
3764
  labelFontFamily: 'Roboto, Noto, Sans-serif',
3747
3765
  titleFontWeight: 'Medium',
3748
3766
  zoomSelectionColor: '#e61576',
3749
- shapeFill: '#A6A6A6'
3767
+ shapeFill: '#A6A6A6',
3768
+ rectangleZoomFillColor: '#d3d3d3',
3769
+ rectangleZoomFillOpacity: 0.5,
3770
+ rectangleZoomBorderColor: "#009900"
3750
3771
  };
3751
3772
  break;
3752
3773
  case 'bootstrap4':
@@ -3762,6 +3783,8 @@ function getThemeStyle(theme) {
3762
3783
  tooltipFillColor: '#000000',
3763
3784
  zoomFillColor: '#5B6269',
3764
3785
  fontFamily: 'HelveticaNeue-Medium',
3786
+ fontSize: '12px',
3787
+ fontWeight: 'Medium',
3765
3788
  titleFontSize: '16px',
3766
3789
  legendFontSize: '14px',
3767
3790
  tooltipFillOpacity: 1,
@@ -3769,7 +3792,10 @@ function getThemeStyle(theme) {
3769
3792
  labelFontFamily: 'HelveticaNeue-Medium',
3770
3793
  titleFontWeight: 'Medium',
3771
3794
  zoomSelectionColor: '#e61576',
3772
- shapeFill: '#A6A6A6'
3795
+ shapeFill: '#A6A6A6',
3796
+ rectangleZoomFillColor: '#d3d3d3',
3797
+ rectangleZoomFillOpacity: 0.5,
3798
+ rectangleZoomBorderColor: "#009900"
3773
3799
  };
3774
3800
  break;
3775
3801
  case 'tailwind':
@@ -3785,6 +3811,8 @@ function getThemeStyle(theme) {
3785
3811
  tooltipFillColor: '#111827',
3786
3812
  zoomFillColor: '#6b7280',
3787
3813
  fontFamily: 'Inter',
3814
+ fontSize: '12px',
3815
+ fontWeight: 'Medium',
3788
3816
  titleFontSize: '14px',
3789
3817
  legendFontSize: '12px',
3790
3818
  tooltipFillOpacity: 1,
@@ -3792,7 +3820,10 @@ function getThemeStyle(theme) {
3792
3820
  labelFontFamily: 'Inter',
3793
3821
  titleFontWeight: '500',
3794
3822
  zoomSelectionColor: '#374151',
3795
- shapeFill: '#E5E7EB'
3823
+ shapeFill: '#E5E7EB',
3824
+ rectangleZoomFillColor: '#d3d3d3',
3825
+ rectangleZoomFillOpacity: 0.5,
3826
+ rectangleZoomBorderColor: "#009900"
3796
3827
  };
3797
3828
  break;
3798
3829
  case 'tailwinddark':
@@ -3808,6 +3839,8 @@ function getThemeStyle(theme) {
3808
3839
  tooltipFillColor: '#F9FAFB',
3809
3840
  zoomFillColor: '#D1D5DB',
3810
3841
  fontFamily: 'Inter',
3842
+ fontSize: '12px',
3843
+ fontWeight: 'Medium',
3811
3844
  titleFontSize: '14px',
3812
3845
  legendFontSize: '12px',
3813
3846
  tooltipFillOpacity: 1,
@@ -3815,7 +3848,10 @@ function getThemeStyle(theme) {
3815
3848
  labelFontFamily: 'Inter',
3816
3849
  titleFontWeight: '500',
3817
3850
  zoomSelectionColor: '#F3F4F6',
3818
- shapeFill: '#374151'
3851
+ shapeFill: '#374151',
3852
+ rectangleZoomFillColor: '#d3d3d3',
3853
+ rectangleZoomFillOpacity: 0.5,
3854
+ rectangleZoomBorderColor: "#009900"
3819
3855
  };
3820
3856
  break;
3821
3857
  case 'bootstrap5':
@@ -3831,6 +3867,8 @@ function getThemeStyle(theme) {
3831
3867
  tooltipFillColor: '#212529',
3832
3868
  zoomFillColor: '#6C757D',
3833
3869
  fontFamily: 'Helvetica Neue',
3870
+ fontSize: '12px',
3871
+ fontWeight: 'Medium',
3834
3872
  titleFontSize: '14px',
3835
3873
  legendFontSize: '12px',
3836
3874
  tooltipFillOpacity: 1,
@@ -3838,7 +3876,10 @@ function getThemeStyle(theme) {
3838
3876
  labelFontFamily: 'Helvetica Neue',
3839
3877
  titleFontWeight: 'normal',
3840
3878
  zoomSelectionColor: '#343A40',
3841
- shapeFill: '#E9ECEF'
3879
+ shapeFill: '#E9ECEF',
3880
+ rectangleZoomFillColor: '#d3d3d3',
3881
+ rectangleZoomFillOpacity: 0.5,
3882
+ rectangleZoomBorderColor: "#009900"
3842
3883
  };
3843
3884
  break;
3844
3885
  case 'bootstrap5dark':
@@ -3854,6 +3895,8 @@ function getThemeStyle(theme) {
3854
3895
  tooltipFillColor: '#E9ECEF',
3855
3896
  zoomFillColor: '#B5BABE',
3856
3897
  fontFamily: 'Helvetica Neue',
3898
+ fontSize: '12px',
3899
+ fontWeight: 'Medium',
3857
3900
  titleFontSize: '14px',
3858
3901
  legendFontSize: '12px',
3859
3902
  tooltipFillOpacity: 1,
@@ -3861,7 +3904,10 @@ function getThemeStyle(theme) {
3861
3904
  labelFontFamily: 'Helvetica Neue',
3862
3905
  titleFontWeight: 'normal',
3863
3906
  zoomSelectionColor: '#DEE2E6',
3864
- shapeFill: '#495057'
3907
+ shapeFill: '#495057',
3908
+ rectangleZoomFillColor: '#d3d3d3',
3909
+ rectangleZoomFillOpacity: 0.5,
3910
+ rectangleZoomBorderColor: "#009900"
3865
3911
  };
3866
3912
  break;
3867
3913
  case 'fluent':
@@ -3877,6 +3923,8 @@ function getThemeStyle(theme) {
3877
3923
  tooltipFillColor: '#FFFFFF',
3878
3924
  zoomFillColor: '#A19F9D',
3879
3925
  fontFamily: 'Segoe UI',
3926
+ fontSize: '12px',
3927
+ fontWeight: 'Medium',
3880
3928
  titleFontSize: '14px',
3881
3929
  legendFontSize: '12px',
3882
3930
  tooltipFillOpacity: 1,
@@ -3884,7 +3932,10 @@ function getThemeStyle(theme) {
3884
3932
  labelFontFamily: 'Segoe UI',
3885
3933
  titleFontWeight: '600',
3886
3934
  zoomSelectionColor: '#323130',
3887
- shapeFill: '#F3F2F1'
3935
+ shapeFill: '#F3F2F1',
3936
+ rectangleZoomFillColor: '#d3d3d3',
3937
+ rectangleZoomFillOpacity: 0.5,
3938
+ rectangleZoomBorderColor: "#009900"
3888
3939
  };
3889
3940
  break;
3890
3941
  case 'fluentdark':
@@ -3900,6 +3951,8 @@ function getThemeStyle(theme) {
3900
3951
  tooltipFillColor: '#252423',
3901
3952
  zoomFillColor: '#484644',
3902
3953
  fontFamily: 'Segoe UI',
3954
+ fontSize: '12px',
3955
+ fontWeight: 'Medium',
3903
3956
  titleFontSize: '14px',
3904
3957
  legendFontSize: '12px',
3905
3958
  tooltipFillOpacity: 1,
@@ -3907,7 +3960,68 @@ function getThemeStyle(theme) {
3907
3960
  labelFontFamily: 'Segoe UI',
3908
3961
  titleFontWeight: '600',
3909
3962
  zoomSelectionColor: '#F3F2F1',
3910
- shapeFill: '#252423'
3963
+ shapeFill: '#252423',
3964
+ rectangleZoomFillColor: '#d3d3d3',
3965
+ rectangleZoomFillOpacity: 0.5,
3966
+ rectangleZoomBorderColor: "#009900"
3967
+ };
3968
+ break;
3969
+ case 'material3':
3970
+ style = {
3971
+ backgroundColor: 'transparent',
3972
+ areaBackgroundColor: 'transparent',
3973
+ titleFontColor: '#1C1B1F',
3974
+ subTitleFontColor: '#1C1B1F',
3975
+ legendTitleFontColor: '#1C1B1F',
3976
+ legendTextColor: '#49454E',
3977
+ dataLabelFontColor: '#1C1B1F',
3978
+ tooltipFontColor: '#F4EFF4',
3979
+ tooltipFillColor: '#313033',
3980
+ zoomFillColor: '#49454E',
3981
+ fontFamily: 'Roboto',
3982
+ fontSize: '14px',
3983
+ titleFontSize: '16px',
3984
+ subTitleFontSize: '14px',
3985
+ legendFontSize: '12px',
3986
+ tooltipFillOpacity: 1,
3987
+ tooltipTextOpacity: 1,
3988
+ labelFontFamily: 'Roboto',
3989
+ titleFontWeight: '500',
3990
+ fontWeight: '400',
3991
+ zoomSelectionColor: '#49454E',
3992
+ shapeFill: '#E7E0EC',
3993
+ rectangleZoomFillColor: '#6750A4',
3994
+ rectangleZoomFillOpacity: 0.24,
3995
+ rectangleZoomBorderColor: "#6750A4"
3996
+ };
3997
+ break;
3998
+ case 'material3dark':
3999
+ style = {
4000
+ backgroundColor: 'transparent',
4001
+ areaBackgroundColor: 'transparent',
4002
+ titleFontColor: '#E6E1E5',
4003
+ subTitleFontColor: '#E6E1E5',
4004
+ legendTitleFontColor: '#E6E1E5',
4005
+ legendTextColor: '#CAC4D0',
4006
+ dataLabelFontColor: '#E6E1E5',
4007
+ tooltipFontColor: '#313033',
4008
+ tooltipFillColor: '#E6E1E5',
4009
+ zoomFillColor: '#E6E1E5',
4010
+ fontFamily: 'Roboto',
4011
+ fontSize: '14px',
4012
+ titleFontSize: '16px',
4013
+ subTitleFontSize: '14px',
4014
+ legendFontSize: '12px',
4015
+ tooltipFillOpacity: 1,
4016
+ tooltipTextOpacity: 1,
4017
+ labelFontFamily: 'Roboto',
4018
+ titleFontWeight: '500',
4019
+ fontWeight: '400',
4020
+ zoomSelectionColor: '#E6E1E5',
4021
+ shapeFill: '#49454F',
4022
+ rectangleZoomFillColor: '#D0BCFF',
4023
+ rectangleZoomFillOpacity: 0.24,
4024
+ rectangleZoomBorderColor: "#D0BCFF"
3911
4025
  };
3912
4026
  break;
3913
4027
  default:
@@ -3925,9 +4039,14 @@ function getThemeStyle(theme) {
3925
4039
  zoomFillColor: '#737373',
3926
4040
  labelFontFamily: 'Roboto, Noto, Sans-serif',
3927
4041
  fontFamily: 'Roboto, Noto, Sans-serif',
4042
+ fontSize: '12px',
4043
+ fontWeight: 'Medium',
3928
4044
  titleFontWeight: 'Medium',
3929
4045
  zoomSelectionColor: '#e61576',
3930
- shapeFill: '#A6A6A6'
4046
+ shapeFill: '#A6A6A6',
4047
+ rectangleZoomFillColor: '#d3d3d3',
4048
+ rectangleZoomFillOpacity: 0.5,
4049
+ rectangleZoomBorderColor: "#009900"
3931
4050
  };
3932
4051
  break;
3933
4052
  }
@@ -4217,7 +4336,7 @@ var TooltipSettings = /** @__PURE__ @class */ (function (_super) {
4217
4336
  Complex({ color: 'transparent', width: 1 }, Border)
4218
4337
  ], TooltipSettings.prototype, "border", void 0);
4219
4338
  __decorate$1([
4220
- Complex(Theme.tooltipLabelFont, Font)
4339
+ Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
4221
4340
  ], TooltipSettings.prototype, "textStyle", void 0);
4222
4341
  __decorate$1([
4223
4342
  Property(null)
@@ -4731,7 +4850,7 @@ var LegendSettings = /** @__PURE__ @class */ (function (_super) {
4731
4850
  Property('')
4732
4851
  ], LegendSettings.prototype, "height", void 0);
4733
4852
  __decorate$1([
4734
- Complex({ fontFamily: null }, Font)
4853
+ Complex({ fontFamily: null, fontWeight: null }, Font)
4735
4854
  ], LegendSettings.prototype, "textStyle", void 0);
4736
4855
  __decorate$1([
4737
4856
  Property(15)
@@ -4752,7 +4871,7 @@ var LegendSettings = /** @__PURE__ @class */ (function (_super) {
4752
4871
  Complex({}, CommonTitleSettings)
4753
4872
  ], LegendSettings.prototype, "title", void 0);
4754
4873
  __decorate$1([
4755
- Complex({ size: Theme.legendTitleFont.size, color: Theme.legendTitleFont.color, fontStyle: Theme.legendTitleFont.fontStyle, fontWeight: Theme.legendTitleFont.fontWeight, fontFamily: null }, Font)
4874
+ Complex({ size: null, color: Theme.legendTitleFont.color, fontStyle: Theme.legendTitleFont.fontStyle, fontWeight: null, fontFamily: null }, Font)
4756
4875
  ], LegendSettings.prototype, "titleStyle", void 0);
4757
4876
  __decorate$1([
4758
4877
  Property('Bottom')
@@ -4816,7 +4935,7 @@ var DataLabelSettings = /** @__PURE__ @class */ (function (_super) {
4816
4935
  Property(5)
4817
4936
  ], DataLabelSettings.prototype, "ry", void 0);
4818
4937
  __decorate$1([
4819
- Complex({}, Font)
4938
+ Complex({ fontWeight: null }, Font)
4820
4939
  ], DataLabelSettings.prototype, "textStyle", void 0);
4821
4940
  __decorate$1([
4822
4941
  Property('')
@@ -6080,7 +6199,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
6080
6199
  this.horizontalPan = false;
6081
6200
  this.horizontalPanXCount = 0;
6082
6201
  this.mapObject = map;
6083
- this.ajaxModule = new Ajax();
6202
+ this.ajaxModule = new Fetch();
6084
6203
  this.ajaxResponse = [];
6085
6204
  }
6086
6205
  LayerPanel.prototype.measureLayerPanel = function () {
@@ -6319,14 +6438,13 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
6319
6438
  var bing_1 = new BingMap(_this.mapObject);
6320
6439
  var bingType = layer.bingMapType === 'AerialWithLabel' ? 'AerialWithLabelsOnDemand' : layer.bingMapType;
6321
6440
  var url = 'https://dev.virtualearth.net/REST/V1/Imagery/Metadata/' + bingType;
6322
- var ajax = new Ajax({
6441
+ var ajax = new Fetch({
6323
6442
  url: url + '?output=json&include=ImageryProviders&urischeme=https&key=' + layer.key
6324
6443
  });
6444
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
6325
6445
  ajax.onSuccess = function (json) {
6326
6446
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6327
- var jsonObject = JSON.parse(json);
6328
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6329
- var resource = jsonObject['resourceSets'][0]['resources'][0];
6447
+ var resource = json['resourceSets'][0]['resources'][0];
6330
6448
  var imageUrl = resource['imageUrl'];
6331
6449
  var subDomains = resource['imageUrlSubdomains'];
6332
6450
  var maxZoom = resource['zoomMax'];
@@ -7352,6 +7470,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
7352
7470
  imgElement.setAttribute('width', '256px');
7353
7471
  imgElement.setAttribute('src', tile.src);
7354
7472
  imgElement.setAttribute('alt', _this.mapObject.getLocalizedLabel('ImageNotFound'));
7473
+ imgElement.style.setProperty('user-select', 'none');
7355
7474
  child.appendChild(imgElement);
7356
7475
  animateElement.appendChild(child);
7357
7476
  }
@@ -7361,6 +7480,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
7361
7480
  imgElement.setAttribute('height', '256px');
7362
7481
  imgElement.setAttribute('width', '256px');
7363
7482
  imgElement.setAttribute('src', tile.src);
7483
+ imgElement.style.setProperty('user-select', 'none');
7364
7484
  imgElement.setAttribute('alt', _this.mapObject.getLocalizedLabel('ImageNotFound'));
7365
7485
  var child = createElement('div', { id: mapId + '_tile_' + id });
7366
7486
  child.style.position = 'absolute';
@@ -8005,11 +8125,11 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8005
8125
  Maps.prototype.processAjaxRequest = function (layer, localAjax, type) {
8006
8126
  var _this = this;
8007
8127
  this.serverProcess['request']++;
8008
- var ajaxModule = new Ajax(localAjax.dataOptions, localAjax.type, localAjax.async, localAjax.contentType);
8009
- ajaxModule.onSuccess = function (args) {
8010
- _this.processResponseJsonData('Ajax', args, layer, type);
8128
+ var fetchApiModule = new Fetch(localAjax.dataOptions, localAjax.type, localAjax.contentType);
8129
+ fetchApiModule.onSuccess = function (args) {
8130
+ _this.processResponseJsonData('Fetch', args, layer, type);
8011
8131
  };
8012
- ajaxModule.send(localAjax.sendData);
8132
+ fetchApiModule.send(localAjax.sendData);
8013
8133
  };
8014
8134
  /**
8015
8135
  * This method is used to process the JSON data to render the maps.
@@ -8025,10 +8145,10 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8025
8145
  this.serverProcess['response']++;
8026
8146
  if (processType) {
8027
8147
  if (dataType === 'ShapeData') {
8028
- layer.shapeData = (processType === 'DataManager') ? processResult(data) : JSON.parse(data);
8148
+ layer.shapeData = (processType === 'DataManager') ? processResult(data) : data;
8029
8149
  }
8030
8150
  else {
8031
- layer.dataSource = (processType === 'DataManager') ? processResult(data) : JSON.parse('[' + data + ']')[0];
8151
+ layer.dataSource = (processType === 'DataManager') ? processResult(data) : data;
8032
8152
  }
8033
8153
  }
8034
8154
  if (!isNullOrUndefined(processType) && this.serverProcess['request'] === this.serverProcess['response']) {
@@ -8260,8 +8380,8 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8260
8380
  var element = getElementByID(this.element.id + '_Secondary_Element');
8261
8381
  var rect = this.element.getBoundingClientRect();
8262
8382
  var svgRect = getElementByID(this.element.id + '_svg').getBoundingClientRect();
8263
- element.style.marginLeft = Math.max(svgRect.left - rect.left, 0) + 'px';
8264
- element.style.marginTop = Math.max(svgRect.top - rect.top, 0) + 'px';
8383
+ element.style.left = Math.max(svgRect.left - rect.left, 0) + 'px';
8384
+ element.style.top = Math.max(svgRect.top - rect.top, 0) + 'px';
8265
8385
  };
8266
8386
  Maps.prototype.zoomingChange = function () {
8267
8387
  var left;
@@ -8484,8 +8604,8 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8484
8604
  var height;
8485
8605
  var width = Math.abs((this.margin.left + this.margin.right) - this.availableSize.width);
8486
8606
  style.fontFamily = !isNullOrUndefined(style.fontFamily) ? style.fontFamily : this.themeStyle.fontFamily;
8487
- style.fontWeight = style.fontWeight || this.themeStyle.titleFontWeight;
8488
- style.size = type === 'title' ? (style.size || this.themeStyle.titleFontSize) : (style.size || Theme.mapsSubTitleFont.size);
8607
+ style.fontWeight = type === 'title' ? style.fontWeight || this.themeStyle.titleFontWeight : style.fontWeight || this.themeStyle.titleFontWeight;
8608
+ style.size = type === 'title' ? (style.size || this.themeStyle.titleFontSize) : (style.size || this.themeStyle.subTitleFontSize || Theme.mapsSubTitleFont.size);
8489
8609
  if (title.text) {
8490
8610
  if (isNullOrUndefined(groupEle)) {
8491
8611
  groupEle = this.renderer.createGroup({ id: this.element.id + '_Title_Group' });
@@ -9212,7 +9332,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
9212
9332
  */
9213
9333
  Maps.prototype.mapsOnResize = function (e) {
9214
9334
  var _this = this;
9215
- if (!this.isDestroyed) {
9335
+ if (!this.isDestroyed && !this.isExportInitialTileMap) {
9216
9336
  this.isResize = this.isReset = true;
9217
9337
  var args = {
9218
9338
  cancel: false,
@@ -9954,17 +10074,15 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
9954
10074
  var promise;
9955
10075
  if (!this.isDestroyed) {
9956
10076
  promise = new Promise(function (resolve, reject) {
9957
- var ajax = new Ajax({
10077
+ var fetchApi = new Fetch({
9958
10078
  url: url
9959
10079
  });
9960
- ajax.onSuccess = function (json) {
9961
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9962
- var jsonObject = JSON.parse(json);
10080
+ fetchApi.onSuccess = function (json) {
9963
10081
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9964
- var resource = jsonObject['resourceSets'][0]['resources'][0];
10082
+ var resource = json['resourceSets'][0]['resources'][0];
9965
10083
  resolve(resource['imageUrl']);
9966
10084
  };
9967
- ajax.send();
10085
+ fetchApi.send();
9968
10086
  });
9969
10087
  }
9970
10088
  return promise;
@@ -10643,6 +10761,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
10643
10761
  var locationX;
10644
10762
  var locationY;
10645
10763
  style.fontFamily = this.maps.theme.toLowerCase() !== 'material' ? this.maps.themeStyle.labelFontFamily : style.fontFamily;
10764
+ style.fontWeight = style.fontWeight || this.maps.themeStyle.fontWeight || Theme.dataLabelFont.fontWeight;
10646
10765
  shape = shapes['property'];
10647
10766
  var properties = (Object.prototype.toString.call(layer.shapePropertyPath) === '[object Array]' ?
10648
10767
  layer.shapePropertyPath : [layer.shapePropertyPath]);
@@ -11633,6 +11752,7 @@ var Legend = /** @__PURE__ @class */ (function () {
11633
11752
  legendTextStyle.fontFamily = !isNullOrUndefined(legendTextStyle.fontFamily) ? legendTextStyle.fontFamily :
11634
11753
  this.maps.themeStyle.fontFamily;
11635
11754
  legendTextStyle.size = map.themeStyle.legendFontSize || legendTextStyle.size;
11755
+ legendTextStyle.fontWeight = legendTextStyle.fontWeight || map.themeStyle.fontWeight;
11636
11756
  if (i === 0) {
11637
11757
  this.renderLegendBorder();
11638
11758
  }
@@ -12401,6 +12521,8 @@ var Legend = /** @__PURE__ @class */ (function () {
12401
12521
  if (legendTitle) {
12402
12522
  textStyle.color = (textStyle.color !== null) ? textStyle.color : this.maps.themeStyle.legendTitleFontColor;
12403
12523
  textStyle.fontFamily = !isNullOrUndefined(textStyle.fontFamily) ? textStyle.fontFamily : this.maps.themeStyle.fontFamily;
12524
+ textStyle.size = !isNullOrUndefined(textStyle.size) ? textStyle.size : this.maps.themeStyle.subTitleFontSize || Theme.legendTitleFont.size;
12525
+ textStyle.fontWeight = !isNullOrUndefined(textStyle.fontWeight) ? textStyle.fontWeight : this.maps.themeStyle.titleFontWeight || Theme.legendTitleFont.fontWeight;
12404
12526
  textOptions = new TextOption(map.element.id + '_LegendTitle', (this.legendItemRect.x) + (this.legendItemRect.width / 2), this.legendItemRect.y - (textSize.height / 2) - spacing / 2, 'middle', trimTitle, '');
12405
12527
  renderTextElement(textOptions, textStyle, textStyle.color, this.legendGroup);
12406
12528
  }
@@ -14028,7 +14150,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14028
14150
  currentData = this.formatter(marker$$1.tooltipSettings.format, marker$$1.dataSource[dataIndex]);
14029
14151
  }
14030
14152
  else {
14031
- if (marker$$1.template && !marker$$1.tooltipSettings.valuePath) {
14153
+ if (typeof marker$$1.template !== 'function' && marker$$1.template && !marker$$1.tooltipSettings.valuePath) {
14032
14154
  currentData = marker$$1.template.split('>')[1].split('<')[0];
14033
14155
  }
14034
14156
  else {
@@ -14071,7 +14193,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14071
14193
  tooltipEle.style.cssText = 'position: absolute;pointer-events:none;';
14072
14194
  document.getElementById(this.maps.element.id + '_Secondary_Element').appendChild(tooltipEle);
14073
14195
  }
14074
- if (option.template !== null && Object.keys(typeof option.template === 'object' ? option.template : {}).length === 1) {
14196
+ if (typeof option.template !== 'function' && option.template !== null && Object.keys(typeof option.template === 'object' ? option.template : {}).length === 1) {
14075
14197
  option.template = option.template[Object.keys(option.template)[0]];
14076
14198
  }
14077
14199
  templateData = this.setTooltipContent(option, templateData);
@@ -14096,10 +14218,14 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14096
14218
  if (!tooltipArgs.cancel && option.visible && !isNullOrUndefined(currentData) &&
14097
14219
  (targetId.indexOf('_cluster_') === -1 && targetId.indexOf('_dataLabel_') === -1)) {
14098
14220
  _this.maps['isProtectedOnChange'] = true;
14221
+ tooltipArgs.options['textStyle']['size'] = tooltipArgs.options['textStyle']['size']
14222
+ || _this.maps.themeStyle.fontSize;
14099
14223
  tooltipArgs.options['textStyle']['color'] = tooltipArgs.options['textStyle']['color']
14100
14224
  || _this.maps.themeStyle.tooltipFontColor;
14101
14225
  tooltipArgs.options['textStyle']['fontFamily'] = tooltipArgs.options['textStyle']['fontFamily']
14102
14226
  || _this.maps.themeStyle.fontFamily;
14227
+ tooltipArgs.options['textStyle']['fontWeight'] = tooltipArgs.options['textStyle']['fontWeight']
14228
+ || _this.maps.themeStyle.fontWeight;
14103
14229
  tooltipArgs.options['textStyle']['opacity'] = tooltipArgs.options['textStyle']['opacity']
14104
14230
  || _this.maps.themeStyle.tooltipTextOpacity;
14105
14231
  if (tooltipArgs.cancel) {
@@ -14380,93 +14506,103 @@ var Zoom = /** @__PURE__ @class */ (function () {
14380
14506
  var scale = map.previousScale = map.scale;
14381
14507
  var maxZoom = map.zoomSettings.maxZoom;
14382
14508
  var minZoom = map.zoomSettings.minZoom;
14383
- newZoomFactor = (minZoom > newZoomFactor && type === 'ZoomIn') ? minZoom + 1 : newZoomFactor;
14384
14509
  newZoomFactor = maxZoom >= newZoomFactor ? newZoomFactor : maxZoom;
14385
- var prevTilePoint = map.tileTranslatePoint;
14386
- if ((!map.isTileMap) && ((type === 'ZoomIn' ? newZoomFactor >= minZoom && newZoomFactor <= maxZoom : newZoomFactor >= minZoom)
14387
- || map.isReset)) {
14388
- var availSize = map.mapAreaRect;
14389
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
14390
- var minBounds = map.baseMapRectBounds['min'];
14391
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
14392
- var maxBounds = map.baseMapRectBounds['max'];
14393
- var mapTotalWidth = Math.abs(minBounds['x'] - maxBounds['x']);
14394
- var mapTotalHeight = Math.abs(minBounds['y'] - maxBounds['y']);
14395
- var translatePointX = void 0;
14396
- var translatePointY = void 0;
14397
- if (newZoomFactor < 1.2 && map.projectionType !== 'Eckert5') {
14398
- if (mapTotalWidth === 0 || mapTotalHeight === 0 || mapTotalWidth === mapTotalHeight) {
14399
- mapTotalWidth = availSize.width / 2;
14400
- mapTotalHeight = availSize.height;
14510
+ var isToolbarPerform = true;
14511
+ switch (type.toLowerCase()) {
14512
+ case 'zoomin':
14513
+ isToolbarPerform = newZoomFactor <= this.maps.zoomSettings.maxZoom;
14514
+ break;
14515
+ case 'zoomout':
14516
+ isToolbarPerform = newZoomFactor >= this.maps.zoomSettings.minZoom;
14517
+ break;
14518
+ }
14519
+ if (isToolbarPerform) {
14520
+ var prevTilePoint = map.tileTranslatePoint;
14521
+ if ((!map.isTileMap) && ((type === 'ZoomIn' ? newZoomFactor >= minZoom && newZoomFactor <= maxZoom : newZoomFactor >= minZoom)
14522
+ || map.isReset)) {
14523
+ var availSize = map.mapAreaRect;
14524
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14525
+ var minBounds = map.baseMapRectBounds['min'];
14526
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14527
+ var maxBounds = map.baseMapRectBounds['max'];
14528
+ var mapTotalWidth = Math.abs(minBounds['x'] - maxBounds['x']);
14529
+ var mapTotalHeight = Math.abs(minBounds['y'] - maxBounds['y']);
14530
+ var translatePointX = void 0;
14531
+ var translatePointY = void 0;
14532
+ if (newZoomFactor < 1.2 && map.projectionType !== 'Eckert5') {
14533
+ if (mapTotalWidth === 0 || mapTotalHeight === 0 || mapTotalWidth === mapTotalHeight) {
14534
+ mapTotalWidth = availSize.width / 2;
14535
+ mapTotalHeight = availSize.height;
14536
+ }
14537
+ newZoomFactor = parseFloat(Math.min(availSize.width / mapTotalWidth, availSize.height / mapTotalHeight).toFixed(2));
14538
+ newZoomFactor = newZoomFactor > 1.05 ? 1 : newZoomFactor;
14539
+ map.translatePoint = this.calculateInitalZoomTranslatePoint(newZoomFactor, mapTotalWidth, mapTotalHeight, availSize, minBounds, map);
14540
+ }
14541
+ else {
14542
+ var point = map.translatePoint;
14543
+ translatePointX = point.x - (((availSize.width / scale) - (availSize.width / newZoomFactor)) / (availSize.width / position.x));
14544
+ translatePointY = point.y - (((availSize.height / scale) - (availSize.height / newZoomFactor)) / (availSize.height / position.y));
14545
+ var currentHeight = Math.abs(map.baseMapRectBounds['max']['y'] - map.baseMapRectBounds['min']['y']) * newZoomFactor;
14546
+ translatePointX = (currentHeight < map.mapAreaRect.height) ? (availSize.x + ((-(minBounds['x'])) + ((availSize.width / 2) - (mapTotalWidth / 2)))) : translatePointX;
14547
+ translatePointY = (currentHeight < map.mapAreaRect.height) ? (availSize.y + ((-(minBounds['y'])) + ((availSize.height / 2) - (mapTotalHeight / 2)))) : translatePointY;
14548
+ map.translatePoint = new Point(translatePointX, translatePointY);
14549
+ }
14550
+ map.scale = newZoomFactor;
14551
+ if (this.triggerZoomEvent(prevTilePoint, prevLevel, type)) {
14552
+ map.translatePoint = map.previousPoint;
14553
+ map.scale = map.mapScaleValue = map.previousScale;
14554
+ }
14555
+ else {
14556
+ this.applyTransform(map);
14401
14557
  }
14402
- newZoomFactor = parseFloat(Math.min(availSize.width / mapTotalWidth, availSize.height / mapTotalHeight).toFixed(2));
14403
- newZoomFactor = newZoomFactor > 1.05 ? 1 : newZoomFactor;
14404
- map.translatePoint = this.calculateInitalZoomTranslatePoint(newZoomFactor, mapTotalWidth, mapTotalHeight, availSize, minBounds, map);
14405
- }
14406
- else {
14407
- var point = map.translatePoint;
14408
- translatePointX = point.x - (((availSize.width / scale) - (availSize.width / newZoomFactor)) / (availSize.width / position.x));
14409
- translatePointY = point.y - (((availSize.height / scale) - (availSize.height / newZoomFactor)) / (availSize.height / position.y));
14410
- var currentHeight = Math.abs(map.baseMapRectBounds['max']['y'] - map.baseMapRectBounds['min']['y']) * newZoomFactor;
14411
- translatePointX = (currentHeight < map.mapAreaRect.height) ? (availSize.x + ((-(minBounds['x'])) + ((availSize.width / 2) - (mapTotalWidth / 2)))) : translatePointX;
14412
- translatePointY = (currentHeight < map.mapAreaRect.height) ? (availSize.y + ((-(minBounds['y'])) + ((availSize.height / 2) - (mapTotalHeight / 2)))) : translatePointY;
14413
- map.translatePoint = new Point(translatePointX, translatePointY);
14414
- }
14415
- map.scale = newZoomFactor;
14416
- if (this.triggerZoomEvent(prevTilePoint, prevLevel, type)) {
14417
- map.translatePoint = map.previousPoint;
14418
- map.scale = map.mapScaleValue = map.previousScale;
14419
14558
  }
14420
- else {
14421
- this.applyTransform(map);
14422
- }
14423
- }
14424
- else if ((map.isTileMap) && (newZoomFactor >= minZoom && newZoomFactor <= maxZoom)) {
14425
- this.getTileTranslatePosition(prevLevel, newZoomFactor, position, type);
14426
- map.tileZoomLevel = newZoomFactor;
14427
- map.zoomSettings.zoomFactor = newZoomFactor;
14428
- map.scale = Math.pow(2, newZoomFactor - 1);
14429
- if (type === 'ZoomOut' && map.zoomSettings.resetToInitial && map.applyZoomReset && newZoomFactor <= map.initialZoomLevel) {
14430
- map.initialCheck = true;
14431
- map.zoomPersistence = false;
14432
- map.tileTranslatePoint.x = map.initialTileTranslate.x;
14433
- map.tileTranslatePoint.y = map.initialTileTranslate.y;
14434
- newZoomFactor = map.tileZoomLevel = map.mapScaleValue = map.initialZoomLevel;
14559
+ else if ((map.isTileMap) && (newZoomFactor >= minZoom && newZoomFactor <= maxZoom)) {
14560
+ this.getTileTranslatePosition(prevLevel, newZoomFactor, position, type);
14561
+ map.tileZoomLevel = newZoomFactor;
14562
+ map.zoomSettings.zoomFactor = newZoomFactor;
14435
14563
  map.scale = Math.pow(2, newZoomFactor - 1);
14436
- }
14437
- map.translatePoint.y = (map.tileTranslatePoint.y - (0.01 * map.mapScaleValue)) / map.scale;
14438
- map.translatePoint.x = (map.tileTranslatePoint.x - (0.01 * map.mapScaleValue)) / map.scale;
14439
- if (this.triggerZoomEvent(prevTilePoint, prevLevel, type)) {
14440
- map.translatePoint = map.tileTranslatePoint = new Point(0, 0);
14441
- map.scale = map.previousScale;
14442
- map.tileZoomLevel = prevLevel;
14443
- map.zoomSettings.zoomFactor = map.previousScale;
14444
- }
14445
- else {
14446
- if (document.querySelector('.GroupElement')) {
14447
- document.querySelector('.GroupElement').style.display = 'none';
14448
- }
14449
- if (document.getElementById(this.maps.element.id + '_LayerIndex_1')) {
14450
- document.getElementById(this.maps.element.id + '_LayerIndex_1').style.display = 'none';
14451
- }
14452
- this.markerLineAnimation(map);
14453
- map.mapLayerPanel.generateTiles(newZoomFactor, map.tileTranslatePoint, type + 'wheel', null, position);
14454
- var element1 = document.getElementById(this.maps.element.id + '_tiles');
14455
- var animationDuration = this.maps.layersCollection[0].animationDuration;
14456
- setTimeout(function () {
14457
- // if (type === 'ZoomOut') {
14458
- // element1.removeChild(element1.children[element1.childElementCount - 1]);
14459
- // if (element1.childElementCount) {
14460
- // element1.removeChild(element1.children[element1.childElementCount - 1]);
14461
- // } else {
14462
- // element1 = element1;
14463
- // }
14464
- // }
14465
- _this.applyTransform(_this.maps);
14466
- if (document.getElementById(_this.maps.element.id + '_LayerIndex_1')) {
14467
- document.getElementById(_this.maps.element.id + '_LayerIndex_1').style.display = 'block';
14564
+ if (type === 'ZoomOut' && map.zoomSettings.resetToInitial && map.applyZoomReset && newZoomFactor <= map.initialZoomLevel) {
14565
+ map.initialCheck = true;
14566
+ map.zoomPersistence = false;
14567
+ map.tileTranslatePoint.x = map.initialTileTranslate.x;
14568
+ map.tileTranslatePoint.y = map.initialTileTranslate.y;
14569
+ newZoomFactor = map.tileZoomLevel = map.mapScaleValue = map.initialZoomLevel;
14570
+ map.scale = Math.pow(2, newZoomFactor - 1);
14571
+ }
14572
+ map.translatePoint.y = (map.tileTranslatePoint.y - (0.01 * map.mapScaleValue)) / map.scale;
14573
+ map.translatePoint.x = (map.tileTranslatePoint.x - (0.01 * map.mapScaleValue)) / map.scale;
14574
+ if (this.triggerZoomEvent(prevTilePoint, prevLevel, type)) {
14575
+ map.translatePoint = map.tileTranslatePoint = new Point(0, 0);
14576
+ map.scale = map.previousScale;
14577
+ map.tileZoomLevel = prevLevel;
14578
+ map.zoomSettings.zoomFactor = map.previousScale;
14579
+ }
14580
+ else {
14581
+ if (document.querySelector('.GroupElement')) {
14582
+ document.querySelector('.GroupElement').style.display = 'none';
14583
+ }
14584
+ if (document.getElementById(this.maps.element.id + '_LayerIndex_1')) {
14585
+ document.getElementById(this.maps.element.id + '_LayerIndex_1').style.display = 'none';
14468
14586
  }
14469
- }, animationDuration);
14587
+ this.markerLineAnimation(map);
14588
+ map.mapLayerPanel.generateTiles(newZoomFactor, map.tileTranslatePoint, type + 'wheel', null, position);
14589
+ var element1 = document.getElementById(this.maps.element.id + '_tiles');
14590
+ var animationDuration = this.maps.layersCollection[0].animationDuration;
14591
+ setTimeout(function () {
14592
+ // if (type === 'ZoomOut') {
14593
+ // element1.removeChild(element1.children[element1.childElementCount - 1]);
14594
+ // if (element1.childElementCount) {
14595
+ // element1.removeChild(element1.children[element1.childElementCount - 1]);
14596
+ // } else {
14597
+ // element1 = element1;
14598
+ // }
14599
+ // }
14600
+ _this.applyTransform(_this.maps);
14601
+ if (document.getElementById(_this.maps.element.id + '_LayerIndex_1')) {
14602
+ document.getElementById(_this.maps.element.id + '_LayerIndex_1').style.display = 'block';
14603
+ }
14604
+ }, animationDuration);
14605
+ }
14470
14606
  }
14471
14607
  }
14472
14608
  this.maps.zoomNotApplied = false;
@@ -14681,7 +14817,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
14681
14817
  var down = this.mouseDownPoints;
14682
14818
  var move = this.mouseMovePoints;
14683
14819
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
14684
- var border = { width: 1, color: '#009900' };
14820
+ var border = { width: 1, color: this.maps.themeStyle.rectangleZoomBorderColor };
14685
14821
  var width = Math.abs(move.x - down.x);
14686
14822
  var height = Math.abs(move.y - down.y);
14687
14823
  var x = ((move.x > down.x) ? down.x : down.x - width);
@@ -14696,7 +14832,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
14696
14832
  height: map.availableSize.height,
14697
14833
  style: 'position: absolute;'
14698
14834
  });
14699
- var rectOption = new RectOption(map.element.id + '_ZoomRect', '#d3d3d3', border, 0.5, this.zoomingRect, 0, 0, '', '3');
14835
+ var rectOption = new RectOption(map.element.id + '_ZoomRect', this.maps.themeStyle.rectangleZoomFillColor, border, this.maps.themeStyle.rectangleZoomFillOpacity, this.zoomingRect, 0, 0, '', '3');
14700
14836
  rectSVGObject.appendChild(map.renderer.drawRectangle(rectOption));
14701
14837
  getElementByID(map.element.id + '_Secondary_Element').appendChild(rectSVGObject);
14702
14838
  }
@@ -15084,6 +15220,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
15084
15220
  zoomtextSize = measureText(zoomtext, style);
15085
15221
  var start = labelY - zoomtextSize['height'] / 4;
15086
15222
  var end = labelY + zoomtextSize['height'] / 4;
15223
+ labelY = end;
15087
15224
  var xpositionEnds = labelX + zoomtextSize['width'] / 2;
15088
15225
  var xpositionStart = labelX - zoomtextSize['width'] / 2;
15089
15226
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -15632,11 +15769,23 @@ var Zoom = /** @__PURE__ @class */ (function () {
15632
15769
  e.stopImmediatePropagation();
15633
15770
  var isTouch = e.pointerType === 'touch' || e.pointerType === '2' || (e.type.indexOf('touch') > -1);
15634
15771
  var toolbar = target.id.split('_Zooming_ToolBar_')[1].split('_')[0];
15635
- if (isTouch) {
15772
+ var isToolbarPerform = true;
15773
+ switch (toolbar.toLowerCase()) {
15774
+ case 'zoomin':
15775
+ isToolbarPerform = (this.maps.isTileMap ? this.maps.tileZoomLevel : this.maps.scale) + 1 <= this.maps.zoomSettings.maxZoom;
15776
+ break;
15777
+ case 'zoomout':
15778
+ isToolbarPerform = (this.maps.isTileMap ? this.maps.tileZoomLevel : this.maps.scale) - 1 >= this.maps.zoomSettings.minZoom;
15779
+ break;
15780
+ case 'reset':
15781
+ isToolbarPerform = Math.round(this.maps.isTileMap ? this.maps.tileZoomLevel : this.maps.scale) != this.maps.zoomSettings.minZoom;
15782
+ break;
15783
+ }
15784
+ if (isTouch && isToolbarPerform) {
15636
15785
  this.handled = true;
15637
15786
  this.performZoomingByToolBar(toolbar);
15638
15787
  }
15639
- else if ((e.type === 'mousedown' || e.type === 'pointerdown') && !this.handled) {
15788
+ else if ((e.type === 'mousedown' || e.type === 'pointerdown') && !this.handled && isToolbarPerform) {
15640
15789
  this.handled = false;
15641
15790
  this.performZoomingByToolBar(toolbar);
15642
15791
  }
@@ -15721,7 +15870,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
15721
15870
  map.markerCenterLatitude = null;
15722
15871
  map.markerCenterLongitude = null;
15723
15872
  this.isZoomSelection = false;
15724
- this.isPan = this.isPanning = map.zoomSettings.enablePanning;
15873
+ this.isPan = map.zoomSettings.enablePanning;
15725
15874
  this.toolBarZooming(map.zoomSettings.minZoom, 'Reset');
15726
15875
  if ((this.isPan && !this.isZoomSelection) || (!this.isPan && this.isZoomSelection)) {
15727
15876
  if (!this.maps.zoomSettings.enablePanning) {
@@ -16382,6 +16531,19 @@ var Print = /** @__PURE__ @class */ (function () {
16382
16531
  Print.prototype.getHTMLContent = function (maps, elements) {
16383
16532
  var div = createElement('div');
16384
16533
  var divElement = maps.element.cloneNode(true);
16534
+ var backgroundElement = (!maps.isTileMap ? divElement.getElementsByTagName('svg')[0] : divElement.getElementsByTagName('svg')[1]);
16535
+ if (!isNullOrUndefined(backgroundElement)) {
16536
+ backgroundElement = backgroundElement.childNodes[0];
16537
+ if (!isNullOrUndefined(backgroundElement)) {
16538
+ var backgroundColor = backgroundElement.getAttribute('fill');
16539
+ if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
16540
+ backgroundElement.setAttribute('fill', 'rgba(255,255,255, 1)');
16541
+ }
16542
+ else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
16543
+ backgroundElement.setAttribute('fill', 'rgba(0, 0, 0, 1)');
16544
+ }
16545
+ }
16546
+ }
16385
16547
  if (maps.isTileMap) {
16386
16548
  for (var i = 0; i < divElement.childElementCount; i++) {
16387
16549
  if (divElement.children[i].id === maps.element.id + '_tile_parent') {
@@ -16478,9 +16640,17 @@ var ImageExport = /** @__PURE__ @class */ (function () {
16478
16640
  var svgDataElement;
16479
16641
  var tileSvg;
16480
16642
  var svgObject = getElementByID(maps.element.id + '_svg').cloneNode(true);
16643
+ var backgroundElement = svgObject.childNodes[0];
16644
+ var backgroundColor = backgroundElement.getAttribute('fill');
16645
+ if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
16646
+ svgObject.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
16647
+ }
16648
+ else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
16649
+ svgObject.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
16650
+ }
16481
16651
  if (!maps.isTileMap) {
16482
16652
  svgDataElement = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' +
16483
- maps.svgObject.outerHTML + '</svg>';
16653
+ svgObject.outerHTML + '</svg>';
16484
16654
  }
16485
16655
  else {
16486
16656
  tileSvg = getElementByID(maps.element.id + '_Tile_SVG').cloneNode(true);
@@ -16519,6 +16689,7 @@ var ImageExport = /** @__PURE__ @class */ (function () {
16519
16689
  image_1.src = url;
16520
16690
  }
16521
16691
  else {
16692
+ maps.isExportInitialTileMap = true;
16522
16693
  var svgParentElement = document.getElementById(maps.element.id + '_MapAreaBorder');
16523
16694
  var top_1 = parseFloat(svgParentElement.getAttribute('y'));
16524
16695
  var left_1 = parseFloat(svgParentElement.getAttribute('x'));
@@ -16528,7 +16699,9 @@ var ImageExport = /** @__PURE__ @class */ (function () {
16528
16699
  var tile = document.getElementById(maps.element.id + '_tile_' + (i - 1));
16529
16700
  var exportTileImg = new Image();
16530
16701
  exportTileImg.crossOrigin = 'Anonymous';
16531
- ctxt_1.fillStyle = maps.background ? maps.background : '#FFFFFF';
16702
+ var background = maps.background ? maps.background : ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) ? '#ffffff' :
16703
+ (maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent') ? '#000000' : '#ffffff';
16704
+ ctxt_1.fillStyle = background;
16532
16705
  ctxt_1.fillRect(0, 0, maps.availableSize.width, maps.availableSize.height);
16533
16706
  ctxt_1.font = maps.titleSettings.textStyle.size + ' Arial';
16534
16707
  var titleElement = document.getElementById(maps.element.id + '_Map_title');
@@ -16558,8 +16731,10 @@ var ImageExport = /** @__PURE__ @class */ (function () {
16558
16731
  if (allowDownload) {
16559
16732
  triggerDownload(fileName, type, localBase64, isDownload);
16560
16733
  localStorage.removeItem('local-canvasImage');
16734
+ maps.isExportInitialTileMap = false;
16561
16735
  }
16562
16736
  else {
16737
+ maps.isExportInitialTileMap = false;
16563
16738
  if (type === 'PNG') {
16564
16739
  resolve(localBase64);
16565
16740
  }
@@ -16639,6 +16814,9 @@ var PdfExport = /** @__PURE__ @class */ (function () {
16639
16814
  PdfExport.prototype.export = function (maps, type, fileName, allowDownload, orientation) {
16640
16815
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
16641
16816
  var promise = new Promise(function (resolve, reject) {
16817
+ if (maps.isTileMap) {
16818
+ maps.isExportInitialTileMap = true;
16819
+ }
16642
16820
  var canvasElement = createElement('canvas', {
16643
16821
  id: 'ej2-canvas',
16644
16822
  attrs: {
@@ -16652,10 +16830,12 @@ var PdfExport = /** @__PURE__ @class */ (function () {
16652
16830
  var exportElement = maps.svgObject.cloneNode(true);
16653
16831
  var backgroundElement = exportElement.childNodes[0];
16654
16832
  var backgroundColor = backgroundElement.getAttribute('fill');
16655
- if ((maps.theme === 'Tailwind' || maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5' || maps.theme === 'Bootstrap5Dark'
16656
- || maps.theme === 'Fluent' || maps.theme === 'FluentDark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
16833
+ if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
16657
16834
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
16658
16835
  }
16836
+ else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
16837
+ exportElement.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
16838
+ }
16659
16839
  var url = window.URL.createObjectURL(new Blob(type === 'SVG' ? [svgData] :
16660
16840
  [(new XMLSerializer()).serializeToString(exportElement)], { type: 'image/svg+xml' }));
16661
16841
  var pdfDocument = new PdfDocument();
@@ -16691,7 +16871,9 @@ var PdfExport = /** @__PURE__ @class */ (function () {
16691
16871
  var tile = document.getElementById(maps.element.id + '_tile_' + (i - 1));
16692
16872
  var tileImg = new Image();
16693
16873
  tileImg.crossOrigin = 'Anonymous';
16694
- ctx.fillStyle = maps.background ? maps.background : '#FFFFFF';
16874
+ var background = maps.background ? maps.background : ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) ? '#ffffff' :
16875
+ (maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent') ? '#000000' : '#ffffff';
16876
+ ctx.fillStyle = background;
16695
16877
  ctx.fillRect(0, 0, maps.availableSize.width, maps.availableSize.height);
16696
16878
  ctx.font = maps.titleSettings.textStyle.size + ' Arial';
16697
16879
  var titleElement = document.getElementById(maps.element.id + '_Map_title');
@@ -16721,6 +16903,7 @@ var PdfExport = /** @__PURE__ @class */ (function () {
16721
16903
  pdfDocument.pageSettings.orientation = orientation;
16722
16904
  x = x.slice(x.indexOf(',') + 1);
16723
16905
  pdfDocument.pages.add().graphics.drawImage(new PdfBitmap(x), 0, 0, (maps.availableSize.width - 60), maps.availableSize.height);
16906
+ maps.isExportInitialTileMap = false;
16724
16907
  if (allowDownload) {
16725
16908
  pdfDocument.save(fileName + '.pdf');
16726
16909
  pdfDocument.destroy();