@syncfusion/ej2-maps 31.2.2 → 32.1.19
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/.gitleaksignore +8 -8
- package/README.md +11 -2
- package/aceconfig.js +17 -0
- package/dist/ej2-maps.min.js +1 -10
- package/dist/ej2-maps.umd.min.js +1 -10
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +87 -50
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +90 -53
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +1 -10
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +18 -53
- package/src/maps/layers/layer-panel.js +89 -52
- package/dist/ts/index.d.ts +0 -4
- package/dist/ts/index.ts +0 -4
- package/dist/ts/maps/index.d.ts +0 -28
- package/dist/ts/maps/index.ts +0 -28
- package/dist/ts/maps/layers/bing-map.d.ts +0 -21
- package/dist/ts/maps/layers/bing-map.ts +0 -51
- package/dist/ts/maps/layers/bubble.d.ts +0 -77
- package/dist/ts/maps/layers/bubble.ts +0 -304
- package/dist/ts/maps/layers/color-mapping.d.ts +0 -36
- package/dist/ts/maps/layers/color-mapping.ts +0 -230
- package/dist/ts/maps/layers/data-label.d.ts +0 -45
- package/dist/ts/maps/layers/data-label.ts +0 -457
- package/dist/ts/maps/layers/layer-panel.d.ts +0 -144
- package/dist/ts/maps/layers/layer-panel.ts +0 -1455
- package/dist/ts/maps/layers/legend.d.ts +0 -173
- package/dist/ts/maps/layers/legend.ts +0 -2465
- package/dist/ts/maps/layers/marker.d.ts +0 -105
- package/dist/ts/maps/layers/marker.ts +0 -632
- package/dist/ts/maps/layers/navigation-selected-line.d.ts +0 -33
- package/dist/ts/maps/layers/navigation-selected-line.ts +0 -171
- package/dist/ts/maps/layers/polygon.d.ts +0 -30
- package/dist/ts/maps/layers/polygon.ts +0 -68
- package/dist/ts/maps/maps-model.d.ts +0 -409
- package/dist/ts/maps/maps.d.ts +0 -1247
- package/dist/ts/maps/maps.ts +0 -3416
- package/dist/ts/maps/model/base-model.d.ts +0 -2107
- package/dist/ts/maps/model/base.d.ts +0 -1840
- package/dist/ts/maps/model/base.ts +0 -2257
- package/dist/ts/maps/model/constants.d.ts +0 -225
- package/dist/ts/maps/model/constants.ts +0 -226
- package/dist/ts/maps/model/export-image.d.ts +0 -39
- package/dist/ts/maps/model/export-image.ts +0 -194
- package/dist/ts/maps/model/export-pdf.d.ts +0 -40
- package/dist/ts/maps/model/export-pdf.ts +0 -183
- package/dist/ts/maps/model/interface.d.ts +0 -892
- package/dist/ts/maps/model/interface.ts +0 -929
- package/dist/ts/maps/model/print.d.ts +0 -45
- package/dist/ts/maps/model/print.ts +0 -125
- package/dist/ts/maps/model/theme.d.ts +0 -98
- package/dist/ts/maps/model/theme.ts +0 -919
- package/dist/ts/maps/user-interaction/annotation.d.ts +0 -27
- package/dist/ts/maps/user-interaction/annotation.ts +0 -133
- package/dist/ts/maps/user-interaction/highlight.d.ts +0 -63
- package/dist/ts/maps/user-interaction/highlight.ts +0 -272
- package/dist/ts/maps/user-interaction/selection.d.ts +0 -85
- package/dist/ts/maps/user-interaction/selection.ts +0 -342
- package/dist/ts/maps/user-interaction/tooltip.d.ts +0 -78
- package/dist/ts/maps/user-interaction/tooltip.ts +0 -500
- package/dist/ts/maps/user-interaction/zoom.d.ts +0 -334
- package/dist/ts/maps/user-interaction/zoom.ts +0 -2523
- package/dist/ts/maps/utils/enum.d.ts +0 -328
- package/dist/ts/maps/utils/enum.ts +0 -343
- package/dist/ts/maps/utils/helper.d.ts +0 -1318
- package/dist/ts/maps/utils/helper.ts +0 -3811
package/dist/global/index.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: index.d.ts
|
|
3
|
-
* version : 31.2.2
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
1
|
import * as _maps from '@syncfusion/ej2-maps';
|
|
11
2
|
|
|
12
3
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,53 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"_phantomChildren": {},
|
|
8
|
-
"_requested": {
|
|
9
|
-
"type": "range",
|
|
10
|
-
"registry": true,
|
|
11
|
-
"raw": "@syncfusion/ej2-maps@*",
|
|
12
|
-
"name": "@syncfusion/ej2-maps",
|
|
13
|
-
"escapedName": "@syncfusion%2fej2-maps",
|
|
14
|
-
"scope": "@syncfusion",
|
|
15
|
-
"rawSpec": "*",
|
|
16
|
-
"saveSpec": null,
|
|
17
|
-
"fetchSpec": "*"
|
|
18
|
-
},
|
|
19
|
-
"_requiredBy": [
|
|
20
|
-
"/",
|
|
21
|
-
"/@syncfusion/ej2",
|
|
22
|
-
"/@syncfusion/ej2-angular-maps",
|
|
23
|
-
"/@syncfusion/ej2-react-maps",
|
|
24
|
-
"/@syncfusion/ej2-vue-maps"
|
|
25
|
-
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-maps/-/ej2-maps-31.1.1.tgz",
|
|
27
|
-
"_shasum": "bf377a92730246baeaee36e9df53f94856664dfc",
|
|
28
|
-
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
|
-
"_where": "D:\\SF3992\\WFH\\Nexus\\release",
|
|
30
|
-
"author": {
|
|
31
|
-
"name": "Syncfusion Inc."
|
|
32
|
-
},
|
|
33
|
-
"bugs": {
|
|
34
|
-
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
|
|
35
|
-
},
|
|
36
|
-
"bundleDependencies": false,
|
|
2
|
+
"name": "@syncfusion/ej2-maps",
|
|
3
|
+
"version": "32.1.19",
|
|
4
|
+
"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",
|
|
5
|
+
"author": "Syncfusion Inc.",
|
|
6
|
+
"license": "SEE LICENSE IN license",
|
|
37
7
|
"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": "~
|
|
8
|
+
"@syncfusion/ej2-base": "~32.1.19",
|
|
9
|
+
"@syncfusion/ej2-buttons": "~32.1.19",
|
|
10
|
+
"@syncfusion/ej2-compression": "~32.1.19",
|
|
11
|
+
"@syncfusion/ej2-data": "~32.1.19",
|
|
12
|
+
"@syncfusion/ej2-file-utils": "~32.1.19",
|
|
13
|
+
"@syncfusion/ej2-pdf-export": "~32.1.19",
|
|
14
|
+
"@syncfusion/ej2-svg-base": "~32.1.19"
|
|
45
15
|
},
|
|
46
|
-
"deprecated": false,
|
|
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",
|
|
48
16
|
"devDependencies": {},
|
|
49
|
-
"es2015": "./dist/es6/ej2-maps.es5.js",
|
|
50
|
-
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
|
|
51
17
|
"keywords": [
|
|
52
18
|
"ej2",
|
|
53
19
|
"syncfusion",
|
|
@@ -84,15 +50,14 @@
|
|
|
84
50
|
"geometry-collection",
|
|
85
51
|
"feature-collection"
|
|
86
52
|
],
|
|
87
|
-
"license": "SEE LICENSE IN license",
|
|
88
|
-
"main": "./dist/ej2-maps.umd.min.js",
|
|
89
|
-
"module": "./index.js",
|
|
90
|
-
"name": "@syncfusion/ej2-maps",
|
|
91
53
|
"repository": {
|
|
92
54
|
"type": "git",
|
|
93
|
-
"url": "
|
|
55
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
94
56
|
},
|
|
57
|
+
"main": "./dist/ej2-maps.umd.min.js",
|
|
58
|
+
"module": "./index.js",
|
|
59
|
+
"es2015": "./dist/es6/ej2-maps.es5.js",
|
|
95
60
|
"typings": "index.d.ts",
|
|
96
|
-
"
|
|
97
|
-
"
|
|
61
|
+
"sideEffects": false,
|
|
62
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
98
63
|
}
|
|
@@ -322,35 +322,40 @@ var LayerPanel = /** @class */ (function () {
|
|
|
322
322
|
}
|
|
323
323
|
this.rectBounds = null;
|
|
324
324
|
var shapeSettings = this.currentLayer.shapeSettings;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
for (var r = 0; r < renderData.length; r++) {
|
|
326
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
327
|
+
var geometryData = renderData[r];
|
|
328
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
329
|
+
var geom = geometryData['geometry'];
|
|
330
|
+
var hasGeom = !isNullOrUndefined(geom);
|
|
331
|
+
var hasCoords = !isNullOrUndefined(geometryData['coordinates']);
|
|
332
|
+
if (hasGeom || hasCoords) {
|
|
333
|
+
var type = hasGeom ? geom['type'] : geometryData['type'];
|
|
329
334
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
330
|
-
var coords =
|
|
331
|
-
geometryData['coordinates'];
|
|
335
|
+
var coords = hasGeom ? geom['coordinates'] : geometryData['coordinates'];
|
|
332
336
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
333
|
-
var data =
|
|
337
|
+
var data = geom;
|
|
334
338
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
335
339
|
var properties = geometryData['properties'];
|
|
336
|
-
|
|
340
|
+
this.generatePoints(type, coords, data, properties);
|
|
337
341
|
}
|
|
338
|
-
}
|
|
342
|
+
}
|
|
339
343
|
this.currentLayer.rectBounds = this.rectBounds;
|
|
340
344
|
if (isNullOrUndefined(this.mapObject.baseMapRectBounds) && this.currentLayer.isBaseLayer) {
|
|
341
345
|
this.mapObject.baseMapRectBounds = this.rectBounds;
|
|
342
346
|
}
|
|
343
347
|
var colors = (!isNullOrUndefined(shapeSettings.palette) && shapeSettings.palette.length > 1) ?
|
|
344
348
|
shapeSettings.palette : getShapeColor(this.mapObject.theme);
|
|
349
|
+
var areaRect = this.mapObject.mapAreaRect;
|
|
345
350
|
var labelTemplateEle = createElement('div', {
|
|
346
351
|
id: this.mapObject.element.id + '_LayerIndex_' + layerIndex + '_Label_Template_Group',
|
|
347
352
|
className: this.mapObject.element.id + '_template'
|
|
348
353
|
});
|
|
349
354
|
labelTemplateEle.style.cssText = 'pointer-events: none; overflow: hidden; position: absolute;' +
|
|
350
|
-
'top:' +
|
|
351
|
-
'left:' +
|
|
352
|
-
'height:' +
|
|
353
|
-
'width:' +
|
|
355
|
+
'top:' + areaRect.y + 'px;' +
|
|
356
|
+
'left:' + areaRect.x + 'px;' +
|
|
357
|
+
'height:' + areaRect.height + 'px;' +
|
|
358
|
+
'width:' + areaRect.width + 'px;';
|
|
354
359
|
if (this.currentLayer.layerData.length !== 0) {
|
|
355
360
|
var _loop_1 = function (i) {
|
|
356
361
|
var k = void 0;
|
|
@@ -395,11 +400,13 @@ var LayerPanel = /** @class */ (function () {
|
|
|
395
400
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
396
401
|
this_1.currentLayer.dataSource, currentShapeData['property'], this_1.currentLayer.shapeDataPath, this_1.currentLayer.shapePropertyPath, this_1.currentLayer);
|
|
397
402
|
if (k !== null) {
|
|
398
|
-
|
|
399
|
-
|
|
403
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
404
|
+
var currentDataSource = this_1.currentLayer.dataSource[k];
|
|
405
|
+
if (currentDataSource[shapeSettings.borderColorValuePath]) {
|
|
406
|
+
borderValue.color = currentDataSource[shapeSettings.borderColorValuePath];
|
|
400
407
|
}
|
|
401
|
-
if (
|
|
402
|
-
borderValue.width =
|
|
408
|
+
if (currentDataSource[shapeSettings.borderWidthValuePath]) {
|
|
409
|
+
borderValue.width = currentDataSource[shapeSettings.borderWidthValuePath];
|
|
403
410
|
}
|
|
404
411
|
}
|
|
405
412
|
}
|
|
@@ -462,17 +469,26 @@ var LayerPanel = /** @class */ (function () {
|
|
|
462
469
|
switch (drawingType) {
|
|
463
470
|
case 'Polygon':
|
|
464
471
|
if (!currentShapeData['_isMultiPolygon']) {
|
|
465
|
-
path += 'M' + (currentShapeData[0]['point']['x']) + ' ' + (currentShapeData[0]['point']['y']);
|
|
466
472
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
473
|
+
var shapeData = currentShapeData;
|
|
474
|
+
if (shapeData.length > 0) {
|
|
475
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
476
|
+
var firstPoint = shapeData[0]['point'];
|
|
477
|
+
var pathSegments = ['M', String(firstPoint['x']), String(firstPoint['y'])];
|
|
478
|
+
for (var index = 0; index < shapeData.length; index++) {
|
|
479
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
480
|
+
var point = shapeData[index]['point'];
|
|
481
|
+
pathSegments.push('L', String(point['x']), String(point['y']));
|
|
482
|
+
}
|
|
483
|
+
pathSegments.push('z');
|
|
484
|
+
path = pathSegments.join(' ');
|
|
485
|
+
}
|
|
470
486
|
}
|
|
471
487
|
else {
|
|
472
488
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
473
489
|
path = _this.generateMultiPolygonPath(currentShapeData);
|
|
490
|
+
path += ' z ';
|
|
474
491
|
}
|
|
475
|
-
path += ' z ';
|
|
476
492
|
if (path.length > 3) {
|
|
477
493
|
pathOptions = new PathOption(shapeID, eventArgs.fill, eventArgs.border.width, eventArgs.border.color, opacity, eventArgs.border.opacity, shapeSettings.dashArray, path);
|
|
478
494
|
pathEle = _this.mapObject.renderer.drawPath(pathOptions);
|
|
@@ -700,19 +716,22 @@ var LayerPanel = /** @class */ (function () {
|
|
|
700
716
|
*/
|
|
701
717
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
702
718
|
LayerPanel.prototype.generateMultiPolygonPath = function (currentShapeData) {
|
|
703
|
-
var
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
719
|
+
var parts = [];
|
|
720
|
+
for (var _i = 0, currentShapeData_1 = currentShapeData; _i < currentShapeData_1.length; _i++) {
|
|
721
|
+
var shape = currentShapeData_1[_i];
|
|
722
|
+
if (!shape || shape.length === 0) {
|
|
723
|
+
continue;
|
|
724
|
+
}
|
|
725
|
+
var startX = shape[0].point.x;
|
|
726
|
+
var startY = shape[0].point.y;
|
|
727
|
+
parts.push("M" + startX + " " + startY);
|
|
728
|
+
for (var i = 1; i < shape.length; i++) {
|
|
729
|
+
var x = shape[i].point.x;
|
|
730
|
+
var y = shape[i].point.y;
|
|
731
|
+
parts.push(" L " + x + " " + y);
|
|
732
|
+
}
|
|
714
733
|
}
|
|
715
|
-
return
|
|
734
|
+
return parts.join(' ');
|
|
716
735
|
};
|
|
717
736
|
/**
|
|
718
737
|
* To render bubble.
|
|
@@ -1038,33 +1057,51 @@ var LayerPanel = /** @class */ (function () {
|
|
|
1038
1057
|
};
|
|
1039
1058
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1040
1059
|
LayerPanel.prototype.calculatePolygonBox = function (coordinates) {
|
|
1041
|
-
|
|
1060
|
+
// Use a simple for-loop, cache frequent lookups, and update rectBounds once
|
|
1042
1061
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1043
1062
|
var newData = [];
|
|
1044
1063
|
var bounds = this.mapObject.baseMapBounds;
|
|
1045
|
-
|
|
1046
|
-
|
|
1064
|
+
var lonMin = bounds.longitude.min;
|
|
1065
|
+
var lonMax = bounds.longitude.max;
|
|
1066
|
+
var latMin = bounds.latitude.min;
|
|
1067
|
+
var latMax = bounds.latitude.max;
|
|
1068
|
+
var minX;
|
|
1069
|
+
var minY;
|
|
1070
|
+
var maxX;
|
|
1071
|
+
var maxY;
|
|
1072
|
+
for (var i = 0; i < coordinates.length; i++) {
|
|
1073
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1074
|
+
var currentPoint = coordinates[i];
|
|
1047
1075
|
var latitude = currentPoint[1];
|
|
1048
1076
|
var longitude = currentPoint[0];
|
|
1049
|
-
if (
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1077
|
+
if (longitude >= lonMin && longitude <= lonMax && latitude >= latMin && latitude <= latMax) {
|
|
1078
|
+
var point = convertGeoToPoint(latitude, longitude, this.currentFactor, this.currentLayer, this.mapObject);
|
|
1079
|
+
if (minX === undefined) {
|
|
1080
|
+
minX = maxX = point.x;
|
|
1081
|
+
minY = maxY = point.y;
|
|
1054
1082
|
}
|
|
1055
1083
|
else {
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1084
|
+
// Update local bounds only
|
|
1085
|
+
minX = Math.min(minX, point.x);
|
|
1086
|
+
minY = Math.min(minY, point.y);
|
|
1087
|
+
maxX = Math.max(maxX, point.x);
|
|
1088
|
+
maxY = Math.max(maxY, point.y);
|
|
1060
1089
|
}
|
|
1061
|
-
newData.push({
|
|
1062
|
-
point: point,
|
|
1063
|
-
lat: latitude,
|
|
1064
|
-
lng: longitude
|
|
1065
|
-
});
|
|
1090
|
+
newData.push({ point: point, lat: latitude, lng: longitude });
|
|
1066
1091
|
}
|
|
1067
|
-
}
|
|
1092
|
+
}
|
|
1093
|
+
// Apply the accumulated bounds once to reduce repeated property access
|
|
1094
|
+
if (newData.length) {
|
|
1095
|
+
if (isNullOrUndefined(this.rectBounds)) {
|
|
1096
|
+
this.rectBounds = { min: { x: minX, y: minY }, max: { x: maxX, y: maxY } };
|
|
1097
|
+
}
|
|
1098
|
+
else {
|
|
1099
|
+
this.rectBounds.min.x = Math.min(this.rectBounds.min.x, minX);
|
|
1100
|
+
this.rectBounds.min.y = Math.min(this.rectBounds.min.y, minY);
|
|
1101
|
+
this.rectBounds.max.x = Math.max(this.rectBounds.max.x, maxX);
|
|
1102
|
+
this.rectBounds.max.y = Math.max(this.rectBounds.max.y, maxY);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1068
1105
|
return newData;
|
|
1069
1106
|
};
|
|
1070
1107
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
package/dist/ts/index.d.ts
DELETED
package/dist/ts/index.ts
DELETED
package/dist/ts/maps/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* export all modules from maps component
|
|
3
|
-
*/
|
|
4
|
-
export * from './maps';
|
|
5
|
-
export * from './maps-model';
|
|
6
|
-
export * from './model/interface';
|
|
7
|
-
export * from './model/constants';
|
|
8
|
-
export * from './model/base';
|
|
9
|
-
export * from './model/base-model';
|
|
10
|
-
export * from './utils/enum';
|
|
11
|
-
export * from './utils/helper';
|
|
12
|
-
export * from './layers/layer-panel';
|
|
13
|
-
export * from './layers/bubble';
|
|
14
|
-
export * from './layers/bing-map';
|
|
15
|
-
export * from './layers/marker';
|
|
16
|
-
export * from './layers/polygon';
|
|
17
|
-
export * from './layers/color-mapping';
|
|
18
|
-
export * from './layers/data-label';
|
|
19
|
-
export * from './layers/navigation-selected-line';
|
|
20
|
-
export * from './layers/legend';
|
|
21
|
-
export * from './user-interaction/highlight';
|
|
22
|
-
export * from './user-interaction/selection';
|
|
23
|
-
export * from './user-interaction/tooltip';
|
|
24
|
-
export * from './user-interaction/zoom';
|
|
25
|
-
export * from './user-interaction/annotation';
|
|
26
|
-
export * from './model/print';
|
|
27
|
-
export * from './model/export-image';
|
|
28
|
-
export * from './model/export-pdf';
|
package/dist/ts/maps/index.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* export all modules from maps component
|
|
3
|
-
*/
|
|
4
|
-
export * from './maps';
|
|
5
|
-
export * from './maps-model';
|
|
6
|
-
export * from './model/interface';
|
|
7
|
-
export * from './model/constants';
|
|
8
|
-
export * from './model/base';
|
|
9
|
-
export * from './model/base-model';
|
|
10
|
-
export * from './utils/enum';
|
|
11
|
-
export * from './utils/helper';
|
|
12
|
-
export * from './layers/layer-panel';
|
|
13
|
-
export * from './layers/bubble';
|
|
14
|
-
export * from './layers/bing-map';
|
|
15
|
-
export * from './layers/marker';
|
|
16
|
-
export * from './layers/polygon';
|
|
17
|
-
export * from './layers/color-mapping';
|
|
18
|
-
export * from './layers/data-label';
|
|
19
|
-
export * from './layers/navigation-selected-line';
|
|
20
|
-
export * from './layers/legend';
|
|
21
|
-
export * from './user-interaction/highlight';
|
|
22
|
-
export * from './user-interaction/selection';
|
|
23
|
-
export * from './user-interaction/tooltip';
|
|
24
|
-
export * from './user-interaction/zoom';
|
|
25
|
-
export * from './user-interaction/annotation';
|
|
26
|
-
export * from './model/print';
|
|
27
|
-
export * from './model/export-image';
|
|
28
|
-
export * from './model/export-pdf';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Maps } from '../maps';
|
|
2
|
-
import { Tile } from '../index';
|
|
3
|
-
/**
|
|
4
|
-
* Bing map src doc
|
|
5
|
-
*/
|
|
6
|
-
export declare class BingMap {
|
|
7
|
-
/**
|
|
8
|
-
* map instance
|
|
9
|
-
*/
|
|
10
|
-
private maps;
|
|
11
|
-
subDomains: string[];
|
|
12
|
-
imageUrl: string;
|
|
13
|
-
maxZoom: string;
|
|
14
|
-
constructor(maps: Maps);
|
|
15
|
-
getBingMap(tile: Tile, key: string, type: string, language: string, imageUrl: string, subDomains: string[]): string;
|
|
16
|
-
/**
|
|
17
|
-
* @returns {void}
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
destroy(): void;
|
|
21
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Maps } from '../maps';
|
|
2
|
-
import { Tile } from '../index';
|
|
3
|
-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Bing map src doc
|
|
7
|
-
*/
|
|
8
|
-
export class BingMap {
|
|
9
|
-
/**
|
|
10
|
-
* map instance
|
|
11
|
-
*/
|
|
12
|
-
private maps: Maps;
|
|
13
|
-
public subDomains: string[];
|
|
14
|
-
public imageUrl: string;
|
|
15
|
-
public maxZoom: string;
|
|
16
|
-
constructor(maps: Maps) {
|
|
17
|
-
this.maps = maps;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
public getBingMap(tile: Tile, key: string, type: string, language: string, imageUrl: string, subDomains: string[]): string {
|
|
21
|
-
let quadKey: string = '';
|
|
22
|
-
const maxZoom: number = Math.min(this.maps.tileZoomLevel, parseInt(this.maxZoom, 10));
|
|
23
|
-
for (let i: number = maxZoom; i > 0; i--) {
|
|
24
|
-
let digit: number = 0;
|
|
25
|
-
const mask: number = 1 << (i - 1);
|
|
26
|
-
if ((tile.x & mask) !== 0) {
|
|
27
|
-
digit++;
|
|
28
|
-
}
|
|
29
|
-
if ((tile.y & mask) !== 0) {
|
|
30
|
-
digit += 2;
|
|
31
|
-
}
|
|
32
|
-
quadKey = quadKey + '' + digit;
|
|
33
|
-
}
|
|
34
|
-
if (!isNullOrUndefined(subDomains)) {
|
|
35
|
-
const subDomain: string = subDomains[Math.min(parseInt(quadKey.substr(quadKey.length - 1, 1), 10), subDomains.length)];
|
|
36
|
-
imageUrl = imageUrl.replace('{quadkey}', quadKey).replace('{subdomain}', subDomain);
|
|
37
|
-
return imageUrl += '&mkt=' + language + '&ur=IN&Key=' + key;
|
|
38
|
-
} else {
|
|
39
|
-
return '';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @returns {void}
|
|
45
|
-
* @private
|
|
46
|
-
*/
|
|
47
|
-
public destroy(): void {
|
|
48
|
-
this.maps = null;
|
|
49
|
-
this.subDomains = [];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { Maps } from '../../index';
|
|
2
|
-
import { BubbleSettingsModel } from '../index';
|
|
3
|
-
import { LayerSettings } from '../index';
|
|
4
|
-
/**
|
|
5
|
-
* Bubble module class
|
|
6
|
-
*/
|
|
7
|
-
export declare class Bubble {
|
|
8
|
-
private maps;
|
|
9
|
-
/** @private */
|
|
10
|
-
bubbleCollection: object[];
|
|
11
|
-
/**
|
|
12
|
-
* Bubble Id for current layer
|
|
13
|
-
*
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
constructor(maps: Maps);
|
|
18
|
-
/**
|
|
19
|
-
* To render bubble
|
|
20
|
-
*
|
|
21
|
-
* @param {BubbleSettingsModel} bubbleSettings - Specifies the bubble data to be rendered
|
|
22
|
-
* @param {object} shapeData - Specifies the data about the shape
|
|
23
|
-
* @param {string} color - Specifies the color of the bubble
|
|
24
|
-
* @param {number} range - Specifies the range of the bubble
|
|
25
|
-
* @param {number} range.min - Specifies the minimum range of the bubble
|
|
26
|
-
* @param {number} range.max - Specifies the maximum range of the bubble
|
|
27
|
-
* @param {number} bubbleIndex - Specifies the index of the bubble
|
|
28
|
-
* @param {number} dataIndex - Specifies the index of the data
|
|
29
|
-
* @param {number} layerIndex - Specifies the index of the layer
|
|
30
|
-
* @param {LayerSettings} layer - Specifies the layer data
|
|
31
|
-
* @param {Element} group - Specifies the element group
|
|
32
|
-
* @param {string} bubbleID - Specifies the ID of the bubble
|
|
33
|
-
* @returns {void}
|
|
34
|
-
* @private
|
|
35
|
-
*/
|
|
36
|
-
renderBubble(bubbleSettings: BubbleSettingsModel, shapeData: object, color: string, range: {
|
|
37
|
-
min: number;
|
|
38
|
-
max: number;
|
|
39
|
-
}, bubbleIndex: number, dataIndex: number, layerIndex: number, layer: LayerSettings, group: Element, bubbleID?: string): void;
|
|
40
|
-
private getPoints;
|
|
41
|
-
/**
|
|
42
|
-
* To check and trigger bubble click event.
|
|
43
|
-
*
|
|
44
|
-
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
45
|
-
* @returns {void}
|
|
46
|
-
* @private
|
|
47
|
-
*/
|
|
48
|
-
bubbleClick(e: PointerEvent): void;
|
|
49
|
-
/**
|
|
50
|
-
* To get bubble from target id.
|
|
51
|
-
*
|
|
52
|
-
* @param {string} target - Specifies the target
|
|
53
|
-
* @returns {object} - Returns the object
|
|
54
|
-
*/
|
|
55
|
-
private getbubble;
|
|
56
|
-
/**
|
|
57
|
-
* To check and trigger bubble move event.
|
|
58
|
-
*
|
|
59
|
-
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
60
|
-
* @retruns {void}
|
|
61
|
-
* @private
|
|
62
|
-
*/
|
|
63
|
-
bubbleMove(e: PointerEvent): void;
|
|
64
|
-
/**
|
|
65
|
-
* Get module name.
|
|
66
|
-
*
|
|
67
|
-
* @returns {string} - Returns the module name.
|
|
68
|
-
*/
|
|
69
|
-
protected getModuleName(): string;
|
|
70
|
-
/**
|
|
71
|
-
* To destroy the bubble.
|
|
72
|
-
*
|
|
73
|
-
* @returns {void}
|
|
74
|
-
* @private
|
|
75
|
-
*/
|
|
76
|
-
destroy(): void;
|
|
77
|
-
}
|