@syncfusion/ej2-maps 20.4.49 → 21.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/CHANGELOG.md +4 -20
- 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 +993 -236
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +1008 -236
- 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/bubble.d.ts +2 -0
- package/src/maps/layers/bubble.js +2 -1
- package/src/maps/layers/color-mapping.d.ts +1 -0
- package/src/maps/layers/color-mapping.js +1 -0
- package/src/maps/layers/data-label.d.ts +1 -0
- package/src/maps/layers/data-label.js +9 -4
- package/src/maps/layers/layer-panel.js +1 -0
- package/src/maps/layers/legend.d.ts +2 -0
- package/src/maps/layers/legend.js +2 -0
- package/src/maps/layers/marker.d.ts +5 -0
- package/src/maps/layers/marker.js +42 -3
- package/src/maps/layers/navigation-selected-line.d.ts +1 -0
- package/src/maps/layers/navigation-selected-line.js +1 -0
- package/src/maps/maps-model.d.ts +47 -33
- package/src/maps/maps.d.ts +144 -88
- package/src/maps/maps.js +217 -61
- package/src/maps/model/base-model.d.ts +535 -230
- package/src/maps/model/base.d.ts +540 -263
- package/src/maps/model/base.js +168 -28
- package/src/maps/model/constants.d.ts +12 -0
- package/src/maps/model/constants.js +12 -0
- package/src/maps/model/export-image.d.ts +1 -1
- package/src/maps/model/export-image.js +1 -1
- package/src/maps/model/export-pdf.d.ts +2 -2
- package/src/maps/model/export-pdf.js +2 -2
- package/src/maps/model/interface.d.ts +137 -108
- package/src/maps/model/theme.d.ts +1 -0
- package/src/maps/model/theme.js +1 -0
- package/src/maps/user-interaction/annotation.d.ts +2 -0
- package/src/maps/user-interaction/annotation.js +2 -0
- package/src/maps/user-interaction/highlight.d.ts +1 -0
- package/src/maps/user-interaction/highlight.js +1 -0
- package/src/maps/user-interaction/selection.d.ts +1 -0
- package/src/maps/user-interaction/selection.js +1 -0
- package/src/maps/user-interaction/tooltip.d.ts +16 -0
- package/src/maps/user-interaction/tooltip.js +23 -6
- package/src/maps/user-interaction/zoom.d.ts +99 -3
- package/src/maps/user-interaction/zoom.js +405 -100
- package/src/maps/utils/enum.d.ts +105 -91
- package/src/maps/utils/helper.d.ts +76 -16
- package/src/maps/utils/helper.js +122 -37
- package/.eslintrc.json +0 -259
- package/tslint.json +0 -111
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version :
|
|
3
|
+
* version : 21.1.35
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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.41.27",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-Z43MfstcGu8fHlTWUFOEB8TSkIfhfWeQf7Cj1D8yrw9mSMJaOpuoHluSyGupWs3YWXElCj0hEkSoNc0NMZ4y4A==",
|
|
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.syncfusion.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-maps/-/ej2-maps-16.41.27.tgz",
|
|
27
|
+
"_shasum": "6a314c493513e471eb32bd21ec50a9b68de7b445",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
|
-
"_where": "/jenkins/workspace/
|
|
29
|
+
"_where": "/jenkins/workspace/elease-automation_release_21.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": "~21.1.35",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~21.1.35",
|
|
40
|
+
"@syncfusion/ej2-compression": "~21.1.35",
|
|
41
|
+
"@syncfusion/ej2-data": "~21.1.35",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~21.1.35",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~21.1.35",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~21.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": "21.1.35",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
|
@@ -10,6 +10,7 @@ var Bubble = /** @class */ (function () {
|
|
|
10
10
|
function Bubble(maps) {
|
|
11
11
|
/**
|
|
12
12
|
* Bubble Id for current layer
|
|
13
|
+
* @private
|
|
13
14
|
*/
|
|
14
15
|
this.id = '';
|
|
15
16
|
this.maps = maps;
|
|
@@ -161,7 +162,7 @@ var Bubble = /** @class */ (function () {
|
|
|
161
162
|
var bubbleDataSource = bubbleSettings.dataSource;
|
|
162
163
|
var scale = translate['scale'];
|
|
163
164
|
var transPoint = translate['location'];
|
|
164
|
-
var position = new MapLocation((_this.maps.isTileMap ? (eventArgs.cx) : ((eventArgs.cx + transPoint.x) * scale)), (_this.maps.isTileMap ? (eventArgs.cy) : ((eventArgs.cy + transPoint.y) * scale)));
|
|
165
|
+
var position = new MapLocation((_this.maps.isTileMap ? ((eventArgs.cx + _this.maps.translatePoint.x) * _this.maps.tileZoomLevel) : ((eventArgs.cx + transPoint.x) * scale)), (_this.maps.isTileMap ? ((eventArgs.cy + _this.maps.translatePoint.y) * _this.maps.tileZoomLevel) : ((eventArgs.cy + transPoint.y) * scale)));
|
|
165
166
|
bubbleElement.setAttribute('transform', 'translate( ' + (position.x) + ' ' + (position.y) + ' )');
|
|
166
167
|
var bubble = (bubbleDataSource.length - 1) === dataIndex ? 'bubble' : null;
|
|
167
168
|
if (bubbleSettings.bubbleType === 'Square') {
|
|
@@ -23,6 +23,7 @@ export declare class ColorMapping {
|
|
|
23
23
|
* @param {number} colorValue - Specifies the color value
|
|
24
24
|
* @param {string} equalValue - Specifies the equal value.
|
|
25
25
|
* @returns {any} - Returns the color mapping values.
|
|
26
|
+
* @private
|
|
26
27
|
*/
|
|
27
28
|
getColorByValue(colorMapping: ColorMappingSettingsModel[], colorValue: number, equalValue: string): any;
|
|
28
29
|
deSaturationColor(colorMapping: ColorMappingSettingsModel, color: string, rangeValue: number, equalValue: string): number;
|
|
@@ -34,6 +34,7 @@ var ColorMapping = /** @class */ (function () {
|
|
|
34
34
|
* @param {number} colorValue - Specifies the color value
|
|
35
35
|
* @param {string} equalValue - Specifies the equal value.
|
|
36
36
|
* @returns {any} - Returns the color mapping values.
|
|
37
|
+
* @private
|
|
37
38
|
*/
|
|
38
39
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
40
|
ColorMapping.prototype.getColorByValue = function (colorMapping, colorValue, equalValue) {
|
|
@@ -26,6 +26,7 @@ export declare class DataLabel {
|
|
|
26
26
|
* @param {number} index - Specifies the index number.
|
|
27
27
|
* @param {any[]} intersect - Specifies the intersect.
|
|
28
28
|
* @returns {void}
|
|
29
|
+
* @private
|
|
29
30
|
*/
|
|
30
31
|
renderLabel(layer: LayerSettings, layerIndex: number, shape: any, layerData: any[], group: Element, labelTemplateElement: HTMLElement, index: number, intersect: any[]): void;
|
|
31
32
|
private getPoint;
|
|
@@ -42,6 +42,7 @@ var DataLabel = /** @class */ (function () {
|
|
|
42
42
|
* @param {number} index - Specifies the index number.
|
|
43
43
|
* @param {any[]} intersect - Specifies the intersect.
|
|
44
44
|
* @returns {void}
|
|
45
|
+
* @private
|
|
45
46
|
*/
|
|
46
47
|
DataLabel.prototype.renderLabel = function (
|
|
47
48
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -150,6 +151,9 @@ var DataLabel = /** @class */ (function () {
|
|
|
150
151
|
if (isNullOrUndefined(text) && (layer.dataLabelSettings.template !== '' && layer.dataSource['length'] === 0)) {
|
|
151
152
|
text = shapeData['properties'][layer.shapePropertyPath];
|
|
152
153
|
}
|
|
154
|
+
if (isNullOrUndefined(text) && layer.dataSource['length'] > 0) {
|
|
155
|
+
text = '';
|
|
156
|
+
}
|
|
153
157
|
var dataLabelText = text;
|
|
154
158
|
var projectionType = this.maps.projectionType;
|
|
155
159
|
if (isPoint) {
|
|
@@ -202,9 +206,9 @@ var DataLabel = /** @class */ (function () {
|
|
|
202
206
|
}
|
|
203
207
|
var position = [];
|
|
204
208
|
var width = zoomLabelsPosition && scaleZoomValue > 1 && !_this.maps.zoomNotApplied
|
|
205
|
-
&& _this.maps.zoomShapeCollection.length > index ? _this.maps.
|
|
209
|
+
&& _this.maps.zoomShapeCollection.length > index ? (_this.maps.dataLabelShape[index]) * scale :
|
|
206
210
|
(location['rightMax']['x'] - location['leftMax']['x']) * scale;
|
|
207
|
-
if (!isNullOrUndefined(_this.maps.dataLabelShape)) {
|
|
211
|
+
if (!isNullOrUndefined(_this.maps.dataLabelShape) && !_this.maps.isReset) {
|
|
208
212
|
shapeWidth = firstLevelMapLocation['rightMax']['x'] - firstLevelMapLocation['leftMax']['x'];
|
|
209
213
|
_this.maps.dataLabelShape.push(shapeWidth);
|
|
210
214
|
}
|
|
@@ -230,8 +234,9 @@ var DataLabel = /** @class */ (function () {
|
|
|
230
234
|
locationX = location1['x'];
|
|
231
235
|
location['x'] = location1['x'];
|
|
232
236
|
width = zoomLabelsPosition && scaleZoomValue > 1 && !_this.maps.zoomNotApplied
|
|
233
|
-
&& _this.maps.zoomShapeCollection.length > index ? _this.maps.
|
|
234
|
-
(location1['rightMax']['x'] - location1['leftMax']['x']) * scale
|
|
237
|
+
&& _this.maps.zoomShapeCollection.length > index ? (_this.maps.dataLabelShape[index]) * scale :
|
|
238
|
+
((location1['rightMax']['x'] - location1['leftMax']['x']) * scale) > 0 ?
|
|
239
|
+
((location1['rightMax']['x'] - location1['leftMax']['x']) * scale) : width;
|
|
235
240
|
}
|
|
236
241
|
var xpositionEnds = ((location['x'] + transPoint['x']) * scale) + textSize['width'] / 2;
|
|
237
242
|
var xpositionStart = ((location['x'] + transPoint['x']) * scale) - textSize['width'] / 2;
|
|
@@ -672,6 +672,7 @@ var LayerPanel = /** @class */ (function () {
|
|
|
672
672
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
673
673
|
var bubbleDataSource = bubble_1.dataSource;
|
|
674
674
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
675
|
+
this_2.mapObject.bubbleModule.bubbleCollection = [];
|
|
675
676
|
bubbleDataSource.map(function (bubbleData, i) {
|
|
676
677
|
_this.renderBubble(_this.currentLayer, bubbleData, colors[i % colors.length], range, j, i, bubbleG, layerIndex, bubble_1);
|
|
677
678
|
});
|
|
@@ -79,6 +79,7 @@ export declare class Legend {
|
|
|
79
79
|
* To calculate legend bounds and draw the legend shape and text.
|
|
80
80
|
*
|
|
81
81
|
* @returns {void}
|
|
82
|
+
* @private
|
|
82
83
|
*/
|
|
83
84
|
renderLegend(): void;
|
|
84
85
|
calculateLegendBounds(): void;
|
|
@@ -99,6 +100,7 @@ export declare class Legend {
|
|
|
99
100
|
private legendTextTrim;
|
|
100
101
|
/**
|
|
101
102
|
* To draw the legend shape and text.
|
|
103
|
+
* @private
|
|
102
104
|
*/
|
|
103
105
|
drawLegend(): void;
|
|
104
106
|
/**
|
|
@@ -64,6 +64,7 @@ var Legend = /** @class */ (function () {
|
|
|
64
64
|
* To calculate legend bounds and draw the legend shape and text.
|
|
65
65
|
*
|
|
66
66
|
* @returns {void}
|
|
67
|
+
* @private
|
|
67
68
|
*/
|
|
68
69
|
Legend.prototype.renderLegend = function () {
|
|
69
70
|
this.legendRenderingCollections = [];
|
|
@@ -408,6 +409,7 @@ var Legend = /** @class */ (function () {
|
|
|
408
409
|
// eslint-disable-next-line valid-jsdoc
|
|
409
410
|
/**
|
|
410
411
|
* To draw the legend shape and text.
|
|
412
|
+
* @private
|
|
411
413
|
*/
|
|
412
414
|
Legend.prototype.drawLegend = function () {
|
|
413
415
|
var map = this.maps;
|
|
@@ -28,18 +28,21 @@ export declare class Marker {
|
|
|
28
28
|
*
|
|
29
29
|
* @param {LayerSettings[]} layersCollection - Specifies the layer settings instance.
|
|
30
30
|
* @returns {void}
|
|
31
|
+
* @private
|
|
31
32
|
*/
|
|
32
33
|
calculateZoomCenterPositionAndFactor(layersCollection: LayerSettings[]): void;
|
|
33
34
|
/**
|
|
34
35
|
* To check and trigger marker click event
|
|
35
36
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
36
37
|
* @returns {void}
|
|
38
|
+
* @private
|
|
37
39
|
*/
|
|
38
40
|
markerClick(e: PointerEvent): void;
|
|
39
41
|
/**
|
|
40
42
|
* To check and trigger Cluster click event
|
|
41
43
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
42
44
|
* @returns {void}
|
|
45
|
+
* @private
|
|
43
46
|
*/
|
|
44
47
|
markerClusterClick(e: PointerEvent): void;
|
|
45
48
|
/**
|
|
@@ -54,6 +57,7 @@ export declare class Marker {
|
|
|
54
57
|
*
|
|
55
58
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
56
59
|
* @returns {void}
|
|
60
|
+
* @private
|
|
57
61
|
*/
|
|
58
62
|
markerMove(e: PointerEvent): void;
|
|
59
63
|
/**
|
|
@@ -61,6 +65,7 @@ export declare class Marker {
|
|
|
61
65
|
*
|
|
62
66
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
63
67
|
* @returns {void}
|
|
68
|
+
* @private
|
|
64
69
|
*/
|
|
65
70
|
markerClusterMouseMove(e: PointerEvent): void;
|
|
66
71
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { markerRendering, convertTileLatLongToPoint, MapLocation } from '../index';
|
|
1
|
+
import { markerRendering, convertTileLatLongToPoint, MapLocation, markerDragStart } from '../index';
|
|
2
2
|
import { markerClick, markerMouseMove, markerClusterClick, markerClusterMouseMove } from '../index';
|
|
3
3
|
import { isNullOrUndefined, createElement } from '@syncfusion/ej2-base';
|
|
4
4
|
import { getTranslate, convertGeoToPoint, clusterTemplate, marker, markerTemplate, getZoomTranslate } from '../utils/helper';
|
|
@@ -146,6 +146,7 @@ var Marker = /** @class */ (function () {
|
|
|
146
146
|
*
|
|
147
147
|
* @param {LayerSettings[]} layersCollection - Specifies the layer settings instance.
|
|
148
148
|
* @returns {void}
|
|
149
|
+
* @private
|
|
149
150
|
*/
|
|
150
151
|
Marker.prototype.calculateZoomCenterPositionAndFactor = function (layersCollection) {
|
|
151
152
|
if (!isNullOrUndefined(this.maps)) {
|
|
@@ -218,7 +219,7 @@ var Marker = /** @class */ (function () {
|
|
|
218
219
|
}
|
|
219
220
|
var markerFactor = void 0;
|
|
220
221
|
if (this.maps.isTileMap || this.maps.baseMapRectBounds['min']['x'] === 0) {
|
|
221
|
-
zoomLevel = calculateZoomLevel(minLat_1, maxLat_1, minLong_1, maxLong_1, mapWidth, mapHeight, this.maps);
|
|
222
|
+
zoomLevel = calculateZoomLevel(minLat_1, maxLat_1, minLong_1, maxLong_1, mapWidth, mapHeight, this.maps, false);
|
|
222
223
|
if (this.maps.isTileMap) {
|
|
223
224
|
markerFactor = isNullOrUndefined(this.maps.markerZoomFactor) ?
|
|
224
225
|
zoomLevel : isNullOrUndefined(this.maps.mapScaleValue) ?
|
|
@@ -274,6 +275,7 @@ var Marker = /** @class */ (function () {
|
|
|
274
275
|
* To check and trigger marker click event
|
|
275
276
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
276
277
|
* @returns {void}
|
|
278
|
+
* @private
|
|
277
279
|
*/
|
|
278
280
|
Marker.prototype.markerClick = function (e) {
|
|
279
281
|
var target = e.target.id;
|
|
@@ -284,6 +286,9 @@ var Marker = /** @class */ (function () {
|
|
|
284
286
|
if (isNullOrUndefined(options)) {
|
|
285
287
|
return;
|
|
286
288
|
}
|
|
289
|
+
if (options.marker.enableDrag) {
|
|
290
|
+
document.getElementById(this.maps.element.id + "_svg").style.cursor = 'grabbing';
|
|
291
|
+
}
|
|
287
292
|
var eventArgs = {
|
|
288
293
|
cancel: false, name: markerClick, data: options.data, maps: this.maps,
|
|
289
294
|
marker: options.marker, target: target, x: e.clientX, y: e.clientY,
|
|
@@ -292,11 +297,39 @@ var Marker = /** @class */ (function () {
|
|
|
292
297
|
value: options.data['name']
|
|
293
298
|
};
|
|
294
299
|
this.maps.trigger(markerClick, eventArgs);
|
|
300
|
+
if (options.marker.enableDrag) {
|
|
301
|
+
var isCluster = false;
|
|
302
|
+
var layerIndex = parseInt(target.split('_LayerIndex_')[1].split('_')[0], 10);
|
|
303
|
+
var markerIndex = parseInt(target.split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
304
|
+
var dataIndex_1 = parseInt(target.split('_dataIndex_')[1].split('_')[0], 10);
|
|
305
|
+
var marker_1 = this.maps.layers[layerIndex].markerSettings[markerIndex];
|
|
306
|
+
if (this.sameMarkerData.length > 0) {
|
|
307
|
+
isCluster = (this.sameMarkerData[0].data.filter(function (el) { return (el['index'] == dataIndex_1); })).length > 0 &&
|
|
308
|
+
this.sameMarkerData[0].layerIndex === layerIndex && this.sameMarkerData[0].markerIndex === markerIndex;
|
|
309
|
+
}
|
|
310
|
+
if (!isCluster) {
|
|
311
|
+
var dragEventArgs = {
|
|
312
|
+
name: markerDragStart, x: e.clientX, y: e.clientY,
|
|
313
|
+
latitude: options.data['latitude'] || options.data['Latitude'],
|
|
314
|
+
longitude: options.data['longitude'] || options.data['Longitude'],
|
|
315
|
+
layerIndex: layerIndex, markerIndex: markerIndex, dataIndex: dataIndex_1
|
|
316
|
+
};
|
|
317
|
+
this.maps.trigger(markerDragStart, dragEventArgs);
|
|
318
|
+
this.maps.markerDragArgument = {
|
|
319
|
+
targetId: target, x: e.clientX, y: e.clientY,
|
|
320
|
+
latitude: options.data['latitude'] || options.data['Latitude'],
|
|
321
|
+
longitude: options.data['longitude'] || options.data['Longitude'],
|
|
322
|
+
shape: isNullOrUndefined(marker_1.shapeValuePath) ? marker_1.shape : marker_1.dataSource[dataIndex_1][marker_1.shapeValuePath],
|
|
323
|
+
layerIndex: layerIndex, markerIndex: markerIndex, dataIndex: dataIndex_1
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
}
|
|
295
327
|
};
|
|
296
328
|
/**
|
|
297
329
|
* To check and trigger Cluster click event
|
|
298
330
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
299
331
|
* @returns {void}
|
|
332
|
+
* @private
|
|
300
333
|
*/
|
|
301
334
|
Marker.prototype.markerClusterClick = function (e) {
|
|
302
335
|
var target = e.target.id;
|
|
@@ -367,7 +400,7 @@ var Marker = /** @class */ (function () {
|
|
|
367
400
|
if ((target.indexOf('_cluster_') > -1)) {
|
|
368
401
|
var isClusterSame = false;
|
|
369
402
|
var clusterElement = document.getElementById(target.indexOf('_datalabel_') > -1 ? layer.markerClusterSettings.shape === 'Balloon' ? target.split('_datalabel_')[0] + '_Group' : target.split('_datalabel_')[0] : layer.markerClusterSettings.shape === 'Balloon' ? target + '_Group' : target);
|
|
370
|
-
var indexes = layer.markerClusterSettings.shape === 'Balloon' ? clusterElement.children[0].
|
|
403
|
+
var indexes = layer.markerClusterSettings.shape === 'Balloon' ? clusterElement.children[0].innerText.split(',').map(Number) : clusterElement.innerText.split(',').map(Number);
|
|
371
404
|
collection_1 = [];
|
|
372
405
|
for (var _i = 0, indexes_1 = indexes; _i < indexes_1.length; _i++) {
|
|
373
406
|
var i = indexes_1[_i];
|
|
@@ -391,6 +424,7 @@ var Marker = /** @class */ (function () {
|
|
|
391
424
|
*
|
|
392
425
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
393
426
|
* @returns {void}
|
|
427
|
+
* @private
|
|
394
428
|
*/
|
|
395
429
|
Marker.prototype.markerMove = function (e) {
|
|
396
430
|
var targetId = e.target.id;
|
|
@@ -401,6 +435,10 @@ var Marker = /** @class */ (function () {
|
|
|
401
435
|
if (isNullOrUndefined(options)) {
|
|
402
436
|
return;
|
|
403
437
|
}
|
|
438
|
+
if (options.marker.enableDrag) {
|
|
439
|
+
document.getElementById(this.maps.element.id + "_svg").style.cursor = isNullOrUndefined(this.maps.markerDragArgument) ?
|
|
440
|
+
'pointer' : 'grabbing';
|
|
441
|
+
}
|
|
404
442
|
var eventArgs = {
|
|
405
443
|
cancel: false, name: markerMouseMove, data: options.data,
|
|
406
444
|
maps: this.maps, target: targetId, x: e.clientX, y: e.clientY
|
|
@@ -412,6 +450,7 @@ var Marker = /** @class */ (function () {
|
|
|
412
450
|
*
|
|
413
451
|
* @param {PointerEvent} e - Specifies the pointer event argument.
|
|
414
452
|
* @returns {void}
|
|
453
|
+
* @private
|
|
415
454
|
*/
|
|
416
455
|
Marker.prototype.markerClusterMouseMove = function (e) {
|
|
417
456
|
var targetId = e.target.id;
|
|
@@ -13,6 +13,7 @@ export declare class NavigationLine {
|
|
|
13
13
|
* @param {number} factor - Specifies the current zoom factor of the Maps.
|
|
14
14
|
* @param {number} layerIndex -Specifies the index of current layer.
|
|
15
15
|
* @returns {Element} - Returns the navigation line element.
|
|
16
|
+
* @private
|
|
16
17
|
*/
|
|
17
18
|
renderNavigation(layer: LayerSettings, factor: number, layerIndex: number): Element;
|
|
18
19
|
private convertRadius;
|
|
@@ -15,6 +15,7 @@ var NavigationLine = /** @class */ (function () {
|
|
|
15
15
|
* @param {number} factor - Specifies the current zoom factor of the Maps.
|
|
16
16
|
* @param {number} layerIndex -Specifies the index of current layer.
|
|
17
17
|
* @returns {Element} - Returns the navigation line element.
|
|
18
|
+
* @private
|
|
18
19
|
*/
|
|
19
20
|
NavigationLine.prototype.renderNavigation = function (layer, factor, layerIndex) {
|
|
20
21
|
var group;
|