@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/src/maps/maps.js
CHANGED
|
@@ -52,7 +52,7 @@ import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
|
52
52
|
var Maps = /** @class */ (function (_super) {
|
|
53
53
|
__extends(Maps, _super);
|
|
54
54
|
/**
|
|
55
|
-
* Constructor for creating the widget
|
|
55
|
+
* Constructor for creating the widget.
|
|
56
56
|
*
|
|
57
57
|
* @param {MapsModel} options Specifies the options
|
|
58
58
|
* @param {string | HTMLElement} element Specifies the element
|
|
@@ -60,7 +60,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
60
60
|
function Maps(options, element) {
|
|
61
61
|
var _this = _super.call(this, options, element) || this;
|
|
62
62
|
/**
|
|
63
|
-
* Check layer whether is geometry or tile
|
|
63
|
+
* Check layer whether is geometry or tile.
|
|
64
64
|
*
|
|
65
65
|
* @private
|
|
66
66
|
*/
|
|
@@ -132,7 +132,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
132
132
|
/** @private */
|
|
133
133
|
_this.toggledLegendId = [];
|
|
134
134
|
/** @private */
|
|
135
|
-
_this.
|
|
135
|
+
_this.toggledElementId = [];
|
|
136
136
|
/** @private */
|
|
137
137
|
_this.checkInitialRender = true;
|
|
138
138
|
/** @private */
|
|
@@ -174,7 +174,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
174
174
|
configurable: true
|
|
175
175
|
});
|
|
176
176
|
/**
|
|
177
|
-
* To manage persist maps data
|
|
177
|
+
* To manage persist maps data.
|
|
178
178
|
*
|
|
179
179
|
* @returns {void}
|
|
180
180
|
*/
|
|
@@ -332,7 +332,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
332
332
|
_loop_2(i);
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
if (layer.dataSource instanceof MapAjax || !isNullOrUndefined(layer.dataSource['dataOptions'])) {
|
|
335
|
+
if (layer.dataSource instanceof MapAjax || (!isNullOrUndefined(layer.dataSource) && !isNullOrUndefined(layer.dataSource['dataOptions']))) {
|
|
336
336
|
_this.processAjaxRequest(layer, layer.dataSource, 'DataSource');
|
|
337
337
|
}
|
|
338
338
|
if (_this.serverProcess['request'] === _this.serverProcess['response'] && length === layerIndex) {
|
|
@@ -533,7 +533,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
533
533
|
//eslint-enable @typescript-eslint/prefer-const
|
|
534
534
|
};
|
|
535
535
|
/**
|
|
536
|
-
* To apply color to the initial selected marker
|
|
536
|
+
* To apply color to the initial selected marker.
|
|
537
537
|
*
|
|
538
538
|
* @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
|
|
539
539
|
* @param {Maps} map - Specifies the instance of the maps
|
|
@@ -575,7 +575,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
577
|
/**
|
|
578
|
-
* initial selection of marker
|
|
578
|
+
* initial selection of marker.
|
|
579
579
|
*
|
|
580
580
|
* @param {number} layerIndex - Specifies the layer index
|
|
581
581
|
* @param {number} markerIndex - Specifies the marker index
|
|
@@ -600,7 +600,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
602
|
/**
|
|
603
|
-
* Render the map area border
|
|
603
|
+
* Render the map area border.
|
|
604
604
|
*
|
|
605
605
|
* @returns {void}
|
|
606
606
|
*/
|
|
@@ -617,7 +617,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
619
|
/**
|
|
620
|
-
* To add tab index for map element
|
|
620
|
+
* To add tab index for map element.
|
|
621
621
|
*
|
|
622
622
|
* @returns {void}
|
|
623
623
|
*/
|
|
@@ -772,8 +772,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
772
772
|
Maps.prototype.createTile = function () {
|
|
773
773
|
var mainLayer = this.layersCollection[0];
|
|
774
774
|
var padding = 0;
|
|
775
|
-
if (mainLayer.isBaseLayer && (mainLayer.
|
|
776
|
-
mainLayer.layerType === 'GoogleStaticMap' || mainLayer.layerType === 'Google' || (!isNullOrUndefined(mainLayer.urlTemplate) && mainLayer.urlTemplate !== ''))) {
|
|
775
|
+
if (mainLayer.isBaseLayer && (!isNullOrUndefined(mainLayer.urlTemplate) && mainLayer.urlTemplate !== '' && isNullOrUndefined(mainLayer.shapeData))) {
|
|
777
776
|
removeElement(this.element.id + '_tile_parent');
|
|
778
777
|
removeElement(this.element.id + '_tiles');
|
|
779
778
|
removeElement('animated_tiles');
|
|
@@ -824,7 +823,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
824
823
|
var baseLayer = mainLayers[i];
|
|
825
824
|
if (baseLayer.visible && baseIndex === i) {
|
|
826
825
|
baseLayer.isBaseLayer = true;
|
|
827
|
-
this.isTileMap =
|
|
826
|
+
this.isTileMap = !isNullOrUndefined(baseLayer.shapeData) ? false : true;
|
|
828
827
|
this.layersCollection.push(baseLayer);
|
|
829
828
|
break;
|
|
830
829
|
}
|
|
@@ -840,7 +839,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
840
839
|
});
|
|
841
840
|
};
|
|
842
841
|
/**
|
|
843
|
-
* Render the map border
|
|
842
|
+
* Render the map border.
|
|
844
843
|
*
|
|
845
844
|
* @private
|
|
846
845
|
* @returns {void}
|
|
@@ -861,7 +860,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
861
860
|
}
|
|
862
861
|
};
|
|
863
862
|
/**
|
|
864
|
-
* Render the title and subtitle
|
|
863
|
+
* Render the title and subtitle.
|
|
865
864
|
*
|
|
866
865
|
* @param {TitleSettingsModel} title - Specifies the title
|
|
867
866
|
* @param {string} type - Specifies the type
|
|
@@ -914,7 +913,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
914
913
|
}
|
|
915
914
|
};
|
|
916
915
|
/**
|
|
917
|
-
* To create svg element for maps
|
|
916
|
+
* To create svg element for maps.
|
|
918
917
|
*
|
|
919
918
|
* @returns {void}
|
|
920
919
|
*/
|
|
@@ -923,7 +922,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
923
922
|
createSvg(this);
|
|
924
923
|
};
|
|
925
924
|
/**
|
|
926
|
-
* To Remove the SVG
|
|
925
|
+
* To Remove the SVG.
|
|
927
926
|
*
|
|
928
927
|
* @returns {void}
|
|
929
928
|
*/
|
|
@@ -1214,7 +1213,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1214
1213
|
return latLongValue;
|
|
1215
1214
|
};
|
|
1216
1215
|
/**
|
|
1217
|
-
* Gets the location of the mouse click
|
|
1216
|
+
* Gets the location of the mouse click.
|
|
1218
1217
|
*
|
|
1219
1218
|
* @param {string} targetId - Specifies the ID for the target.
|
|
1220
1219
|
* @param {number} pageX - Defines the page X position.
|
|
@@ -1223,10 +1222,8 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1223
1222
|
* @param {number} x - Defines the x position in pixel.
|
|
1224
1223
|
* @param {number} y - Defines the y position in pixel.
|
|
1225
1224
|
* @param {string} type - Specifies the type.
|
|
1226
|
-
* @returns {GeoPosition} - Returns the position of the event
|
|
1227
|
-
*
|
|
1225
|
+
* @returns {GeoPosition} - Returns the position of the event.
|
|
1228
1226
|
* @private
|
|
1229
|
-
*
|
|
1230
1227
|
*/
|
|
1231
1228
|
Maps.prototype.getClickLocation = function (targetId, pageX, pageY, targetElement, x, y, type) {
|
|
1232
1229
|
var layerIndex = 0;
|
|
@@ -1298,7 +1295,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1298
1295
|
}
|
|
1299
1296
|
}
|
|
1300
1297
|
else {
|
|
1301
|
-
latLongValue = this.getGeoLocation(layerIndex,
|
|
1298
|
+
latLongValue = this.getGeoLocation(layerIndex, pageX, pageY);
|
|
1302
1299
|
}
|
|
1303
1300
|
}
|
|
1304
1301
|
else if (this.isTileMap && (!isNullOrUndefined(type) ||
|
|
@@ -1735,7 +1732,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1735
1732
|
/**
|
|
1736
1733
|
* This method is used to add the layers dynamically to the maps.
|
|
1737
1734
|
*
|
|
1738
|
-
* @param {
|
|
1735
|
+
* @param {object} layer - Specifies the layer to be added in the maps.
|
|
1739
1736
|
* @returns {void}
|
|
1740
1737
|
*/
|
|
1741
1738
|
Maps.prototype.addLayer = function (layer) {
|
|
@@ -2018,7 +2015,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2018
2015
|
}
|
|
2019
2016
|
_super.prototype.destroy.call(this);
|
|
2020
2017
|
this.shapeSelectionItem = [];
|
|
2021
|
-
this.
|
|
2018
|
+
this.toggledElementId = [];
|
|
2022
2019
|
this.toggledLegendId = [];
|
|
2023
2020
|
this.legendSelectionCollection = [];
|
|
2024
2021
|
this.selectedLegendElementId = [];
|
|
@@ -2079,7 +2076,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2079
2076
|
this.markerDragArgument = null;
|
|
2080
2077
|
};
|
|
2081
2078
|
/**
|
|
2082
|
-
* Gets component name
|
|
2079
|
+
* Gets component name.
|
|
2083
2080
|
*
|
|
2084
2081
|
* @returns {string} - Returns the string value
|
|
2085
2082
|
* @private
|
|
@@ -2112,7 +2109,6 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2112
2109
|
var render = false;
|
|
2113
2110
|
var isMarker = false;
|
|
2114
2111
|
var isLayer = false;
|
|
2115
|
-
var isStaticMapType = false;
|
|
2116
2112
|
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
2117
2113
|
var prop = _a[_i];
|
|
2118
2114
|
switch (prop) {
|
|
@@ -2134,17 +2130,13 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2134
2130
|
var collection = Object.keys(newProp.layers[x]);
|
|
2135
2131
|
for (var _b = 0, collection_1 = collection; _b < collection_1.length; _b++) {
|
|
2136
2132
|
var collectionProp = collection_1[_b];
|
|
2137
|
-
if ((
|
|
2138
|
-
|
|
2139
|
-
&& !isNullOrUndefined(this.layers[x].urlTemplate) && this.layers[x].urlTemplate !== '')) {
|
|
2133
|
+
if ((isNullOrUndefined(this.layers[x].shapeData)
|
|
2134
|
+
&& !isNullOrUndefined(this.layers[x].urlTemplate) && this.layers[x].urlTemplate !== '')) {
|
|
2140
2135
|
this.isReset = true;
|
|
2141
2136
|
}
|
|
2142
2137
|
else if (collectionProp === 'markerSettings') {
|
|
2143
2138
|
isMarker = true;
|
|
2144
2139
|
}
|
|
2145
|
-
else if (collectionProp === 'staticMapType') {
|
|
2146
|
-
isStaticMapType = true;
|
|
2147
|
-
}
|
|
2148
2140
|
}
|
|
2149
2141
|
}
|
|
2150
2142
|
}
|
|
@@ -2188,9 +2180,6 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2188
2180
|
this.render();
|
|
2189
2181
|
}
|
|
2190
2182
|
}
|
|
2191
|
-
else if (newProp.layers && isStaticMapType) {
|
|
2192
|
-
this.mapLayerPanel.renderGoogleMap(this.layers[this.layers.length - 1].key, this.staticMapZoom);
|
|
2193
|
-
}
|
|
2194
2183
|
else {
|
|
2195
2184
|
this.createSVG();
|
|
2196
2185
|
this.renderElements();
|
|
@@ -2199,7 +2188,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2199
2188
|
}
|
|
2200
2189
|
};
|
|
2201
2190
|
/**
|
|
2202
|
-
* To provide the array of modules needed for maps rendering
|
|
2191
|
+
* To provide the array of modules needed for maps rendering.
|
|
2203
2192
|
*
|
|
2204
2193
|
* @returns {ModuleDeclaration[]} - Returns the modules
|
|
2205
2194
|
* @private
|
|
@@ -2312,7 +2301,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2312
2301
|
return modules;
|
|
2313
2302
|
};
|
|
2314
2303
|
/**
|
|
2315
|
-
* To find marker visibility
|
|
2304
|
+
* To find marker visibility.
|
|
2316
2305
|
*
|
|
2317
2306
|
* @returns {boolean} - Returns whether the markers are visible or not.
|
|
2318
2307
|
*/
|
|
@@ -2329,7 +2318,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2329
2318
|
return isVisible;
|
|
2330
2319
|
};
|
|
2331
2320
|
/**
|
|
2332
|
-
* To find DataLabel visibility
|
|
2321
|
+
* To find DataLabel visibility.
|
|
2333
2322
|
*
|
|
2334
2323
|
* @returns {boolean} - Returns whether the data labels are visible or not.
|
|
2335
2324
|
*/
|
|
@@ -2344,7 +2333,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2344
2333
|
return isVisible;
|
|
2345
2334
|
};
|
|
2346
2335
|
/**
|
|
2347
|
-
* To find navigation line visibility
|
|
2336
|
+
* To find navigation line visibility.
|
|
2348
2337
|
*
|
|
2349
2338
|
* @returns {boolean} - Returns whether the navigation lines are visible or not.
|
|
2350
2339
|
*/
|
|
@@ -2361,7 +2350,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2361
2350
|
return isVisible;
|
|
2362
2351
|
};
|
|
2363
2352
|
/**
|
|
2364
|
-
* To find navigation line visibility
|
|
2353
|
+
* To find navigation line visibility.
|
|
2365
2354
|
*
|
|
2366
2355
|
* @returns {boolean} - Returns whether the navigation lines are visible or not.
|
|
2367
2356
|
*/
|
|
@@ -2378,7 +2367,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2378
2367
|
return isVisible;
|
|
2379
2368
|
};
|
|
2380
2369
|
/**
|
|
2381
|
-
* To find marker visibility
|
|
2370
|
+
* To find marker visibility.
|
|
2382
2371
|
*
|
|
2383
2372
|
* @returns {boolean} - Returns whether the bubble is visible or not.
|
|
2384
2373
|
*/
|
|
@@ -2394,7 +2383,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2394
2383
|
return isVisible;
|
|
2395
2384
|
};
|
|
2396
2385
|
/**
|
|
2397
|
-
* To find the bubble visibility from layer
|
|
2386
|
+
* To find the bubble visibility from layer.
|
|
2398
2387
|
*
|
|
2399
2388
|
* @param {LayerSettingsModel} layer - Spcifies the layer settings model
|
|
2400
2389
|
* @returns {boolean} - Returns the boolean value
|
|
@@ -2515,7 +2504,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2515
2504
|
}
|
|
2516
2505
|
for (var _b = 0, _c = polygonSetting.polygons; _b < _c.length; _b++) {
|
|
2517
2506
|
var polygon = _c[_b];
|
|
2518
|
-
if (polygon.points.length > 0) {
|
|
2507
|
+
if (!isNullOrUndefined(polygon.points) && polygon.points.length > 0) {
|
|
2519
2508
|
isSelection = layer.polygonSettings.highlightSettings.enable || isSelection;
|
|
2520
2509
|
isHighlight = layer.polygonSettings.selectionSettings.enable || isHighlight;
|
|
2521
2510
|
istooltipVisible = layer.polygonSettings.tooltipSettings.visible || istooltipVisible;
|
|
@@ -2569,8 +2558,12 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2569
2558
|
var longitude = 0;
|
|
2570
2559
|
if (!this.isDestroyed) {
|
|
2571
2560
|
var container = document.getElementById(this.element.id);
|
|
2572
|
-
var
|
|
2573
|
-
var
|
|
2561
|
+
var elementClientRect = this.element.getBoundingClientRect();
|
|
2562
|
+
var bodyClientRect = document.body.getBoundingClientRect();
|
|
2563
|
+
var pageX = x - (isNullOrUndefined(this.markerDragArgument) ? container.offsetLeft ||
|
|
2564
|
+
(elementClientRect.left - bodyClientRect.left) : 0);
|
|
2565
|
+
var pageY = y - (isNullOrUndefined(this.markerDragArgument) ? container.offsetTop ||
|
|
2566
|
+
(elementClientRect.top - bodyClientRect.top) : 0);
|
|
2574
2567
|
var currentLayer = this.layersCollection[layerIndex];
|
|
2575
2568
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2576
2569
|
var translate = getTranslate(this, currentLayer, false);
|
|
@@ -2614,13 +2607,13 @@ var Maps = /** @class */ (function (_super) {
|
|
|
2614
2607
|
*
|
|
2615
2608
|
* @param {number} pageX - Specifies the x position value in pixels.
|
|
2616
2609
|
* @param {number} pageY - Specifies the y position value in pixels.
|
|
2617
|
-
* @returns {
|
|
2610
|
+
* @returns {object} - Returns the latitude and longitude values.
|
|
2618
2611
|
*/
|
|
2619
2612
|
Maps.prototype.pointToLatLong = function (pageX, pageY) {
|
|
2620
2613
|
var latitude = 0;
|
|
2621
2614
|
var longitude = 0;
|
|
2622
2615
|
if (!this.isDestroyed && !isNullOrUndefined(this.translatePoint)) {
|
|
2623
|
-
var padding =
|
|
2616
|
+
var padding = 10;
|
|
2624
2617
|
pageY = pageY + padding;
|
|
2625
2618
|
var mapSize = 256 * Math.pow(2, this.tileZoomLevel);
|
|
2626
2619
|
var x1 = (this.clip(pageX - (this.translatePoint.x * this.scale), 0, mapSize - 1) / mapSize) - 0.5;
|
|
@@ -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
|
|
|
@@ -462,6 +462,14 @@ export interface TooltipSettingsModel {
|
|
|
462
462
|
*/
|
|
463
463
|
valuePath?: string;
|
|
464
464
|
|
|
465
|
+
/**
|
|
466
|
+
* Specifies the value within which the tooltip will be removed on a mobile device. The value represents time in milliseconds.
|
|
467
|
+
* If the value is set to 0, the tooltip will not be removed. If the value is set to greater than 0, the tooltip will be removed at the specified time.
|
|
468
|
+
*
|
|
469
|
+
* @default 2000
|
|
470
|
+
*/
|
|
471
|
+
duration?: number;
|
|
472
|
+
|
|
465
473
|
}
|
|
466
474
|
|
|
467
475
|
/**
|
|
@@ -493,6 +501,14 @@ export interface PolygonTooltipSettingsModel {
|
|
|
493
501
|
*/
|
|
494
502
|
textStyle?: FontModel;
|
|
495
503
|
|
|
504
|
+
/**
|
|
505
|
+
* Specifies the value within which the tooltip will be removed on a mobile device. The value represents time in milliseconds.
|
|
506
|
+
* If the value is set to 0, the tooltip will not be removed. If the value is set to greater than 0, the tooltip will be removed at the specified time.
|
|
507
|
+
*
|
|
508
|
+
* @default 2000
|
|
509
|
+
*/
|
|
510
|
+
duration?: number;
|
|
511
|
+
|
|
496
512
|
}
|
|
497
513
|
|
|
498
514
|
/**
|
|
@@ -1220,61 +1236,6 @@ export interface ZoomSettingsModel {
|
|
|
1220
1236
|
*/
|
|
1221
1237
|
enableSelectionZooming?: boolean;
|
|
1222
1238
|
|
|
1223
|
-
/**
|
|
1224
|
-
* Gets or sets the orientation of the zoom toolbar.
|
|
1225
|
-
*
|
|
1226
|
-
* @default Horizontal
|
|
1227
|
-
|
|
1228
|
-
*/
|
|
1229
|
-
toolBarOrientation?: Orientation;
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
* Gets or sets the color for the toolbar in maps.
|
|
1233
|
-
*
|
|
1234
|
-
* @default null
|
|
1235
|
-
|
|
1236
|
-
*/
|
|
1237
|
-
color?: string;
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Gets or sets the color for the zoom toolbar when the mouse has hovered on toolbar element in maps.
|
|
1241
|
-
*
|
|
1242
|
-
* @default null
|
|
1243
|
-
|
|
1244
|
-
*/
|
|
1245
|
-
highlightColor?: string;
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Gets or sets the color for the zooming toolbar when clicking the zooming toolbar in maps.
|
|
1249
|
-
*
|
|
1250
|
-
* @default null
|
|
1251
|
-
|
|
1252
|
-
*/
|
|
1253
|
-
selectionColor?: string;
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* Gets or sets the position type of toolbar when it is placed horizontally.
|
|
1257
|
-
*
|
|
1258
|
-
* @default Far
|
|
1259
|
-
|
|
1260
|
-
*/
|
|
1261
|
-
horizontalAlignment?: Alignment;
|
|
1262
|
-
|
|
1263
|
-
/**
|
|
1264
|
-
* Gets or sets the position type of toolbar when it is placed vertically.
|
|
1265
|
-
*
|
|
1266
|
-
* @default Near
|
|
1267
|
-
|
|
1268
|
-
*/
|
|
1269
|
-
verticalAlignment?: Alignment;
|
|
1270
|
-
|
|
1271
|
-
/**
|
|
1272
|
-
* 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.
|
|
1273
|
-
*
|
|
1274
|
-
|
|
1275
|
-
*/
|
|
1276
|
-
toolbars?: string[];
|
|
1277
|
-
|
|
1278
1239
|
/**
|
|
1279
1240
|
* Enables or disables the mouse wheel zooming in maps.
|
|
1280
1241
|
*
|
|
@@ -1993,47 +1954,13 @@ export interface LayerSettingsModel {
|
|
|
1993
1954
|
|
|
1994
1955
|
/**
|
|
1995
1956
|
* Gets or sets the geometry type for the layer in maps. There are two types: Geographic and Normal.
|
|
1996
|
-
*
|
|
1997
|
-
*
|
|
1957
|
+
* - Geographic type renders the shape maps with geographical coordinate system.
|
|
1958
|
+
* - Normal type renders the shape maps using default coordinate system.
|
|
1998
1959
|
*
|
|
1999
1960
|
* @default Geographic
|
|
2000
1961
|
*/
|
|
2001
1962
|
geometryType?: GeometryType;
|
|
2002
1963
|
|
|
2003
|
-
/**
|
|
2004
|
-
* 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",
|
|
2005
|
-
* then the map will be rendered based on the provided shape data since the default layer type will be set as "Geometry".
|
|
2006
|
-
*
|
|
2007
|
-
|
|
2008
|
-
* @default Aerial
|
|
2009
|
-
*/
|
|
2010
|
-
bingMapType?: BingMapType;
|
|
2011
|
-
|
|
2012
|
-
/**
|
|
2013
|
-
* Gets or sets the type of the static maps.
|
|
2014
|
-
*
|
|
2015
|
-
|
|
2016
|
-
* @default RoadMap
|
|
2017
|
-
*/
|
|
2018
|
-
staticMapType?: StaticMapType;
|
|
2019
|
-
|
|
2020
|
-
/**
|
|
2021
|
-
* Gets or sets the key for the online map provider to render in the layer of the maps.
|
|
2022
|
-
*
|
|
2023
|
-
|
|
2024
|
-
* @default ''
|
|
2025
|
-
*/
|
|
2026
|
-
key?: string;
|
|
2027
|
-
|
|
2028
|
-
/**
|
|
2029
|
-
* Gets or sets the type of the layer in maps. If we use layer type with shape data property in layer of the maps
|
|
2030
|
-
* then map will render based on the provided layer type.
|
|
2031
|
-
*
|
|
2032
|
-
|
|
2033
|
-
* @default Geometry
|
|
2034
|
-
*/
|
|
2035
|
-
layerType?: ShapeLayerType;
|
|
2036
|
-
|
|
2037
1964
|
/**
|
|
2038
1965
|
* Gets or sets the URL of the online map providers.
|
|
2039
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
|
/**
|
|
@@ -398,6 +398,13 @@ export declare class TooltipSettings extends ChildProperty<TooltipSettings> {
|
|
|
398
398
|
* @default null
|
|
399
399
|
*/
|
|
400
400
|
valuePath: string;
|
|
401
|
+
/**
|
|
402
|
+
* Specifies the value within which the tooltip will be removed on a mobile device. The value represents time in milliseconds.
|
|
403
|
+
* If the value is set to 0, the tooltip will not be removed. If the value is set to greater than 0, the tooltip will be removed at the specified time.
|
|
404
|
+
*
|
|
405
|
+
* @default 2000
|
|
406
|
+
*/
|
|
407
|
+
duration: number;
|
|
401
408
|
}
|
|
402
409
|
/**
|
|
403
410
|
* Specifies the properties such as visibility, fill, border and text style to customize the tooltip.
|
|
@@ -423,6 +430,13 @@ export declare class PolygonTooltipSettings extends ChildProperty<PolygonTooltip
|
|
|
423
430
|
* Gets or sets the font properties of the text content of the tooltip element of the polygon shape.
|
|
424
431
|
*/
|
|
425
432
|
textStyle: FontModel;
|
|
433
|
+
/**
|
|
434
|
+
* Specifies the value within which the tooltip will be removed on a mobile device. The value represents time in milliseconds.
|
|
435
|
+
* If the value is set to 0, the tooltip will not be removed. If the value is set to greater than 0, the tooltip will be removed at the specified time.
|
|
436
|
+
*
|
|
437
|
+
* @default 2000
|
|
438
|
+
*/
|
|
439
|
+
duration: number;
|
|
426
440
|
}
|
|
427
441
|
/**
|
|
428
442
|
* Gets or sets the options to customize the margin of the maps.
|
|
@@ -1064,54 +1078,6 @@ export declare class ZoomSettings extends ChildProperty<ZoomSettings> {
|
|
|
1064
1078
|
* @default true
|
|
1065
1079
|
*/
|
|
1066
1080
|
enableSelectionZooming: boolean;
|
|
1067
|
-
/**
|
|
1068
|
-
* Gets or sets the orientation of the zoom toolbar.
|
|
1069
|
-
*
|
|
1070
|
-
* @default Horizontal
|
|
1071
|
-
|
|
1072
|
-
*/
|
|
1073
|
-
toolBarOrientation: Orientation;
|
|
1074
|
-
/**
|
|
1075
|
-
* Gets or sets the color for the toolbar in maps.
|
|
1076
|
-
*
|
|
1077
|
-
* @default null
|
|
1078
|
-
|
|
1079
|
-
*/
|
|
1080
|
-
color: string;
|
|
1081
|
-
/**
|
|
1082
|
-
* Gets or sets the color for the zoom toolbar when the mouse has hovered on toolbar element in maps.
|
|
1083
|
-
*
|
|
1084
|
-
* @default null
|
|
1085
|
-
|
|
1086
|
-
*/
|
|
1087
|
-
highlightColor: string;
|
|
1088
|
-
/**
|
|
1089
|
-
* Gets or sets the color for the zooming toolbar when clicking the zooming toolbar in maps.
|
|
1090
|
-
*
|
|
1091
|
-
* @default null
|
|
1092
|
-
|
|
1093
|
-
*/
|
|
1094
|
-
selectionColor: string;
|
|
1095
|
-
/**
|
|
1096
|
-
* Gets or sets the position type of toolbar when it is placed horizontally.
|
|
1097
|
-
*
|
|
1098
|
-
* @default Far
|
|
1099
|
-
|
|
1100
|
-
*/
|
|
1101
|
-
horizontalAlignment: Alignment;
|
|
1102
|
-
/**
|
|
1103
|
-
* Gets or sets the position type of toolbar when it is placed vertically.
|
|
1104
|
-
*
|
|
1105
|
-
* @default Near
|
|
1106
|
-
|
|
1107
|
-
*/
|
|
1108
|
-
verticalAlignment: Alignment;
|
|
1109
|
-
/**
|
|
1110
|
-
* 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.
|
|
1111
|
-
*
|
|
1112
|
-
|
|
1113
|
-
*/
|
|
1114
|
-
toolbars: string[];
|
|
1115
1081
|
/**
|
|
1116
1082
|
* Enables or disables the mouse wheel zooming in maps.
|
|
1117
1083
|
*
|
|
@@ -1717,42 +1683,12 @@ export declare class LayerSettings extends ChildProperty<LayerSettings> {
|
|
|
1717
1683
|
type: Type;
|
|
1718
1684
|
/**
|
|
1719
1685
|
* Gets or sets the geometry type for the layer in maps. There are two types: Geographic and Normal.
|
|
1720
|
-
*
|
|
1721
|
-
*
|
|
1686
|
+
* - Geographic type renders the shape maps with geographical coordinate system.
|
|
1687
|
+
* - Normal type renders the shape maps using default coordinate system.
|
|
1722
1688
|
*
|
|
1723
1689
|
* @default Geographic
|
|
1724
1690
|
*/
|
|
1725
1691
|
geometryType: GeometryType;
|
|
1726
|
-
/**
|
|
1727
|
-
* 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",
|
|
1728
|
-
* then the map will be rendered based on the provided shape data since the default layer type will be set as "Geometry".
|
|
1729
|
-
*
|
|
1730
|
-
|
|
1731
|
-
* @default Aerial
|
|
1732
|
-
*/
|
|
1733
|
-
bingMapType: BingMapType;
|
|
1734
|
-
/**
|
|
1735
|
-
* Gets or sets the type of the static maps.
|
|
1736
|
-
*
|
|
1737
|
-
|
|
1738
|
-
* @default RoadMap
|
|
1739
|
-
*/
|
|
1740
|
-
staticMapType: StaticMapType;
|
|
1741
|
-
/**
|
|
1742
|
-
* Gets or sets the key for the online map provider to render in the layer of the maps.
|
|
1743
|
-
*
|
|
1744
|
-
|
|
1745
|
-
* @default ''
|
|
1746
|
-
*/
|
|
1747
|
-
key: string;
|
|
1748
|
-
/**
|
|
1749
|
-
* Gets or sets the type of the layer in maps. If we use layer type with shape data property in layer of the maps
|
|
1750
|
-
* then map will render based on the provided layer type.
|
|
1751
|
-
*
|
|
1752
|
-
|
|
1753
|
-
* @default Geometry
|
|
1754
|
-
*/
|
|
1755
|
-
layerType: ShapeLayerType;
|
|
1756
1692
|
/**
|
|
1757
1693
|
* Gets or sets the URL of the online map providers.
|
|
1758
1694
|
* The online map providers will be rendered only when the shape data is not set and layer type is set with default value.
|