@syncfusion/ej2-maps 25.2.5 → 26.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +3 -2
- package/dist/ej2-maps.min.js +2 -2
- package/dist/ej2-maps.umd.min.js +2 -2
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +1011 -941
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +1049 -980
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +13 -13
- package/src/maps/layers/bing-map.d.ts +2 -2
- package/src/maps/layers/data-label.js +5 -5
- package/src/maps/layers/layer-panel.js +118 -173
- package/src/maps/layers/legend.js +52 -37
- package/src/maps/layers/marker.js +101 -97
- package/src/maps/layers/navigation-selected-line.js +1 -1
- package/src/maps/layers/polygon.js +9 -6
- package/src/maps/maps.js +7 -16
- package/src/maps/model/base-model.d.ts +2 -91
- package/src/maps/model/base.d.ts +3 -81
- package/src/maps/model/base.js +6 -39
- package/src/maps/model/export-image.js +5 -2
- package/src/maps/model/export-pdf.js +5 -2
- package/src/maps/model/interface.d.ts +12 -0
- package/src/maps/model/interface.js +0 -1
- package/src/maps/model/print.js +5 -2
- package/src/maps/model/theme.js +189 -14
- package/src/maps/user-interaction/tooltip.js +12 -2
- package/src/maps/user-interaction/zoom.js +27 -40
- package/src/maps/utils/enum.d.ts +7 -53
- package/src/maps/utils/helper.js +16 -24
- package/CHANGELOG.md +0 -653
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { Alignment, LegendPosition, LegendType, LegendMode,
|
|
1
|
+
import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';import { Alignment, LegendPosition, LegendType, LegendMode, Type, MarkerType, Orientation, MapAjax } from '../../index';import { SmartLabelMode, IntersectAction } from '../../index';import { Theme } from './theme';import { Point, GeoLocation, Coordinate } from '../utils/helper';import { LegendArrangement, LegendShape, BubbleType, ToolbarItem } from '../utils/enum';import { AnnotationAlignment, GeometryType, LabelPosition, LabelIntersectAction } from '../index';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class Annotation
|
|
@@ -174,7 +174,7 @@ export interface ZoomToolbarButtonSettingsModel {
|
|
|
174
174
|
/**
|
|
175
175
|
* Gets or sets the radius of the button. This property is used to modify the size of the button.
|
|
176
176
|
*
|
|
177
|
-
* @default
|
|
177
|
+
* @default null
|
|
178
178
|
*/
|
|
179
179
|
radius?: number;
|
|
180
180
|
|
|
@@ -1236,61 +1236,6 @@ export interface ZoomSettingsModel {
|
|
|
1236
1236
|
*/
|
|
1237
1237
|
enableSelectionZooming?: boolean;
|
|
1238
1238
|
|
|
1239
|
-
/**
|
|
1240
|
-
* Gets or sets the orientation of the zoom toolbar.
|
|
1241
|
-
*
|
|
1242
|
-
* @default Horizontal
|
|
1243
|
-
|
|
1244
|
-
*/
|
|
1245
|
-
toolBarOrientation?: Orientation;
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Gets or sets the color for the toolbar in maps.
|
|
1249
|
-
*
|
|
1250
|
-
* @default null
|
|
1251
|
-
|
|
1252
|
-
*/
|
|
1253
|
-
color?: string;
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* Gets or sets the color for the zoom toolbar when the mouse has hovered on toolbar element in maps.
|
|
1257
|
-
*
|
|
1258
|
-
* @default null
|
|
1259
|
-
|
|
1260
|
-
*/
|
|
1261
|
-
highlightColor?: string;
|
|
1262
|
-
|
|
1263
|
-
/**
|
|
1264
|
-
* Gets or sets the color for the zooming toolbar when clicking the zooming toolbar in maps.
|
|
1265
|
-
*
|
|
1266
|
-
* @default null
|
|
1267
|
-
|
|
1268
|
-
*/
|
|
1269
|
-
selectionColor?: string;
|
|
1270
|
-
|
|
1271
|
-
/**
|
|
1272
|
-
* Gets or sets the position type of toolbar when it is placed horizontally.
|
|
1273
|
-
*
|
|
1274
|
-
* @default Far
|
|
1275
|
-
|
|
1276
|
-
*/
|
|
1277
|
-
horizontalAlignment?: Alignment;
|
|
1278
|
-
|
|
1279
|
-
/**
|
|
1280
|
-
* Gets or sets the position type of toolbar when it is placed vertically.
|
|
1281
|
-
*
|
|
1282
|
-
* @default Near
|
|
1283
|
-
|
|
1284
|
-
*/
|
|
1285
|
-
verticalAlignment?: Alignment;
|
|
1286
|
-
|
|
1287
|
-
/**
|
|
1288
|
-
* Gets or sets the items that are to be shown in the zooming toolbar of the maps. Zoom-in, zoom-out and reset buttons are displayed by default.
|
|
1289
|
-
*
|
|
1290
|
-
|
|
1291
|
-
*/
|
|
1292
|
-
toolbars?: string[];
|
|
1293
|
-
|
|
1294
1239
|
/**
|
|
1295
1240
|
* Enables or disables the mouse wheel zooming in maps.
|
|
1296
1241
|
*
|
|
@@ -2016,40 +1961,6 @@ export interface LayerSettingsModel {
|
|
|
2016
1961
|
*/
|
|
2017
1962
|
geometryType?: GeometryType;
|
|
2018
1963
|
|
|
2019
|
-
/**
|
|
2020
|
-
* Gets or sets the Bing map type for the layer. If you set GeoJSON data in the map and set the `BingMapType` value without setting the layer type as "Bing",
|
|
2021
|
-
* then the map will be rendered based on the provided shape data since the default layer type will be set as "Geometry".
|
|
2022
|
-
*
|
|
2023
|
-
|
|
2024
|
-
* @default Aerial
|
|
2025
|
-
*/
|
|
2026
|
-
bingMapType?: BingMapType;
|
|
2027
|
-
|
|
2028
|
-
/**
|
|
2029
|
-
* Gets or sets the type of the static maps.
|
|
2030
|
-
*
|
|
2031
|
-
|
|
2032
|
-
* @default RoadMap
|
|
2033
|
-
*/
|
|
2034
|
-
staticMapType?: StaticMapType;
|
|
2035
|
-
|
|
2036
|
-
/**
|
|
2037
|
-
* Gets or sets the key for the online map provider to render in the layer of the maps.
|
|
2038
|
-
*
|
|
2039
|
-
|
|
2040
|
-
* @default ''
|
|
2041
|
-
*/
|
|
2042
|
-
key?: string;
|
|
2043
|
-
|
|
2044
|
-
/**
|
|
2045
|
-
* Gets or sets the type of the layer in maps. If we use layer type with shape data property in layer of the maps
|
|
2046
|
-
* then map will render based on the provided layer type.
|
|
2047
|
-
*
|
|
2048
|
-
|
|
2049
|
-
* @default Geometry
|
|
2050
|
-
*/
|
|
2051
|
-
layerType?: ShapeLayerType;
|
|
2052
|
-
|
|
2053
1964
|
/**
|
|
2054
1965
|
* Gets or sets the URL of the online map providers.
|
|
2055
1966
|
* The online map providers will be rendered only when the shape data is not set and layer type is set with default value.
|
package/src/maps/model/base.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
5
5
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
6
|
-
import { Alignment, LegendPosition, LegendType, LegendMode,
|
|
6
|
+
import { Alignment, LegendPosition, LegendType, LegendMode, Type, MarkerType, Orientation, MapAjax } from '../../index';
|
|
7
7
|
import { SmartLabelMode, IntersectAction } from '../../index';
|
|
8
8
|
import { BorderModel, ColorMappingSettingsModel, FontModel, CommonTitleSettingsModel, NavigationLineSettingsModel, PolygonSettingsModel, ZoomToolbarTooltipSettingsModel } from './base-model';
|
|
9
9
|
import { MarkerSettingsModel, MarkerClusterSettingsModel, ShapeSettingsModel, BubbleSettingsModel, ArrowModel } from './base-model';
|
|
@@ -11,7 +11,7 @@ import { DataLabelSettingsModel, TooltipSettingsModel, SubTitleSettingsModel, Se
|
|
|
11
11
|
import { HighlightSettingsModel, ToggleLegendSettingsModel, ConnectorLineSettingsModel, PolygonTooltipSettingsModel } from './base-model';
|
|
12
12
|
import { InitialShapeSelectionSettingsModel, InitialMarkerSelectionSettingsModel, ZoomToolbarSettingsModel, ZoomToolbarButtonSettingsModel } from './base-model';
|
|
13
13
|
import { Point, GeoLocation, Coordinate } from '../utils/helper';
|
|
14
|
-
import {
|
|
14
|
+
import { LegendArrangement, LegendShape, BubbleType, ToolbarItem } from '../utils/enum';
|
|
15
15
|
import { AnnotationAlignment, GeometryType, LabelPosition, LabelIntersectAction } from '../index';
|
|
16
16
|
/**
|
|
17
17
|
* Gets or sets the options for customizing the annotation element in maps.
|
|
@@ -158,7 +158,7 @@ export declare class ZoomToolbarButtonSettings extends ChildProperty<ZoomToolbar
|
|
|
158
158
|
/**
|
|
159
159
|
* Gets or sets the radius of the button. This property is used to modify the size of the button.
|
|
160
160
|
*
|
|
161
|
-
* @default
|
|
161
|
+
* @default null
|
|
162
162
|
*/
|
|
163
163
|
radius: number;
|
|
164
164
|
/**
|
|
@@ -1078,54 +1078,6 @@ export declare class ZoomSettings extends ChildProperty<ZoomSettings> {
|
|
|
1078
1078
|
* @default true
|
|
1079
1079
|
*/
|
|
1080
1080
|
enableSelectionZooming: boolean;
|
|
1081
|
-
/**
|
|
1082
|
-
* Gets or sets the orientation of the zoom toolbar.
|
|
1083
|
-
*
|
|
1084
|
-
* @default Horizontal
|
|
1085
|
-
|
|
1086
|
-
*/
|
|
1087
|
-
toolBarOrientation: Orientation;
|
|
1088
|
-
/**
|
|
1089
|
-
* Gets or sets the color for the toolbar in maps.
|
|
1090
|
-
*
|
|
1091
|
-
* @default null
|
|
1092
|
-
|
|
1093
|
-
*/
|
|
1094
|
-
color: string;
|
|
1095
|
-
/**
|
|
1096
|
-
* Gets or sets the color for the zoom toolbar when the mouse has hovered on toolbar element in maps.
|
|
1097
|
-
*
|
|
1098
|
-
* @default null
|
|
1099
|
-
|
|
1100
|
-
*/
|
|
1101
|
-
highlightColor: string;
|
|
1102
|
-
/**
|
|
1103
|
-
* Gets or sets the color for the zooming toolbar when clicking the zooming toolbar in maps.
|
|
1104
|
-
*
|
|
1105
|
-
* @default null
|
|
1106
|
-
|
|
1107
|
-
*/
|
|
1108
|
-
selectionColor: string;
|
|
1109
|
-
/**
|
|
1110
|
-
* Gets or sets the position type of toolbar when it is placed horizontally.
|
|
1111
|
-
*
|
|
1112
|
-
* @default Far
|
|
1113
|
-
|
|
1114
|
-
*/
|
|
1115
|
-
horizontalAlignment: Alignment;
|
|
1116
|
-
/**
|
|
1117
|
-
* Gets or sets the position type of toolbar when it is placed vertically.
|
|
1118
|
-
*
|
|
1119
|
-
* @default Near
|
|
1120
|
-
|
|
1121
|
-
*/
|
|
1122
|
-
verticalAlignment: Alignment;
|
|
1123
|
-
/**
|
|
1124
|
-
* Gets or sets the items that are to be shown in the zooming toolbar of the maps. Zoom-in, zoom-out and reset buttons are displayed by default.
|
|
1125
|
-
*
|
|
1126
|
-
|
|
1127
|
-
*/
|
|
1128
|
-
toolbars: string[];
|
|
1129
1081
|
/**
|
|
1130
1082
|
* Enables or disables the mouse wheel zooming in maps.
|
|
1131
1083
|
*
|
|
@@ -1737,36 +1689,6 @@ export declare class LayerSettings extends ChildProperty<LayerSettings> {
|
|
|
1737
1689
|
* @default Geographic
|
|
1738
1690
|
*/
|
|
1739
1691
|
geometryType: GeometryType;
|
|
1740
|
-
/**
|
|
1741
|
-
* Gets or sets the Bing map type for the layer. If you set GeoJSON data in the map and set the `BingMapType` value without setting the layer type as "Bing",
|
|
1742
|
-
* then the map will be rendered based on the provided shape data since the default layer type will be set as "Geometry".
|
|
1743
|
-
*
|
|
1744
|
-
|
|
1745
|
-
* @default Aerial
|
|
1746
|
-
*/
|
|
1747
|
-
bingMapType: BingMapType;
|
|
1748
|
-
/**
|
|
1749
|
-
* Gets or sets the type of the static maps.
|
|
1750
|
-
*
|
|
1751
|
-
|
|
1752
|
-
* @default RoadMap
|
|
1753
|
-
*/
|
|
1754
|
-
staticMapType: StaticMapType;
|
|
1755
|
-
/**
|
|
1756
|
-
* Gets or sets the key for the online map provider to render in the layer of the maps.
|
|
1757
|
-
*
|
|
1758
|
-
|
|
1759
|
-
* @default ''
|
|
1760
|
-
*/
|
|
1761
|
-
key: string;
|
|
1762
|
-
/**
|
|
1763
|
-
* Gets or sets the type of the layer in maps. If we use layer type with shape data property in layer of the maps
|
|
1764
|
-
* then map will render based on the provided layer type.
|
|
1765
|
-
*
|
|
1766
|
-
|
|
1767
|
-
* @default Geometry
|
|
1768
|
-
*/
|
|
1769
|
-
layerType: ShapeLayerType;
|
|
1770
1692
|
/**
|
|
1771
1693
|
* Gets or sets the URL of the online map providers.
|
|
1772
1694
|
* The online map providers will be rendered only when the shape data is not set and layer type is set with default value.
|
package/src/maps/model/base.js
CHANGED
|
@@ -88,7 +88,7 @@ var Font = /** @class */ (function (_super) {
|
|
|
88
88
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
89
89
|
}
|
|
90
90
|
__decorate([
|
|
91
|
-
Property(
|
|
91
|
+
Property(null)
|
|
92
92
|
], Font.prototype, "size", void 0);
|
|
93
93
|
__decorate([
|
|
94
94
|
Property(null)
|
|
@@ -132,7 +132,7 @@ var ZoomToolbarButtonSettings = /** @class */ (function (_super) {
|
|
|
132
132
|
Property(null)
|
|
133
133
|
], ZoomToolbarButtonSettings.prototype, "borderColor", void 0);
|
|
134
134
|
__decorate([
|
|
135
|
-
Property(
|
|
135
|
+
Property(null)
|
|
136
136
|
], ZoomToolbarButtonSettings.prototype, "radius", void 0);
|
|
137
137
|
__decorate([
|
|
138
138
|
Property(null)
|
|
@@ -289,7 +289,7 @@ var TooltipSettings = /** @class */ (function (_super) {
|
|
|
289
289
|
Property('')
|
|
290
290
|
], TooltipSettings.prototype, "fill", void 0);
|
|
291
291
|
__decorate([
|
|
292
|
-
Complex({ color:
|
|
292
|
+
Complex({ color: null, width: 1 }, Border)
|
|
293
293
|
], TooltipSettings.prototype, "border", void 0);
|
|
294
294
|
__decorate([
|
|
295
295
|
Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
|
|
@@ -321,7 +321,7 @@ var PolygonTooltipSettings = /** @class */ (function (_super) {
|
|
|
321
321
|
Property('')
|
|
322
322
|
], PolygonTooltipSettings.prototype, "fill", void 0);
|
|
323
323
|
__decorate([
|
|
324
|
-
Complex({ color:
|
|
324
|
+
Complex({ color: null, width: 1 }, Border)
|
|
325
325
|
], PolygonTooltipSettings.prototype, "border", void 0);
|
|
326
326
|
__decorate([
|
|
327
327
|
Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
|
|
@@ -792,27 +792,6 @@ var ZoomSettings = /** @class */ (function (_super) {
|
|
|
792
792
|
__decorate([
|
|
793
793
|
Property(true)
|
|
794
794
|
], ZoomSettings.prototype, "enableSelectionZooming", void 0);
|
|
795
|
-
__decorate([
|
|
796
|
-
Property('Horizontal')
|
|
797
|
-
], ZoomSettings.prototype, "toolBarOrientation", void 0);
|
|
798
|
-
__decorate([
|
|
799
|
-
Property(null)
|
|
800
|
-
], ZoomSettings.prototype, "color", void 0);
|
|
801
|
-
__decorate([
|
|
802
|
-
Property(null)
|
|
803
|
-
], ZoomSettings.prototype, "highlightColor", void 0);
|
|
804
|
-
__decorate([
|
|
805
|
-
Property(null)
|
|
806
|
-
], ZoomSettings.prototype, "selectionColor", void 0);
|
|
807
|
-
__decorate([
|
|
808
|
-
Property('Far')
|
|
809
|
-
], ZoomSettings.prototype, "horizontalAlignment", void 0);
|
|
810
|
-
__decorate([
|
|
811
|
-
Property('Near')
|
|
812
|
-
], ZoomSettings.prototype, "verticalAlignment", void 0);
|
|
813
|
-
__decorate([
|
|
814
|
-
Property(['ZoomIn', 'ZoomOut', 'Reset'])
|
|
815
|
-
], ZoomSettings.prototype, "toolbars", void 0);
|
|
816
795
|
__decorate([
|
|
817
796
|
Property(true)
|
|
818
797
|
], ZoomSettings.prototype, "mouseWheelZoom", void 0);
|
|
@@ -926,7 +905,7 @@ var LegendSettings = /** @class */ (function (_super) {
|
|
|
926
905
|
Property(10)
|
|
927
906
|
], LegendSettings.prototype, "shapePadding", void 0);
|
|
928
907
|
__decorate([
|
|
929
|
-
Complex({ color:
|
|
908
|
+
Complex({ color: null, width: 0 }, Border)
|
|
930
909
|
], LegendSettings.prototype, "border", void 0);
|
|
931
910
|
__decorate([
|
|
932
911
|
Complex({ color: '#000000', width: 0 }, Border)
|
|
@@ -1038,7 +1017,7 @@ var ShapeSettings = /** @class */ (function (_super) {
|
|
|
1038
1017
|
Property(5)
|
|
1039
1018
|
], ShapeSettings.prototype, "circleRadius", void 0);
|
|
1040
1019
|
__decorate([
|
|
1041
|
-
Complex({ width: null, color:
|
|
1020
|
+
Complex({ width: null, color: null }, Border)
|
|
1042
1021
|
], ShapeSettings.prototype, "border", void 0);
|
|
1043
1022
|
__decorate([
|
|
1044
1023
|
Property('')
|
|
@@ -1199,18 +1178,6 @@ var LayerSettings = /** @class */ (function (_super) {
|
|
|
1199
1178
|
__decorate([
|
|
1200
1179
|
Property('Geographic')
|
|
1201
1180
|
], LayerSettings.prototype, "geometryType", void 0);
|
|
1202
|
-
__decorate([
|
|
1203
|
-
Property('Aerial')
|
|
1204
|
-
], LayerSettings.prototype, "bingMapType", void 0);
|
|
1205
|
-
__decorate([
|
|
1206
|
-
Property('RoadMap')
|
|
1207
|
-
], LayerSettings.prototype, "staticMapType", void 0);
|
|
1208
|
-
__decorate([
|
|
1209
|
-
Property('')
|
|
1210
|
-
], LayerSettings.prototype, "key", void 0);
|
|
1211
|
-
__decorate([
|
|
1212
|
-
Property('Geometry')
|
|
1213
|
-
], LayerSettings.prototype, "layerType", void 0);
|
|
1214
1181
|
__decorate([
|
|
1215
1182
|
Property('')
|
|
1216
1183
|
], LayerSettings.prototype, "urlTemplate", void 0);
|
|
@@ -41,10 +41,13 @@ var ImageExport = /** @class */ (function () {
|
|
|
41
41
|
var svgObject = getElementByID(maps.element.id + '_svg').cloneNode(true);
|
|
42
42
|
var backgroundElement = svgObject.childNodes[0];
|
|
43
43
|
var backgroundColor = backgroundElement.getAttribute('fill');
|
|
44
|
-
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3'
|
|
44
|
+
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
|
|
45
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
45
46
|
svgObject.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
46
47
|
}
|
|
47
|
-
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark'
|
|
48
|
+
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
|
|
49
|
+
maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
|
|
50
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
48
51
|
svgObject.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
49
52
|
}
|
|
50
53
|
if (!maps.isTileMap) {
|
|
@@ -43,10 +43,13 @@ var PdfExport = /** @class */ (function () {
|
|
|
43
43
|
var exportElement = maps.svgObject.cloneNode(true);
|
|
44
44
|
var backgroundElement = exportElement.childNodes[0];
|
|
45
45
|
var backgroundColor = backgroundElement.getAttribute('fill');
|
|
46
|
-
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3'
|
|
46
|
+
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
|
|
47
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
47
48
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
48
49
|
}
|
|
49
|
-
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark'
|
|
50
|
+
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
|
|
51
|
+
maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
|
|
52
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
50
53
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
51
54
|
}
|
|
52
55
|
var url = window.URL.createObjectURL(new Blob(type === 'SVG' ? [svgData] :
|
|
@@ -835,12 +835,24 @@ export interface IThemeStyle {
|
|
|
835
835
|
zoomSelectionColor?: string;
|
|
836
836
|
/** Specifies the color for the shapes in the maps. */
|
|
837
837
|
shapeFill?: string;
|
|
838
|
+
/** Specifies the color of the border of the shapes in the maps. */
|
|
839
|
+
shapeBorderColor?: string;
|
|
838
840
|
/** Specifies the color by using rectangle zoom fill color in maps. */
|
|
839
841
|
rectangleZoomFillColor?: string;
|
|
840
842
|
/** Specifies the color by using rectangle zoom fill color in maps. */
|
|
841
843
|
rectangleZoomFillOpacity?: number;
|
|
842
844
|
/** Specifies the color by using rectangle zoom fill color in maps. */
|
|
843
845
|
rectangleZoomBorderColor?: string;
|
|
846
|
+
/** Specifies the color of the legend border in maps. */
|
|
847
|
+
legendBorderColor?: string;
|
|
848
|
+
/** Specifies the width of the legend border in maps. */
|
|
849
|
+
legendBorderWidth?: number;
|
|
850
|
+
/** Specifies the border color of the zoom toolbar buttons in maps. */
|
|
851
|
+
zoomBorderColor?: string;
|
|
852
|
+
/** Specifies the border color of the tooltip in maps. */
|
|
853
|
+
tooltipBorderColor?: string;
|
|
854
|
+
/** Specifies the radius of the zoom buttons in maps. */
|
|
855
|
+
zoomButtonRadius: number;
|
|
844
856
|
}
|
|
845
857
|
/**
|
|
846
858
|
* Defines the template for the marker.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/src/maps/model/print.js
CHANGED
|
@@ -54,10 +54,13 @@ var Print = /** @class */ (function () {
|
|
|
54
54
|
backgroundElement = backgroundElement.childNodes[0];
|
|
55
55
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
56
56
|
var backgroundColor = backgroundElement.getAttribute('fill');
|
|
57
|
-
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3'
|
|
57
|
+
if ((maps.theme === 'Tailwind' || maps.theme === 'Bootstrap5' || maps.theme === 'Fluent' || maps.theme === 'Material3' || maps.theme === 'Fluent2')
|
|
58
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
58
59
|
backgroundElement.setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
59
60
|
}
|
|
60
|
-
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark'
|
|
61
|
+
else if ((maps.theme === 'TailwindDark' || maps.theme === 'Bootstrap5Dark' || maps.theme === 'FluentDark' || maps.theme === 'Material3Dark' ||
|
|
62
|
+
maps.theme === 'Fluent2Dark' || maps.theme === 'Fluent2HighContrast')
|
|
63
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
61
64
|
backgroundElement.setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
62
65
|
}
|
|
63
66
|
}
|