@syncfusion/ej2-maps 25.2.4 → 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 +1328 -1138
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +1375 -1180
- 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/bubble.d.ts +3 -4
- package/src/maps/layers/bubble.js +3 -4
- package/src/maps/layers/color-mapping.d.ts +2 -2
- package/src/maps/layers/color-mapping.js +2 -2
- package/src/maps/layers/data-label.d.ts +1 -1
- package/src/maps/layers/data-label.js +6 -6
- package/src/maps/layers/layer-panel.d.ts +7 -7
- package/src/maps/layers/layer-panel.js +129 -193
- package/src/maps/layers/legend.d.ts +9 -0
- package/src/maps/layers/legend.js +147 -55
- package/src/maps/layers/marker.d.ts +8 -8
- package/src/maps/layers/marker.js +109 -105
- package/src/maps/layers/navigation-selected-line.d.ts +1 -1
- package/src/maps/layers/navigation-selected-line.js +2 -2
- package/src/maps/layers/polygon.d.ts +1 -1
- package/src/maps/layers/polygon.js +10 -7
- package/src/maps/maps.d.ts +24 -26
- package/src/maps/maps.js +39 -46
- package/src/maps/model/base-model.d.ts +20 -93
- package/src/maps/model/base.d.ts +19 -83
- package/src/maps/model/base.js +13 -40
- package/src/maps/model/constants.d.ts +0 -4
- package/src/maps/model/constants.js +0 -4
- 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 +14 -1
- package/src/maps/model/interface.js +0 -1
- package/src/maps/model/print.d.ts +3 -3
- package/src/maps/model/print.js +8 -5
- package/src/maps/model/theme.d.ts +1 -1
- package/src/maps/model/theme.js +190 -15
- package/src/maps/user-interaction/annotation.d.ts +1 -2
- package/src/maps/user-interaction/annotation.js +1 -2
- package/src/maps/user-interaction/highlight.d.ts +4 -4
- package/src/maps/user-interaction/highlight.js +4 -4
- package/src/maps/user-interaction/selection.d.ts +5 -5
- package/src/maps/user-interaction/selection.js +5 -5
- package/src/maps/user-interaction/tooltip.d.ts +6 -6
- package/src/maps/user-interaction/tooltip.js +30 -13
- package/src/maps/user-interaction/zoom.d.ts +6 -4
- package/src/maps/user-interaction/zoom.js +50 -50
- package/src/maps/utils/enum.d.ts +7 -53
- package/src/maps/utils/helper.d.ts +87 -72
- package/src/maps/utils/helper.js +130 -102
- package/CHANGELOG.md +0 -632
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 26.1.35
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-maps@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-maps@
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@16.42.7",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-Myn9Jq0qlj9LhFEWF5E3ZlJf2aC/YeI/UDw0MkeFzjQ20+7j/h3Nse+kKPN6FszbnHaoT6WxPqfv2s7FJssQSQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-maps",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-maps",
|
|
24
24
|
"/@syncfusion/ej2-vue-maps"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-maps/-/ej2-maps-16.42.7.tgz",
|
|
27
|
+
"_shasum": "e3ef11dcc7cc21756247b863a09e785965d7bc80",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
|
-
"_where": "/jenkins/workspace/elease-
|
|
29
|
+
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
31
31
|
"name": "Syncfusion Inc."
|
|
32
32
|
},
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~
|
|
39
|
-
"@syncfusion/ej2-buttons": "~
|
|
40
|
-
"@syncfusion/ej2-compression": "~
|
|
41
|
-
"@syncfusion/ej2-data": "~
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~
|
|
38
|
+
"@syncfusion/ej2-base": "~26.1.35",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~26.1.35",
|
|
40
|
+
"@syncfusion/ej2-compression": "~26.1.35",
|
|
41
|
+
"@syncfusion/ej2-data": "~26.1.35",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~26.1.35",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~26.1.35",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~26.1.35"
|
|
45
45
|
},
|
|
46
46
|
"deprecated": false,
|
|
47
47
|
"description": "The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options",
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
94
94
|
},
|
|
95
95
|
"typings": "index.d.ts",
|
|
96
|
-
"version": "
|
|
96
|
+
"version": "26.1.35",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Maps } from '../maps';
|
|
2
|
-
import { Tile
|
|
2
|
+
import { Tile } from '../index';
|
|
3
3
|
/**
|
|
4
4
|
* Bing map src doc
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ export declare class BingMap {
|
|
|
12
12
|
imageUrl: string;
|
|
13
13
|
maxZoom: string;
|
|
14
14
|
constructor(maps: Maps);
|
|
15
|
-
getBingMap(tile: Tile, key: string, type:
|
|
15
|
+
getBingMap(tile: Tile, key: string, type: string, language: string, imageUrl: string, subDomains: string[]): string;
|
|
16
16
|
/**
|
|
17
17
|
* @returns {void}
|
|
18
18
|
* @private
|
|
@@ -31,7 +31,6 @@ export declare class Bubble {
|
|
|
31
31
|
* @param {Element} group - Specifies the element group
|
|
32
32
|
* @param {string} bubbleID - Specifies the ID of the bubble
|
|
33
33
|
* @returns {void}
|
|
34
|
-
*
|
|
35
34
|
* @private
|
|
36
35
|
*/
|
|
37
36
|
renderBubble(bubbleSettings: BubbleSettingsModel, shapeData: object, color: string, range: {
|
|
@@ -40,7 +39,7 @@ export declare class Bubble {
|
|
|
40
39
|
}, bubbleIndex: number, dataIndex: number, layerIndex: number, layer: LayerSettings, group: Element, bubbleID?: string): void;
|
|
41
40
|
private getPoints;
|
|
42
41
|
/**
|
|
43
|
-
* To check and trigger bubble click event
|
|
42
|
+
* To check and trigger bubble click event.
|
|
44
43
|
*
|
|
45
44
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
46
45
|
* @returns {void}
|
|
@@ -48,14 +47,14 @@ export declare class Bubble {
|
|
|
48
47
|
*/
|
|
49
48
|
bubbleClick(e: PointerEvent): void;
|
|
50
49
|
/**
|
|
51
|
-
* To get bubble from target id
|
|
50
|
+
* To get bubble from target id.
|
|
52
51
|
*
|
|
53
52
|
* @param {string} target - Specifies the target
|
|
54
53
|
* @returns {object} - Returns the object
|
|
55
54
|
*/
|
|
56
55
|
private getbubble;
|
|
57
56
|
/**
|
|
58
|
-
* To check and trigger bubble move event
|
|
57
|
+
* To check and trigger bubble move event.
|
|
59
58
|
*
|
|
60
59
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
61
60
|
* @retruns {void}
|
|
@@ -33,7 +33,6 @@ var Bubble = /** @class */ (function () {
|
|
|
33
33
|
* @param {Element} group - Specifies the element group
|
|
34
34
|
* @param {string} bubbleID - Specifies the ID of the bubble
|
|
35
35
|
* @returns {void}
|
|
36
|
-
*
|
|
37
36
|
* @private
|
|
38
37
|
*/
|
|
39
38
|
Bubble.prototype.renderBubble = function (bubbleSettings, shapeData, color, range, bubbleIndex, dataIndex, layerIndex, layer, group, bubbleID) {
|
|
@@ -207,7 +206,7 @@ var Bubble = /** @class */ (function () {
|
|
|
207
206
|
return points;
|
|
208
207
|
};
|
|
209
208
|
/**
|
|
210
|
-
* To check and trigger bubble click event
|
|
209
|
+
* To check and trigger bubble click event.
|
|
211
210
|
*
|
|
212
211
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
213
212
|
* @returns {void}
|
|
@@ -230,7 +229,7 @@ var Bubble = /** @class */ (function () {
|
|
|
230
229
|
this.maps.trigger(bubbleClick, eventArgs);
|
|
231
230
|
};
|
|
232
231
|
/**
|
|
233
|
-
* To get bubble from target id
|
|
232
|
+
* To get bubble from target id.
|
|
234
233
|
*
|
|
235
234
|
* @param {string} target - Specifies the target
|
|
236
235
|
* @returns {object} - Returns the object
|
|
@@ -254,7 +253,7 @@ var Bubble = /** @class */ (function () {
|
|
|
254
253
|
};
|
|
255
254
|
// eslint-disable-next-line valid-jsdoc
|
|
256
255
|
/**
|
|
257
|
-
* To check and trigger bubble move event
|
|
256
|
+
* To check and trigger bubble move event.
|
|
258
257
|
*
|
|
259
258
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
260
259
|
* @retruns {void}
|
|
@@ -11,12 +11,12 @@ export declare class ColorMapping {
|
|
|
11
11
|
* @param { ShapeSettingsModel } shapeSettings - Specifies the shape settings.
|
|
12
12
|
* @param { object } layerData - Specifies the layer data.
|
|
13
13
|
* @param { string } color - Specifies the color.
|
|
14
|
-
* @returns {
|
|
14
|
+
* @returns {object} - Returns the object.
|
|
15
15
|
* @private
|
|
16
16
|
*/
|
|
17
17
|
getShapeColorMapping(shapeSettings: ShapeSettingsModel, layerData: object, color: string): any;
|
|
18
18
|
/**
|
|
19
|
-
* To color by value and color mapping
|
|
19
|
+
* To color by value and color mapping.
|
|
20
20
|
*
|
|
21
21
|
* @param {ColorMappingSettingsModel[]} colorMapping - Specifies the color mapping instance.
|
|
22
22
|
* @param {number} colorValue - Specifies the color value
|
|
@@ -17,7 +17,7 @@ var ColorMapping = /** @class */ (function () {
|
|
|
17
17
|
* @param { ShapeSettingsModel } shapeSettings - Specifies the shape settings.
|
|
18
18
|
* @param { object } layerData - Specifies the layer data.
|
|
19
19
|
* @param { string } color - Specifies the color.
|
|
20
|
-
* @returns {
|
|
20
|
+
* @returns {object} - Returns the object.
|
|
21
21
|
* @private
|
|
22
22
|
*/
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -31,7 +31,7 @@ var ColorMapping = /** @class */ (function () {
|
|
|
31
31
|
return !isNullOrUndefined(shapeColor) ? shapeColor : color;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* To color by value and color mapping
|
|
34
|
+
* To color by value and color mapping.
|
|
35
35
|
*
|
|
36
36
|
* @param {ColorMappingSettingsModel[]} colorMapping - Specifies the color mapping instance.
|
|
37
37
|
* @param {number} colorValue - Specifies the color value
|
|
@@ -15,7 +15,7 @@ export declare class DataLabel {
|
|
|
15
15
|
constructor(maps: Maps);
|
|
16
16
|
private getDataLabel;
|
|
17
17
|
/**
|
|
18
|
-
* To render label for maps
|
|
18
|
+
* To render label for maps.
|
|
19
19
|
*
|
|
20
20
|
* @param {LayerSettings} layer - Specifies the layer settings
|
|
21
21
|
* @param {number} layerIndex - Specifies the layer index.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { findMidPointOfPolygon, Rect, filter, getTemplateFunction, getZoomTranslate, getTranslate, RectOption, convertElementFromLabel, Point, TextOption, renderTextElement, textTrim, Internalize, measureTextElement } from '../utils/helper';
|
|
2
2
|
import { isNullOrUndefined, Animation, animationMode } from '@syncfusion/ej2-base';
|
|
3
3
|
import { dataLabelRendering } from '../model/constants';
|
|
4
|
-
import { Theme } from '../model/theme';
|
|
5
4
|
/**
|
|
6
5
|
* DataLabel Module used to render the maps datalabel
|
|
7
6
|
*/
|
|
@@ -17,7 +16,7 @@ var DataLabel = /** @class */ (function () {
|
|
|
17
16
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
17
|
var text;
|
|
19
18
|
var shapeNameValue;
|
|
20
|
-
for (var i = 0; i < dataSource.length; i++) {
|
|
19
|
+
for (var i = 0; i < (isNullOrUndefined(dataSource) ? 0 : dataSource.length); i++) {
|
|
21
20
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
21
|
var data = dataSource[i];
|
|
23
22
|
var dataShapePathValue = !isNullOrUndefined(data[shapeDataPath]) && isNaN(data[shapeDataPath]) &&
|
|
@@ -32,7 +31,7 @@ var DataLabel = /** @class */ (function () {
|
|
|
32
31
|
return text;
|
|
33
32
|
};
|
|
34
33
|
/**
|
|
35
|
-
* To render label for maps
|
|
34
|
+
* To render label for maps.
|
|
36
35
|
*
|
|
37
36
|
* @param {LayerSettings} layer - Specifies the layer settings
|
|
38
37
|
* @param {number} layerIndex - Specifies the layer index.
|
|
@@ -80,7 +79,8 @@ var DataLabel = /** @class */ (function () {
|
|
|
80
79
|
var locationX;
|
|
81
80
|
var locationY;
|
|
82
81
|
style.fontFamily = this.maps.theme.toLowerCase() !== 'material' ? this.maps.themeStyle.labelFontFamily : style.fontFamily;
|
|
83
|
-
style.fontWeight = style.fontWeight || this.maps.themeStyle.fontWeight
|
|
82
|
+
style.fontWeight = style.fontWeight || this.maps.themeStyle.fontWeight;
|
|
83
|
+
style.size = style.size || this.maps.themeStyle.fontSize;
|
|
84
84
|
shape = !isNullOrUndefined(shapes) ? shapes['property'] : null;
|
|
85
85
|
var properties = (Object.prototype.toString.call(layer.shapePropertyPath) === '[object Array]' ?
|
|
86
86
|
layer.shapePropertyPath : [layer.shapePropertyPath]);
|
|
@@ -141,7 +141,7 @@ var DataLabel = /** @class */ (function () {
|
|
|
141
141
|
text = (!isNullOrUndefined(datasrcObj)) ? !isNullOrUndefined(datasrcObj[labelpath]) ?
|
|
142
142
|
datasrcObj[labelpath].toString() : datasrcObj[layer.shapeDataPath] : shapeData['properties'][labelpath];
|
|
143
143
|
if ((Object.prototype.toString.call(layer.shapePropertyPath) === '[object Array]') &&
|
|
144
|
-
(isNullOrUndefined(text) && layer.dataSource['length'] === 0)) {
|
|
144
|
+
(isNullOrUndefined(text) && (!isNullOrUndefined(layer.dataSource) && layer.dataSource['length'] === 0))) {
|
|
145
145
|
for (var l = 0; l < layer.shapePropertyPath.length; l++) {
|
|
146
146
|
if (shapeData['properties'][layer.shapePropertyPath[l]]) {
|
|
147
147
|
text = shapeData['properties'][layer.shapePropertyPath[l]];
|
|
@@ -152,7 +152,7 @@ var DataLabel = /** @class */ (function () {
|
|
|
152
152
|
if (isNullOrUndefined(text) && (layer.dataLabelSettings.template !== '' && layer.dataSource['length'] === 0)) {
|
|
153
153
|
text = shapeData['properties'][layer.shapePropertyPath];
|
|
154
154
|
}
|
|
155
|
-
if (isNullOrUndefined(text) && layer.dataSource['length'] > 0) {
|
|
155
|
+
if (isNullOrUndefined(text) && (!isNullOrUndefined(layer.dataSource) && layer.dataSource['length'] > 0)) {
|
|
156
156
|
text = '';
|
|
157
157
|
}
|
|
158
158
|
var dataLabelText = text;
|
|
@@ -63,7 +63,7 @@ export declare class LayerPanel {
|
|
|
63
63
|
*/
|
|
64
64
|
private layerFeatures;
|
|
65
65
|
/**
|
|
66
|
-
* render datalabel
|
|
66
|
+
* render datalabel.
|
|
67
67
|
*
|
|
68
68
|
* @param {LayerSettings} layer - Specifies the layer
|
|
69
69
|
* @param {number} layerIndex - Specifies the layer index
|
|
@@ -76,14 +76,14 @@ export declare class LayerPanel {
|
|
|
76
76
|
*/
|
|
77
77
|
private renderLabel;
|
|
78
78
|
/**
|
|
79
|
-
* To render path for multipolygon
|
|
79
|
+
* To render path for multipolygon.
|
|
80
80
|
*
|
|
81
81
|
* @param {any[]} currentShapeData Specifies the current shape data
|
|
82
82
|
* @returns {string} Returns the path
|
|
83
83
|
*/
|
|
84
84
|
private generateMultiPolygonPath;
|
|
85
85
|
/**
|
|
86
|
-
* To render bubble
|
|
86
|
+
* To render bubble.
|
|
87
87
|
*
|
|
88
88
|
* @param {LayerSettings} layer - Specifies the layer
|
|
89
89
|
* @param {object} bubbleData - Specifies the bubble data
|
|
@@ -100,7 +100,7 @@ export declare class LayerPanel {
|
|
|
100
100
|
*/
|
|
101
101
|
private renderBubble;
|
|
102
102
|
/**
|
|
103
|
-
* To get the shape color from color mapping module
|
|
103
|
+
* To get the shape color from color mapping module.
|
|
104
104
|
*
|
|
105
105
|
* @param {LayerSettingsModel} layer - Specifies the layer
|
|
106
106
|
* @param {any} shape - Specifies the shape
|
|
@@ -118,7 +118,7 @@ export declare class LayerPanel {
|
|
|
118
118
|
generateTiles(zoomLevel: number, tileTranslatePoint: Point, zoomType?: string, bing?: BingMap, position?: Point): void;
|
|
119
119
|
arrangeTiles(type: string, x: number, y: number): void;
|
|
120
120
|
/**
|
|
121
|
-
* Animation for tile layers and hide the group element until the tile layer rendering
|
|
121
|
+
* Animation for tile layers and hide the group element until the tile layer rendering.
|
|
122
122
|
*
|
|
123
123
|
* @param {string} zoomType - Specifies the zoom type
|
|
124
124
|
* @param {number} translateX - Specifies the x translate point
|
|
@@ -127,7 +127,7 @@ export declare class LayerPanel {
|
|
|
127
127
|
*/
|
|
128
128
|
private tileAnimation;
|
|
129
129
|
/**
|
|
130
|
-
* Static map rendering
|
|
130
|
+
* Static map rendering.
|
|
131
131
|
*
|
|
132
132
|
* @param {string} apikey - Specifies the api key
|
|
133
133
|
* @param {number} zoom - Specifies the zoom value
|
|
@@ -136,7 +136,7 @@ export declare class LayerPanel {
|
|
|
136
136
|
*/
|
|
137
137
|
renderGoogleMap(apikey: string, zoom: number): void;
|
|
138
138
|
/**
|
|
139
|
-
* To find the tile translate point
|
|
139
|
+
* To find the tile translate point.
|
|
140
140
|
*
|
|
141
141
|
* @param {number} factorX - Specifies the x factor
|
|
142
142
|
* @param {number} factorY - Specifies the x factor
|