@progress/kendo-angular-map 25.3.1-develop.2 → 25.4.0-develop.1
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { Injectable, SimpleChange, Directive, TemplateRef, ContentChild, ChangeDetectionStrategy, Component, SecurityContext, Input, forwardRef, ViewChild, ElementRef, EventEmitter, Output, ContentChildren, Optional, NgModule } from '@angular/core';
|
|
6
|
+
import { Injectable, SimpleChange, Directive, TemplateRef, ContentChild, ChangeDetectionStrategy, Component, signal, SecurityContext, Input, forwardRef, ViewChild, ElementRef, EventEmitter, Output, computed, effect, untracked, ContentChildren, Optional, NgModule } from '@angular/core';
|
|
7
7
|
import * as i3 from '@angular/platform-browser';
|
|
8
8
|
import { Subject, BehaviorSubject, combineLatest } from 'rxjs';
|
|
9
9
|
import { isDocumentAvailable, hasObservers, ResizeSensorComponent, KENDO_WEBMCP_HOST, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
@@ -15,7 +15,7 @@ import { chevronRightIcon, chevronLeftIcon, chevronDownIcon, chevronUpIcon, minu
|
|
|
15
15
|
import { InstanceObserver, Map } from '@progress/kendo-charts';
|
|
16
16
|
export { Extent, Location } from '@progress/kendo-charts';
|
|
17
17
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
18
|
-
import { tap
|
|
18
|
+
import { tap } from 'rxjs/operators';
|
|
19
19
|
import { NgClass, NgStyle, NgTemplateOutlet } from '@angular/common';
|
|
20
20
|
import * as i1 from '@progress/kendo-angular-popup';
|
|
21
21
|
import { PopupService, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
|
|
@@ -285,27 +285,33 @@ class LayerComponent extends CollectionItemComponent {
|
|
|
285
285
|
/**
|
|
286
286
|
* @hidden
|
|
287
287
|
*/
|
|
288
|
-
attribution;
|
|
288
|
+
set attribution(value) { this._attribution.set(value); }
|
|
289
|
+
get attribution() { return this._attribution(); }
|
|
289
290
|
/**
|
|
290
291
|
* @hidden
|
|
291
292
|
*/
|
|
292
|
-
extent;
|
|
293
|
+
set extent(value) { this._extent.set(value); }
|
|
294
|
+
get extent() { return this._extent(); }
|
|
293
295
|
/**
|
|
294
296
|
* @hidden
|
|
295
297
|
*/
|
|
296
|
-
maxZoom;
|
|
298
|
+
set maxZoom(value) { this._maxZoom.set(value); }
|
|
299
|
+
get maxZoom() { return this._maxZoom(); }
|
|
297
300
|
/**
|
|
298
301
|
* @hidden
|
|
299
302
|
*/
|
|
300
|
-
minZoom;
|
|
303
|
+
set minZoom(value) { this._minZoom.set(value); }
|
|
304
|
+
get minZoom() { return this._minZoom(); }
|
|
301
305
|
/**
|
|
302
306
|
* @hidden
|
|
303
307
|
*/
|
|
304
|
-
opacity;
|
|
308
|
+
set opacity(value) { this._opacity.set(value); }
|
|
309
|
+
get opacity() { return this._opacity(); }
|
|
305
310
|
/**
|
|
306
311
|
* @hidden
|
|
307
312
|
*/
|
|
308
|
-
zIndex;
|
|
313
|
+
set zIndex(value) { this._zIndex.set(value); }
|
|
314
|
+
get zIndex() { return this._zIndex(); }
|
|
309
315
|
layerTooltip;
|
|
310
316
|
constructor(type, configurationService, collectionService, sanitizer) {
|
|
311
317
|
super(configurationService, collectionService);
|
|
@@ -314,6 +320,12 @@ class LayerComponent extends CollectionItemComponent {
|
|
|
314
320
|
this.collectionService = collectionService;
|
|
315
321
|
this.sanitizer = sanitizer;
|
|
316
322
|
}
|
|
323
|
+
_attribution = signal(undefined, ...(ngDevMode ? [{ debugName: "_attribution" }] : /* istanbul ignore next */ []));
|
|
324
|
+
_zIndex = signal(undefined, ...(ngDevMode ? [{ debugName: "_zIndex" }] : /* istanbul ignore next */ []));
|
|
325
|
+
_opacity = signal(undefined, ...(ngDevMode ? [{ debugName: "_opacity" }] : /* istanbul ignore next */ []));
|
|
326
|
+
_minZoom = signal(undefined, ...(ngDevMode ? [{ debugName: "_minZoom" }] : /* istanbul ignore next */ []));
|
|
327
|
+
_maxZoom = signal(undefined, ...(ngDevMode ? [{ debugName: "_maxZoom" }] : /* istanbul ignore next */ []));
|
|
328
|
+
_extent = signal(undefined, ...(ngDevMode ? [{ debugName: "_extent" }] : /* istanbul ignore next */ []));
|
|
317
329
|
ngOnChanges(changes) {
|
|
318
330
|
const store = this.configurationService.store;
|
|
319
331
|
store.type = this.type;
|
|
@@ -386,38 +398,52 @@ class BubbleLayerComponent extends LayerComponent {
|
|
|
386
398
|
/**
|
|
387
399
|
* Sets the array of data items for this layer.
|
|
388
400
|
*/
|
|
389
|
-
data;
|
|
401
|
+
set data(value) { this._data.set(value); }
|
|
402
|
+
get data() { return this._data(); }
|
|
390
403
|
/**
|
|
391
404
|
* Sets the data item field which contains the symbol location.
|
|
392
405
|
* The field should be an array with two numbers — latitude and longitude in decimal degrees.
|
|
393
406
|
*/
|
|
394
|
-
locationField;
|
|
407
|
+
set locationField(value) { this._locationField.set(value); }
|
|
408
|
+
get locationField() { return this._locationField(); }
|
|
395
409
|
/**
|
|
396
410
|
* Sets the value field for the symbols used to determine their relative size.
|
|
397
411
|
* The data item field should be a number.
|
|
398
412
|
*/
|
|
399
|
-
valueField;
|
|
413
|
+
set valueField(value) { this._valueField.set(value); }
|
|
414
|
+
get valueField() { return this._valueField(); }
|
|
400
415
|
/**
|
|
401
416
|
* Sets the symbol to use for bubble layers.
|
|
402
417
|
*/
|
|
403
|
-
symbol;
|
|
418
|
+
set symbol(value) { this._symbol.set(value); }
|
|
419
|
+
get symbol() { return this._symbol(); }
|
|
404
420
|
/**
|
|
405
421
|
* Sets the default style for symbols.
|
|
406
422
|
*/
|
|
407
|
-
style;
|
|
423
|
+
set style(value) { this._style.set(value); }
|
|
424
|
+
get style() { return this._style(); }
|
|
408
425
|
/**
|
|
409
426
|
* Sets the maximum symbol size for bubble layer symbols.
|
|
410
427
|
*
|
|
411
428
|
* @default 100
|
|
412
429
|
*/
|
|
413
|
-
maxSize;
|
|
430
|
+
set maxSize(value) { this._maxSize.set(value); }
|
|
431
|
+
get maxSize() { return this._maxSize(); }
|
|
414
432
|
/**
|
|
415
433
|
* Sets the minimum symbol size for bubble layer symbols.
|
|
416
434
|
* Setting a non-zero value will distort the symbol area to value ratio.
|
|
417
435
|
*
|
|
418
436
|
* @default 0
|
|
419
437
|
*/
|
|
420
|
-
minSize;
|
|
438
|
+
set minSize(value) { this._minSize.set(value); }
|
|
439
|
+
get minSize() { return this._minSize(); }
|
|
440
|
+
_minSize = signal(undefined, ...(ngDevMode ? [{ debugName: "_minSize" }] : /* istanbul ignore next */ []));
|
|
441
|
+
_valueField = signal(undefined, ...(ngDevMode ? [{ debugName: "_valueField" }] : /* istanbul ignore next */ []));
|
|
442
|
+
_maxSize = signal(undefined, ...(ngDevMode ? [{ debugName: "_maxSize" }] : /* istanbul ignore next */ []));
|
|
443
|
+
_style = signal(undefined, ...(ngDevMode ? [{ debugName: "_style" }] : /* istanbul ignore next */ []));
|
|
444
|
+
_symbol = signal(undefined, ...(ngDevMode ? [{ debugName: "_symbol" }] : /* istanbul ignore next */ []));
|
|
445
|
+
_locationField = signal(undefined, ...(ngDevMode ? [{ debugName: "_locationField" }] : /* istanbul ignore next */ []));
|
|
446
|
+
_data = signal(undefined, ...(ngDevMode ? [{ debugName: "_data" }] : /* istanbul ignore next */ []));
|
|
421
447
|
constructor(configurationService, collectionService, sanitizer) {
|
|
422
448
|
super('bubble', configurationService, collectionService, sanitizer);
|
|
423
449
|
this.configurationService = configurationService;
|
|
@@ -950,8 +976,8 @@ const packageMetadata = {
|
|
|
950
976
|
productName: 'Kendo UI for Angular',
|
|
951
977
|
productCode: 'KENDOUIANGULAR',
|
|
952
978
|
productCodes: ['KENDOUIANGULAR'],
|
|
953
|
-
publishDate:
|
|
954
|
-
version: '25.
|
|
979
|
+
publishDate: 1791873255,
|
|
980
|
+
version: '25.4.0-develop.1',
|
|
955
981
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
956
982
|
};
|
|
957
983
|
|
|
@@ -963,17 +989,20 @@ const COLLISION = { horizontal: "fit", vertical: "fit" };
|
|
|
963
989
|
class BaseTooltip {
|
|
964
990
|
popupService;
|
|
965
991
|
localizationService;
|
|
966
|
-
animate
|
|
992
|
+
get animate() { return this._animateSignal(); }
|
|
967
993
|
style = {
|
|
968
994
|
position: 'relative'
|
|
969
995
|
};
|
|
970
996
|
templateRef;
|
|
971
997
|
popupRef = null;
|
|
972
|
-
popupSettings;
|
|
998
|
+
set popupSettings(value) { this._popupSettings.set(value); }
|
|
999
|
+
get popupSettings() { return this._popupSettings(); }
|
|
973
1000
|
constructor(popupService, localizationService) {
|
|
974
1001
|
this.popupService = popupService;
|
|
975
1002
|
this.localizationService = localizationService;
|
|
976
1003
|
}
|
|
1004
|
+
_popupSettings = signal(undefined, ...(ngDevMode ? [{ debugName: "_popupSettings" }] : /* istanbul ignore next */ []));
|
|
1005
|
+
_animateSignal = signal(true, ...(ngDevMode ? [{ debugName: "_animateSignal" }] : /* istanbul ignore next */ []));
|
|
977
1006
|
get active() {
|
|
978
1007
|
return this.popupRef !== null;
|
|
979
1008
|
}
|
|
@@ -1087,13 +1116,22 @@ class TooltipPopupComponent extends BaseTooltip {
|
|
|
1087
1116
|
templateService;
|
|
1088
1117
|
localizationService;
|
|
1089
1118
|
ngZone;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
classNames;
|
|
1094
|
-
wrapperClass
|
|
1119
|
+
set animate(value) { this._animate.set(value); }
|
|
1120
|
+
get animate() { return this._animate(); }
|
|
1121
|
+
set classNames(value) { this._classNames.set(value); }
|
|
1122
|
+
get classNames() { return this._classNames(); }
|
|
1123
|
+
set wrapperClass(value) { this._wrapperClass.set(value); }
|
|
1124
|
+
get wrapperClass() { return this._wrapperClass(); }
|
|
1095
1125
|
leave = new EventEmitter();
|
|
1096
|
-
|
|
1126
|
+
get tooltipTemplateRef() { return this._tooltipTemplateRef(); }
|
|
1127
|
+
get tooltipContext() { return this._tooltipContext(); }
|
|
1128
|
+
get popupClasses() { return this._popupClasses(); }
|
|
1129
|
+
_animate = signal(true, ...(ngDevMode ? [{ debugName: "_animate" }] : /* istanbul ignore next */ []));
|
|
1130
|
+
_classNames = signal(undefined, ...(ngDevMode ? [{ debugName: "_classNames" }] : /* istanbul ignore next */ []));
|
|
1131
|
+
_wrapperClass = signal('k-tooltip-wrapper', ...(ngDevMode ? [{ debugName: "_wrapperClass" }] : /* istanbul ignore next */ []));
|
|
1132
|
+
_tooltipTemplateRef = signal(null, ...(ngDevMode ? [{ debugName: "_tooltipTemplateRef" }] : /* istanbul ignore next */ []));
|
|
1133
|
+
_tooltipContext = signal({}, ...(ngDevMode ? [{ debugName: "_tooltipContext" }] : /* istanbul ignore next */ []));
|
|
1134
|
+
_popupClasses = signal({}, ...(ngDevMode ? [{ debugName: "_popupClasses" }] : /* istanbul ignore next */ []));
|
|
1097
1135
|
mouseleaveSubscription;
|
|
1098
1136
|
constructor(popupService, templateService, localizationService, ngZone) {
|
|
1099
1137
|
super(popupService, localizationService);
|
|
@@ -1103,16 +1141,17 @@ class TooltipPopupComponent extends BaseTooltip {
|
|
|
1103
1141
|
this.ngZone = ngZone;
|
|
1104
1142
|
}
|
|
1105
1143
|
show(e) {
|
|
1106
|
-
this.
|
|
1144
|
+
this._tooltipTemplateRef.set(this.templateService.getTemplate(e.layerIndex));
|
|
1107
1145
|
if (!this.tooltipTemplateRef) {
|
|
1108
1146
|
return;
|
|
1109
1147
|
}
|
|
1110
|
-
this.
|
|
1148
|
+
this._popupClasses.set({
|
|
1111
1149
|
'k-tooltip': true,
|
|
1112
1150
|
'k-map-tooltip': true,
|
|
1113
|
-
[e.className]: Boolean(e.className)
|
|
1114
|
-
|
|
1115
|
-
|
|
1151
|
+
[e.className]: Boolean(e.className),
|
|
1152
|
+
...this.classNames
|
|
1153
|
+
});
|
|
1154
|
+
this._tooltipContext.set(e);
|
|
1116
1155
|
super.show(e);
|
|
1117
1156
|
}
|
|
1118
1157
|
containsElement(element) {
|
|
@@ -1133,7 +1172,7 @@ class TooltipPopupComponent extends BaseTooltip {
|
|
|
1133
1172
|
this.mouseleaveSubscription();
|
|
1134
1173
|
this.mouseleaveSubscription = null;
|
|
1135
1174
|
}
|
|
1136
|
-
this.
|
|
1175
|
+
this._tooltipTemplateRef.set(null);
|
|
1137
1176
|
super.hide();
|
|
1138
1177
|
}
|
|
1139
1178
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TooltipPopupComponent, deps: [{ token: i1.PopupService }, { token: TooltipTemplateService }, { token: i3$1.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1150,11 +1189,12 @@ class TooltipPopupComponent extends BaseTooltip {
|
|
|
1150
1189
|
</div>
|
|
1151
1190
|
</div>
|
|
1152
1191
|
</ng-template>
|
|
1153
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
1192
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1154
1193
|
}
|
|
1155
1194
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TooltipPopupComponent, decorators: [{
|
|
1156
1195
|
type: Component,
|
|
1157
1196
|
args: [{
|
|
1197
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1158
1198
|
providers: [PopupService, {
|
|
1159
1199
|
provide: POPUP_CONTAINER,
|
|
1160
1200
|
useFactory: bodyFactory
|
|
@@ -1268,50 +1308,59 @@ class MapComponent {
|
|
|
1268
1308
|
* }
|
|
1269
1309
|
* ```
|
|
1270
1310
|
*/
|
|
1271
|
-
resizeRateLimit
|
|
1311
|
+
set resizeRateLimit(value) { this._resizeRateLimit.set(value); }
|
|
1312
|
+
get resizeRateLimit() { return this._resizeRateLimit(); }
|
|
1272
1313
|
/**
|
|
1273
1314
|
* Specifies the map center coordinates.
|
|
1274
1315
|
* Provide coordinates as `[Latitude, Longitude]`.
|
|
1275
1316
|
*/
|
|
1276
|
-
center;
|
|
1317
|
+
set center(value) { this._center.set(value); }
|
|
1318
|
+
get center() { return this._center(); }
|
|
1277
1319
|
/**
|
|
1278
1320
|
* Specifies the configuration for built-in map controls.
|
|
1279
1321
|
*/
|
|
1280
|
-
controls;
|
|
1322
|
+
set controls(value) { this._controls.set(value); }
|
|
1323
|
+
get controls() { return this._controls(); }
|
|
1281
1324
|
/**
|
|
1282
1325
|
* The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
|
|
1283
1326
|
*
|
|
1284
1327
|
* @default 1
|
|
1285
1328
|
*/
|
|
1286
|
-
minZoom;
|
|
1329
|
+
set minZoom(value) { this._minZoom.set(value); }
|
|
1330
|
+
get minZoom() { return this._minZoom(); }
|
|
1287
1331
|
/**
|
|
1288
1332
|
* The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
|
|
1289
1333
|
*
|
|
1290
1334
|
* @default 19
|
|
1291
1335
|
*/
|
|
1292
|
-
maxZoom;
|
|
1336
|
+
set maxZoom(value) { this._maxZoom.set(value); }
|
|
1337
|
+
get maxZoom() { return this._maxZoom(); }
|
|
1293
1338
|
/**
|
|
1294
1339
|
* The size of the map in pixels at zoom level 0.
|
|
1295
1340
|
*
|
|
1296
1341
|
* @default 256
|
|
1297
1342
|
*/
|
|
1298
|
-
minSize;
|
|
1343
|
+
set minSize(value) { this._minSize.set(value); }
|
|
1344
|
+
get minSize() { return this._minSize(); }
|
|
1299
1345
|
/**
|
|
1300
1346
|
* Controls whether the user can pan the map.
|
|
1301
1347
|
*
|
|
1302
1348
|
* @default true
|
|
1303
1349
|
*/
|
|
1304
|
-
pannable;
|
|
1350
|
+
set pannable(value) { this._pannable.set(value); }
|
|
1351
|
+
get pannable() { return this._pannable(); }
|
|
1305
1352
|
/**
|
|
1306
1353
|
* The settings for the tooltip popup.
|
|
1307
1354
|
*/
|
|
1308
|
-
popupSettings;
|
|
1355
|
+
set popupSettings(value) { this._popupSettings.set(value); }
|
|
1356
|
+
get popupSettings() { return this._popupSettings(); }
|
|
1309
1357
|
/**
|
|
1310
1358
|
* Specifies whether the map should wrap around the east-west edges.
|
|
1311
1359
|
*
|
|
1312
1360
|
* @default true
|
|
1313
1361
|
*/
|
|
1314
|
-
wraparound;
|
|
1362
|
+
set wraparound(value) { this._wraparound.set(value); }
|
|
1363
|
+
get wraparound() { return this._wraparound(); }
|
|
1315
1364
|
/**
|
|
1316
1365
|
* Specifies the initial zoom level.
|
|
1317
1366
|
* Use values from 0 (whole world) to 19 (sub-meter features).
|
|
@@ -1320,13 +1369,15 @@ class MapComponent {
|
|
|
1320
1369
|
*
|
|
1321
1370
|
* @default 3
|
|
1322
1371
|
*/
|
|
1323
|
-
zoom
|
|
1372
|
+
set zoom(value) { this._zoom.set(value); }
|
|
1373
|
+
get zoom() { return this._zoom(); }
|
|
1324
1374
|
/**
|
|
1325
1375
|
* Determines whether users can change the map zoom level.
|
|
1326
1376
|
*
|
|
1327
1377
|
* @default true
|
|
1328
1378
|
*/
|
|
1329
|
-
zoomable;
|
|
1379
|
+
set zoomable(value) { this._zoomable.set(value); }
|
|
1380
|
+
get zoomable() { return this._zoomable(); }
|
|
1330
1381
|
/**
|
|
1331
1382
|
* Fires immediately before the map resets. This event is typically used for cleanup by layer implementers.
|
|
1332
1383
|
*/
|
|
@@ -1420,6 +1471,62 @@ class MapComponent {
|
|
|
1420
1471
|
optionsChange;
|
|
1421
1472
|
domSubscriptions;
|
|
1422
1473
|
iconSettings;
|
|
1474
|
+
_resizeRateLimit = signal(10, ...(ngDevMode ? [{ debugName: "_resizeRateLimit" }] : /* istanbul ignore next */ []));
|
|
1475
|
+
_center = signal(undefined, ...(ngDevMode ? [{ debugName: "_center" }] : /* istanbul ignore next */ []));
|
|
1476
|
+
_controls = signal(undefined, ...(ngDevMode ? [{ debugName: "_controls" }] : /* istanbul ignore next */ []));
|
|
1477
|
+
_minZoom = signal(undefined, ...(ngDevMode ? [{ debugName: "_minZoom" }] : /* istanbul ignore next */ []));
|
|
1478
|
+
_maxZoom = signal(undefined, ...(ngDevMode ? [{ debugName: "_maxZoom" }] : /* istanbul ignore next */ []));
|
|
1479
|
+
_minSize = signal(undefined, ...(ngDevMode ? [{ debugName: "_minSize" }] : /* istanbul ignore next */ []));
|
|
1480
|
+
_pannable = signal(undefined, ...(ngDevMode ? [{ debugName: "_pannable" }] : /* istanbul ignore next */ []));
|
|
1481
|
+
_popupSettings = signal(undefined, ...(ngDevMode ? [{ debugName: "_popupSettings" }] : /* istanbul ignore next */ []));
|
|
1482
|
+
_wraparound = signal(undefined, ...(ngDevMode ? [{ debugName: "_wraparound" }] : /* istanbul ignore next */ []));
|
|
1483
|
+
_zoom = signal(3, ...(ngDevMode ? [{ debugName: "_zoom" }] : /* istanbul ignore next */ []));
|
|
1484
|
+
_zoomable = signal(undefined, ...(ngDevMode ? [{ debugName: "_zoomable" }] : /* istanbul ignore next */ []));
|
|
1485
|
+
_configInputs = computed(() => ({
|
|
1486
|
+
controls: this._controls(),
|
|
1487
|
+
minZoom: this._minZoom(),
|
|
1488
|
+
maxZoom: this._maxZoom(),
|
|
1489
|
+
minSize: this._minSize(),
|
|
1490
|
+
pannable: this._pannable(),
|
|
1491
|
+
wraparound: this._wraparound(),
|
|
1492
|
+
zoomable: this._zoomable()
|
|
1493
|
+
}), ...(ngDevMode ? [{ debugName: "_configInputs" }] : /* istanbul ignore next */ []));
|
|
1494
|
+
configEffect = effect(() => {
|
|
1495
|
+
const inputs = this._configInputs();
|
|
1496
|
+
const store = this.configurationService.store;
|
|
1497
|
+
for (const key of Object.keys(inputs)) {
|
|
1498
|
+
if (inputs[key] === undefined) {
|
|
1499
|
+
delete store[key];
|
|
1500
|
+
}
|
|
1501
|
+
else {
|
|
1502
|
+
store[key] = inputs[key];
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
const zoom = untracked(() => this._zoom());
|
|
1506
|
+
if (zoom !== undefined) {
|
|
1507
|
+
store.zoom = zoom;
|
|
1508
|
+
}
|
|
1509
|
+
const center = untracked(() => this._center());
|
|
1510
|
+
if (center !== undefined) {
|
|
1511
|
+
store.center = center;
|
|
1512
|
+
}
|
|
1513
|
+
store.popupSettings = null;
|
|
1514
|
+
this.configurationService.push(store);
|
|
1515
|
+
}, ...(ngDevMode ? [{ debugName: "configEffect" }] : /* istanbul ignore next */ []));
|
|
1516
|
+
// Update the live instance directly when zoom changes (avoids a full setOptions/reset).
|
|
1517
|
+
zoomEffect = effect(() => {
|
|
1518
|
+
const zoom = this._zoom();
|
|
1519
|
+
if (this.instance) {
|
|
1520
|
+
this.instance.zoom(zoom);
|
|
1521
|
+
}
|
|
1522
|
+
}, ...(ngDevMode ? [{ debugName: "zoomEffect" }] : /* istanbul ignore next */ []));
|
|
1523
|
+
// Update the live instance directly when center changes (avoids a full setOptions/reset).
|
|
1524
|
+
centerEffect = effect(() => {
|
|
1525
|
+
const center = this._center();
|
|
1526
|
+
if (this.instance && center !== undefined) {
|
|
1527
|
+
this.instance.center(center);
|
|
1528
|
+
}
|
|
1529
|
+
}, ...(ngDevMode ? [{ debugName: "centerEffect" }] : /* istanbul ignore next */ []));
|
|
1423
1530
|
constructor(configurationService, instanceEventService, element, localizationService, changeDetector, ngZone, renderer, iconsService) {
|
|
1424
1531
|
this.configurationService = configurationService;
|
|
1425
1532
|
this.instanceEventService = instanceEventService;
|
|
@@ -1431,6 +1538,30 @@ class MapComponent {
|
|
|
1431
1538
|
this.iconsService = iconsService;
|
|
1432
1539
|
validatePackage(packageMetadata);
|
|
1433
1540
|
}
|
|
1541
|
+
ngOnInit() {
|
|
1542
|
+
const store = this.configurationService.store;
|
|
1543
|
+
const inputs = {
|
|
1544
|
+
controls: this._controls(),
|
|
1545
|
+
minZoom: this._minZoom(),
|
|
1546
|
+
maxZoom: this._maxZoom(),
|
|
1547
|
+
minSize: this._minSize(),
|
|
1548
|
+
pannable: this._pannable(),
|
|
1549
|
+
wraparound: this._wraparound(),
|
|
1550
|
+
zoomable: this._zoomable(),
|
|
1551
|
+
zoom: this._zoom()
|
|
1552
|
+
};
|
|
1553
|
+
for (const [key, value] of Object.entries(inputs)) {
|
|
1554
|
+
if (value !== undefined) {
|
|
1555
|
+
store[key] = value;
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
const center = this._center();
|
|
1559
|
+
if (center !== undefined) {
|
|
1560
|
+
store.center = center;
|
|
1561
|
+
}
|
|
1562
|
+
store.popupSettings = null;
|
|
1563
|
+
this.configurationService.push(store);
|
|
1564
|
+
}
|
|
1434
1565
|
ngAfterViewInit() {
|
|
1435
1566
|
if (this.canRender) {
|
|
1436
1567
|
this.ngZone.runOutsideAngular(() => {
|
|
@@ -1642,7 +1773,7 @@ class MapComponent {
|
|
|
1642
1773
|
svgIcons
|
|
1643
1774
|
}
|
|
1644
1775
|
};
|
|
1645
|
-
})
|
|
1776
|
+
}))
|
|
1646
1777
|
.subscribe(() => {
|
|
1647
1778
|
if (!this.instance) {
|
|
1648
1779
|
this.init();
|
|
@@ -1991,27 +2122,35 @@ class MarkerLayerComponent extends LayerComponent {
|
|
|
1991
2122
|
/**
|
|
1992
2123
|
* Sets the array of data items for this layer.
|
|
1993
2124
|
*/
|
|
1994
|
-
data;
|
|
2125
|
+
set data(value) { this._data.set(value); }
|
|
2126
|
+
get data() { return this._data(); }
|
|
1995
2127
|
/**
|
|
1996
2128
|
* Sets the data item field which contains the marker location.
|
|
1997
2129
|
* The field should be an array with two numbers — latitude and longitude in decimal degrees.
|
|
1998
2130
|
*/
|
|
1999
|
-
locationField;
|
|
2131
|
+
set locationField(value) { this._locationField.set(value); }
|
|
2132
|
+
get locationField() { return this._locationField(); }
|
|
2000
2133
|
/**
|
|
2001
2134
|
* Sets the data item field which contains the marker title.
|
|
2002
2135
|
*/
|
|
2003
|
-
titleField;
|
|
2136
|
+
set titleField(value) { this._titleField.set(value); }
|
|
2137
|
+
get titleField() { return this._titleField(); }
|
|
2004
2138
|
/**
|
|
2005
2139
|
* Sets the default marker shape for data-bound markers. Supported marker shapes are `pinTarget` and `pin`.
|
|
2006
2140
|
* Marker shapes are implemented as CSS classes on the marker element (`span.k-marker`). For example `pinTarget` is rendered as `k-marker-pin-target`.
|
|
2007
2141
|
*/
|
|
2008
|
-
shape;
|
|
2142
|
+
set shape(value) { this._shape.set(value); }
|
|
2143
|
+
get shape() { return this._shape(); }
|
|
2009
2144
|
constructor(configurationService, collectionService, sanitizer) {
|
|
2010
2145
|
super('marker', configurationService, collectionService, sanitizer);
|
|
2011
2146
|
this.configurationService = configurationService;
|
|
2012
2147
|
this.collectionService = collectionService;
|
|
2013
2148
|
this.sanitizer = sanitizer;
|
|
2014
2149
|
}
|
|
2150
|
+
_data = signal(undefined, ...(ngDevMode ? [{ debugName: "_data" }] : /* istanbul ignore next */ []));
|
|
2151
|
+
_shape = signal(undefined, ...(ngDevMode ? [{ debugName: "_shape" }] : /* istanbul ignore next */ []));
|
|
2152
|
+
_titleField = signal(undefined, ...(ngDevMode ? [{ debugName: "_titleField" }] : /* istanbul ignore next */ []));
|
|
2153
|
+
_locationField = signal(undefined, ...(ngDevMode ? [{ debugName: "_locationField" }] : /* istanbul ignore next */ []));
|
|
2015
2154
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: MarkerLayerComponent, deps: [{ token: ConfigurationService }, { token: CollectionService }, { token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
2016
2155
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: MarkerLayerComponent, isStandalone: true, selector: "kendo-map-marker-layer", inputs: { data: "data", locationField: "locationField", titleField: "titleField", shape: "shape" }, providers: [
|
|
2017
2156
|
ConfigurationService,
|
|
@@ -2078,17 +2217,21 @@ class ShapeLayerComponent extends LayerComponent {
|
|
|
2078
2217
|
/**
|
|
2079
2218
|
* Sets the array of data items for this layer.
|
|
2080
2219
|
*/
|
|
2081
|
-
data;
|
|
2220
|
+
set data(value) { this._data.set(value); }
|
|
2221
|
+
get data() { return this._data(); }
|
|
2082
2222
|
/**
|
|
2083
2223
|
* Sets the default style for shapes.
|
|
2084
2224
|
*/
|
|
2085
|
-
style;
|
|
2225
|
+
set style(value) { this._style.set(value); }
|
|
2226
|
+
get style() { return this._style(); }
|
|
2086
2227
|
constructor(configurationService, collectionService, sanitizer) {
|
|
2087
2228
|
super('shape', configurationService, collectionService, sanitizer);
|
|
2088
2229
|
this.configurationService = configurationService;
|
|
2089
2230
|
this.collectionService = collectionService;
|
|
2090
2231
|
this.sanitizer = sanitizer;
|
|
2091
2232
|
}
|
|
2233
|
+
_data = signal(undefined, ...(ngDevMode ? [{ debugName: "_data" }] : /* istanbul ignore next */ []));
|
|
2234
|
+
_style = signal(undefined, ...(ngDevMode ? [{ debugName: "_style" }] : /* istanbul ignore next */ []));
|
|
2092
2235
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ShapeLayerComponent, deps: [{ token: ConfigurationService }, { token: CollectionService }, { token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
2093
2236
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ShapeLayerComponent, isStandalone: true, selector: "kendo-map-shape-layer", inputs: { data: "data", style: "style" }, providers: [
|
|
2094
2237
|
ConfigurationService,
|
|
@@ -2150,22 +2293,28 @@ class TileLayerComponent extends LayerComponent {
|
|
|
2150
2293
|
*
|
|
2151
2294
|
* @default 256
|
|
2152
2295
|
*/
|
|
2153
|
-
tileSize;
|
|
2296
|
+
set tileSize(value) { this._tileSize.set(value); }
|
|
2297
|
+
get tileSize() { return this._tileSize(); }
|
|
2154
2298
|
/**
|
|
2155
2299
|
* Sets a list of subdomains to use for loading tiles.
|
|
2156
2300
|
* Alternating between different subdomains allows more requests to execute in parallel.
|
|
2157
2301
|
*/
|
|
2158
|
-
subdomains;
|
|
2302
|
+
set subdomains(value) { this._subdomains.set(value); }
|
|
2303
|
+
get subdomains() { return this._subdomains(); }
|
|
2159
2304
|
/**
|
|
2160
2305
|
* Sets a function that returns an image URL for each tile position.
|
|
2161
2306
|
*/
|
|
2162
|
-
urlTemplate;
|
|
2307
|
+
set urlTemplate(value) { this._urlTemplate.set(value); }
|
|
2308
|
+
get urlTemplate() { return this._urlTemplate(); }
|
|
2163
2309
|
constructor(configurationService, collectionService, sanitizer) {
|
|
2164
2310
|
super('tile', configurationService, collectionService, sanitizer);
|
|
2165
2311
|
this.configurationService = configurationService;
|
|
2166
2312
|
this.collectionService = collectionService;
|
|
2167
2313
|
this.sanitizer = sanitizer;
|
|
2168
2314
|
}
|
|
2315
|
+
_tileSize = signal(undefined, ...(ngDevMode ? [{ debugName: "_tileSize" }] : /* istanbul ignore next */ []));
|
|
2316
|
+
_urlTemplate = signal(undefined, ...(ngDevMode ? [{ debugName: "_urlTemplate" }] : /* istanbul ignore next */ []));
|
|
2317
|
+
_subdomains = signal(undefined, ...(ngDevMode ? [{ debugName: "_subdomains" }] : /* istanbul ignore next */ []));
|
|
2169
2318
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: TileLayerComponent, deps: [{ token: ConfigurationService }, { token: CollectionService }, { token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
2170
2319
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: TileLayerComponent, isStandalone: true, selector: "kendo-map-tile-layer", inputs: { tileSize: "tileSize", subdomains: "subdomains", urlTemplate: "urlTemplate" }, providers: [
|
|
2171
2320
|
ConfigurationService,
|
|
@@ -2387,11 +2536,12 @@ class BubbleTooltipComponent extends SettingsComponent {
|
|
|
2387
2536
|
this.templateService.registerTemplate(this.layer.index, this.bubbleTooltipTemplate?.templateRef);
|
|
2388
2537
|
}
|
|
2389
2538
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: BubbleTooltipComponent, deps: [{ token: ConfigurationService }, { token: TooltipTemplateService }, { token: LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
2390
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: BubbleTooltipComponent, isStandalone: true, selector: "kendo-map-bubble-layer-tooltip", queries: [{ propertyName: "bubbleTooltipTemplate", first: true, predicate: BubbleTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2539
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: BubbleTooltipComponent, isStandalone: true, selector: "kendo-map-bubble-layer-tooltip", queries: [{ propertyName: "bubbleTooltipTemplate", first: true, predicate: BubbleTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2391
2540
|
}
|
|
2392
2541
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: BubbleTooltipComponent, decorators: [{
|
|
2393
2542
|
type: Component,
|
|
2394
2543
|
args: [{
|
|
2544
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2395
2545
|
selector: 'kendo-map-bubble-layer-tooltip',
|
|
2396
2546
|
template: '',
|
|
2397
2547
|
standalone: true
|
|
@@ -2442,11 +2592,12 @@ class MarkerTooltipComponent extends SettingsComponent {
|
|
|
2442
2592
|
this.templateService.registerTemplate(this.layer.index, this.markerTooltipTemplate?.templateRef);
|
|
2443
2593
|
}
|
|
2444
2594
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: MarkerTooltipComponent, deps: [{ token: ConfigurationService }, { token: TooltipTemplateService }, { token: LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
2445
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: MarkerTooltipComponent, isStandalone: true, selector: "kendo-map-marker-layer-tooltip", queries: [{ propertyName: "markerTooltipTemplate", first: true, predicate: MarkerTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2595
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: MarkerTooltipComponent, isStandalone: true, selector: "kendo-map-marker-layer-tooltip", queries: [{ propertyName: "markerTooltipTemplate", first: true, predicate: MarkerTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2446
2596
|
}
|
|
2447
2597
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: MarkerTooltipComponent, decorators: [{
|
|
2448
2598
|
type: Component,
|
|
2449
2599
|
args: [{
|
|
2600
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2450
2601
|
selector: 'kendo-map-marker-layer-tooltip',
|
|
2451
2602
|
template: '',
|
|
2452
2603
|
standalone: true
|
|
@@ -2497,11 +2648,12 @@ class ShapeTooltipComponent extends SettingsComponent {
|
|
|
2497
2648
|
this.templateService.registerTemplate(this.layer.index, this.shapeTooltipTemplate?.templateRef);
|
|
2498
2649
|
}
|
|
2499
2650
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ShapeTooltipComponent, deps: [{ token: ConfigurationService }, { token: TooltipTemplateService }, { token: LayerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
|
2500
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ShapeTooltipComponent, isStandalone: true, selector: "kendo-map-shape-layer-tooltip", queries: [{ propertyName: "shapeTooltipTemplate", first: true, predicate: ShapeTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
2651
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.23", type: ShapeTooltipComponent, isStandalone: true, selector: "kendo-map-shape-layer-tooltip", queries: [{ propertyName: "shapeTooltipTemplate", first: true, predicate: ShapeTooltipTemplateDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2501
2652
|
}
|
|
2502
2653
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.23", ngImport: i0, type: ShapeTooltipComponent, decorators: [{
|
|
2503
2654
|
type: Component,
|
|
2504
2655
|
args: [{
|
|
2656
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2505
2657
|
selector: 'kendo-map-shape-layer-tooltip',
|
|
2506
2658
|
template: '',
|
|
2507
2659
|
standalone: true
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.
|
|
10
|
+
"publishDate": 1791873255,
|
|
11
|
+
"version": "25.4.0-develop.1",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-map",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.4.0-develop.1",
|
|
4
4
|
"description": "Kendo UI Map for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"package": {
|
|
23
23
|
"productName": "Kendo UI for Angular",
|
|
24
24
|
"productCode": "KENDOUIANGULAR",
|
|
25
|
-
"publishDate":
|
|
25
|
+
"publishDate": 1791873255,
|
|
26
26
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"@angular/platform-browser": "20 - 22",
|
|
34
34
|
"@progress/kendo-drawing": "^1.25.0",
|
|
35
35
|
"@progress/kendo-licensing": "^1.11.0",
|
|
36
|
-
"@progress/kendo-angular-common": "25.
|
|
37
|
-
"@progress/kendo-angular-icons": "25.
|
|
38
|
-
"@progress/kendo-angular-l10n": "25.
|
|
39
|
-
"@progress/kendo-angular-popup": "25.
|
|
36
|
+
"@progress/kendo-angular-common": "25.4.0-develop.1",
|
|
37
|
+
"@progress/kendo-angular-icons": "25.4.0-develop.1",
|
|
38
|
+
"@progress/kendo-angular-l10n": "25.4.0-develop.1",
|
|
39
|
+
"@progress/kendo-angular-popup": "25.4.0-develop.1",
|
|
40
40
|
"rxjs": "^6.4.0 || ^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"tslib": "^2.3.1",
|
|
44
|
-
"@progress/kendo-angular-schematics": "25.
|
|
44
|
+
"@progress/kendo-angular-schematics": "25.4.0-develop.1",
|
|
45
45
|
"@progress/kendo-charts": "2.13.2"
|
|
46
46
|
},
|
|
47
47
|
"schematics": "./schematics/collection.json",
|
|
@@ -15,7 +15,7 @@ function default_1(options) {
|
|
|
15
15
|
// Additional dependencies to install.
|
|
16
16
|
// See https://github.com/telerik/kendo-schematics/issues/28
|
|
17
17
|
peerDependencies: {
|
|
18
|
-
// '@progress/kendo-angular-foo': '25.
|
|
18
|
+
// '@progress/kendo-angular-foo': '25.4.0-develop.1'
|
|
19
19
|
} });
|
|
20
20
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
21
21
|
}
|
|
@@ -8,7 +8,7 @@ export { BubbleLayerSymbol, BubbleLayerSymbolArgs, Extent, Location, MapControls
|
|
|
8
8
|
import { ShapeOptions, Element, Group, geometry } from '@progress/kendo-drawing';
|
|
9
9
|
import { Observable, BehaviorSubject, Subscription } from 'rxjs';
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
|
-
import { NgZone, OnChanges, OnDestroy, SimpleChange, TemplateRef, ViewContainerRef, EventEmitter, AfterViewInit, AfterViewChecked, ElementRef, ChangeDetectorRef, Renderer2, AfterContentChecked, AfterContentInit, QueryList } from '@angular/core';
|
|
11
|
+
import { NgZone, OnChanges, OnDestroy, SimpleChange, TemplateRef, ViewContainerRef, EventEmitter, AfterViewInit, AfterViewChecked, OnInit, ElementRef, ChangeDetectorRef, Renderer2, AfterContentChecked, AfterContentInit, QueryList } from '@angular/core';
|
|
12
12
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
13
13
|
import { PopupService, PopupSettings as PopupSettings$1 } from '@progress/kendo-angular-popup';
|
|
14
14
|
import { IconsService, IconSettings } from '@progress/kendo-angular-icons';
|
|
@@ -146,7 +146,7 @@ declare class LayerTooltipComponent extends SettingsComponent {
|
|
|
146
146
|
/**
|
|
147
147
|
* @hidden
|
|
148
148
|
*/
|
|
149
|
-
declare class LayerComponent extends CollectionItemComponent {
|
|
149
|
+
declare class LayerComponent extends CollectionItemComponent implements OnChanges {
|
|
150
150
|
protected type: MapLayerType;
|
|
151
151
|
protected configurationService: ConfigurationService;
|
|
152
152
|
protected collectionService: CollectionService;
|
|
@@ -154,29 +154,41 @@ declare class LayerComponent extends CollectionItemComponent {
|
|
|
154
154
|
/**
|
|
155
155
|
* @hidden
|
|
156
156
|
*/
|
|
157
|
-
attribution: string;
|
|
157
|
+
set attribution(value: string);
|
|
158
|
+
get attribution(): string;
|
|
158
159
|
/**
|
|
159
160
|
* @hidden
|
|
160
161
|
*/
|
|
161
|
-
extent
|
|
162
|
+
set extent(value: Extent | [[number, number], [number, number]] | undefined);
|
|
163
|
+
get extent(): Extent | [[number, number], [number, number]] | undefined;
|
|
162
164
|
/**
|
|
163
165
|
* @hidden
|
|
164
166
|
*/
|
|
165
|
-
maxZoom
|
|
167
|
+
set maxZoom(value: number | undefined);
|
|
168
|
+
get maxZoom(): number | undefined;
|
|
166
169
|
/**
|
|
167
170
|
* @hidden
|
|
168
171
|
*/
|
|
169
|
-
minZoom
|
|
172
|
+
set minZoom(value: number | undefined);
|
|
173
|
+
get minZoom(): number | undefined;
|
|
170
174
|
/**
|
|
171
175
|
* @hidden
|
|
172
176
|
*/
|
|
173
|
-
opacity
|
|
177
|
+
set opacity(value: number | undefined);
|
|
178
|
+
get opacity(): number | undefined;
|
|
174
179
|
/**
|
|
175
180
|
* @hidden
|
|
176
181
|
*/
|
|
177
|
-
zIndex: number;
|
|
182
|
+
set zIndex(value: number);
|
|
183
|
+
get zIndex(): number;
|
|
178
184
|
layerTooltip: LayerTooltipComponent;
|
|
179
185
|
constructor(type: MapLayerType, configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
186
|
+
private readonly _attribution;
|
|
187
|
+
private readonly _zIndex;
|
|
188
|
+
private readonly _opacity;
|
|
189
|
+
private readonly _minZoom;
|
|
190
|
+
private readonly _maxZoom;
|
|
191
|
+
private readonly _extent;
|
|
180
192
|
ngOnChanges(changes: {
|
|
181
193
|
[propertyName: string]: SimpleChange;
|
|
182
194
|
}): void;
|
|
@@ -221,38 +233,52 @@ declare class BubbleLayerComponent extends LayerComponent implements BubbleLayer
|
|
|
221
233
|
/**
|
|
222
234
|
* Sets the array of data items for this layer.
|
|
223
235
|
*/
|
|
224
|
-
data
|
|
236
|
+
set data(value: any[] | undefined);
|
|
237
|
+
get data(): any[] | undefined;
|
|
225
238
|
/**
|
|
226
239
|
* Sets the data item field which contains the symbol location.
|
|
227
240
|
* The field should be an array with two numbers — latitude and longitude in decimal degrees.
|
|
228
241
|
*/
|
|
229
|
-
locationField
|
|
242
|
+
set locationField(value: string | undefined);
|
|
243
|
+
get locationField(): string | undefined;
|
|
230
244
|
/**
|
|
231
245
|
* Sets the value field for the symbols used to determine their relative size.
|
|
232
246
|
* The data item field should be a number.
|
|
233
247
|
*/
|
|
234
|
-
valueField
|
|
248
|
+
set valueField(value: string | undefined);
|
|
249
|
+
get valueField(): string | undefined;
|
|
235
250
|
/**
|
|
236
251
|
* Sets the symbol to use for bubble layers.
|
|
237
252
|
*/
|
|
238
|
-
symbol
|
|
253
|
+
set symbol(value: BubbleLayerSymbol | undefined);
|
|
254
|
+
get symbol(): BubbleLayerSymbol | undefined;
|
|
239
255
|
/**
|
|
240
256
|
* Sets the default style for symbols.
|
|
241
257
|
*/
|
|
242
|
-
style
|
|
258
|
+
set style(value: ShapeOptions | undefined);
|
|
259
|
+
get style(): ShapeOptions | undefined;
|
|
243
260
|
/**
|
|
244
261
|
* Sets the maximum symbol size for bubble layer symbols.
|
|
245
262
|
*
|
|
246
263
|
* @default 100
|
|
247
264
|
*/
|
|
248
|
-
maxSize
|
|
265
|
+
set maxSize(value: number | undefined);
|
|
266
|
+
get maxSize(): number | undefined;
|
|
249
267
|
/**
|
|
250
268
|
* Sets the minimum symbol size for bubble layer symbols.
|
|
251
269
|
* Setting a non-zero value will distort the symbol area to value ratio.
|
|
252
270
|
*
|
|
253
271
|
* @default 0
|
|
254
272
|
*/
|
|
255
|
-
minSize
|
|
273
|
+
set minSize(value: number | undefined);
|
|
274
|
+
get minSize(): number | undefined;
|
|
275
|
+
private readonly _minSize;
|
|
276
|
+
private readonly _valueField;
|
|
277
|
+
private readonly _maxSize;
|
|
278
|
+
private readonly _style;
|
|
279
|
+
private readonly _symbol;
|
|
280
|
+
private readonly _locationField;
|
|
281
|
+
private readonly _data;
|
|
256
282
|
constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
257
283
|
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleLayerComponent, never>;
|
|
258
284
|
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleLayerComponent, "kendo-map-bubble-layer", never, { "data": { "alias": "data"; "required": false; }; "locationField": { "alias": "locationField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "symbol": { "alias": "symbol"; "required": false; }; "style": { "alias": "style"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -640,12 +666,15 @@ interface PopupSettings {
|
|
|
640
666
|
declare abstract class BaseTooltip implements OnDestroy {
|
|
641
667
|
protected popupService: PopupService;
|
|
642
668
|
protected localizationService: LocalizationService;
|
|
643
|
-
animate: boolean;
|
|
669
|
+
get animate(): boolean;
|
|
644
670
|
style: any;
|
|
645
671
|
templateRef: TemplateRef<any>;
|
|
646
672
|
popupRef: any;
|
|
647
|
-
popupSettings: PopupSettings;
|
|
673
|
+
set popupSettings(value: PopupSettings);
|
|
674
|
+
get popupSettings(): PopupSettings;
|
|
648
675
|
constructor(popupService: PopupService, localizationService: LocalizationService);
|
|
676
|
+
private readonly _popupSettings;
|
|
677
|
+
private readonly _animateSignal;
|
|
649
678
|
get active(): boolean;
|
|
650
679
|
show(e: any): void;
|
|
651
680
|
hide(): void;
|
|
@@ -676,13 +705,22 @@ declare class TooltipPopupComponent extends BaseTooltip {
|
|
|
676
705
|
protected templateService: TooltipTemplateService;
|
|
677
706
|
protected localizationService: LocalizationService;
|
|
678
707
|
protected ngZone: NgZone;
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
classNames: any;
|
|
683
|
-
wrapperClass: string;
|
|
708
|
+
set animate(value: boolean);
|
|
709
|
+
get animate(): boolean;
|
|
710
|
+
set classNames(value: any);
|
|
711
|
+
get classNames(): any;
|
|
712
|
+
set wrapperClass(value: string);
|
|
713
|
+
get wrapperClass(): string;
|
|
684
714
|
leave: EventEmitter<any>;
|
|
685
|
-
|
|
715
|
+
get tooltipTemplateRef(): TemplateRef<any>;
|
|
716
|
+
get tooltipContext(): any;
|
|
717
|
+
get popupClasses(): any;
|
|
718
|
+
private readonly _animate;
|
|
719
|
+
private readonly _classNames;
|
|
720
|
+
private readonly _wrapperClass;
|
|
721
|
+
private readonly _tooltipTemplateRef;
|
|
722
|
+
private readonly _tooltipContext;
|
|
723
|
+
private readonly _popupClasses;
|
|
686
724
|
private mouseleaveSubscription;
|
|
687
725
|
constructor(popupService: PopupService, templateService: TooltipTemplateService, localizationService: LocalizationService, ngZone: NgZone);
|
|
688
726
|
show(e: any): void;
|
|
@@ -737,7 +775,7 @@ declare class TooltipPopupComponent extends BaseTooltip {
|
|
|
737
775
|
* @remarks
|
|
738
776
|
* Supported children components are: {@link LayersComponent}.
|
|
739
777
|
*/
|
|
740
|
-
declare class MapComponent implements AfterViewInit, AfterViewChecked,
|
|
778
|
+
declare class MapComponent implements AfterViewInit, AfterViewChecked, OnInit, OnDestroy {
|
|
741
779
|
configurationService: ConfigurationService;
|
|
742
780
|
protected instanceEventService: InstanceEventService;
|
|
743
781
|
protected element: ElementRef;
|
|
@@ -766,50 +804,59 @@ declare class MapComponent implements AfterViewInit, AfterViewChecked, OnChanges
|
|
|
766
804
|
* }
|
|
767
805
|
* ```
|
|
768
806
|
*/
|
|
769
|
-
resizeRateLimit: number;
|
|
807
|
+
set resizeRateLimit(value: number);
|
|
808
|
+
get resizeRateLimit(): number;
|
|
770
809
|
/**
|
|
771
810
|
* Specifies the map center coordinates.
|
|
772
811
|
* Provide coordinates as `[Latitude, Longitude]`.
|
|
773
812
|
*/
|
|
774
|
-
center: number[];
|
|
813
|
+
set center(value: number[]);
|
|
814
|
+
get center(): number[];
|
|
775
815
|
/**
|
|
776
816
|
* Specifies the configuration for built-in map controls.
|
|
777
817
|
*/
|
|
778
|
-
controls: MapControls;
|
|
818
|
+
set controls(value: MapControls);
|
|
819
|
+
get controls(): MapControls;
|
|
779
820
|
/**
|
|
780
821
|
* The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
|
|
781
822
|
*
|
|
782
823
|
* @default 1
|
|
783
824
|
*/
|
|
784
|
-
minZoom: number;
|
|
825
|
+
set minZoom(value: number);
|
|
826
|
+
get minZoom(): number;
|
|
785
827
|
/**
|
|
786
828
|
* The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
|
|
787
829
|
*
|
|
788
830
|
* @default 19
|
|
789
831
|
*/
|
|
790
|
-
maxZoom: number;
|
|
832
|
+
set maxZoom(value: number);
|
|
833
|
+
get maxZoom(): number;
|
|
791
834
|
/**
|
|
792
835
|
* The size of the map in pixels at zoom level 0.
|
|
793
836
|
*
|
|
794
837
|
* @default 256
|
|
795
838
|
*/
|
|
796
|
-
minSize
|
|
839
|
+
set minSize(value: number | undefined);
|
|
840
|
+
get minSize(): number | undefined;
|
|
797
841
|
/**
|
|
798
842
|
* Controls whether the user can pan the map.
|
|
799
843
|
*
|
|
800
844
|
* @default true
|
|
801
845
|
*/
|
|
802
|
-
pannable: boolean;
|
|
846
|
+
set pannable(value: boolean);
|
|
847
|
+
get pannable(): boolean;
|
|
803
848
|
/**
|
|
804
849
|
* The settings for the tooltip popup.
|
|
805
850
|
*/
|
|
806
|
-
popupSettings: PopupSettings$1;
|
|
851
|
+
set popupSettings(value: PopupSettings$1);
|
|
852
|
+
get popupSettings(): PopupSettings$1;
|
|
807
853
|
/**
|
|
808
854
|
* Specifies whether the map should wrap around the east-west edges.
|
|
809
855
|
*
|
|
810
856
|
* @default true
|
|
811
857
|
*/
|
|
812
|
-
wraparound: boolean;
|
|
858
|
+
set wraparound(value: boolean);
|
|
859
|
+
get wraparound(): boolean;
|
|
813
860
|
/**
|
|
814
861
|
* Specifies the initial zoom level.
|
|
815
862
|
* Use values from 0 (whole world) to 19 (sub-meter features).
|
|
@@ -818,13 +865,15 @@ declare class MapComponent implements AfterViewInit, AfterViewChecked, OnChanges
|
|
|
818
865
|
*
|
|
819
866
|
* @default 3
|
|
820
867
|
*/
|
|
821
|
-
zoom: number;
|
|
868
|
+
set zoom(value: number);
|
|
869
|
+
get zoom(): number;
|
|
822
870
|
/**
|
|
823
871
|
* Determines whether users can change the map zoom level.
|
|
824
872
|
*
|
|
825
873
|
* @default true
|
|
826
874
|
*/
|
|
827
|
-
zoomable: boolean;
|
|
875
|
+
set zoomable(value: boolean);
|
|
876
|
+
get zoomable(): boolean;
|
|
828
877
|
/**
|
|
829
878
|
* Fires immediately before the map resets. This event is typically used for cleanup by layer implementers.
|
|
830
879
|
*/
|
|
@@ -918,7 +967,23 @@ declare class MapComponent implements AfterViewInit, AfterViewChecked, OnChanges
|
|
|
918
967
|
protected optionsChange: Subscription;
|
|
919
968
|
protected domSubscriptions: () => void;
|
|
920
969
|
protected iconSettings: IconSettings;
|
|
970
|
+
private readonly _resizeRateLimit;
|
|
971
|
+
private readonly _center;
|
|
972
|
+
private readonly _controls;
|
|
973
|
+
private readonly _minZoom;
|
|
974
|
+
private readonly _maxZoom;
|
|
975
|
+
private readonly _minSize;
|
|
976
|
+
private readonly _pannable;
|
|
977
|
+
private readonly _popupSettings;
|
|
978
|
+
private readonly _wraparound;
|
|
979
|
+
private readonly _zoom;
|
|
980
|
+
private readonly _zoomable;
|
|
981
|
+
private readonly _configInputs;
|
|
982
|
+
private readonly configEffect;
|
|
983
|
+
private readonly zoomEffect;
|
|
984
|
+
private readonly centerEffect;
|
|
921
985
|
constructor(configurationService: ConfigurationService, instanceEventService: InstanceEventService, element: ElementRef, localizationService: LocalizationService, changeDetector: ChangeDetectorRef, ngZone: NgZone, renderer: Renderer2, iconsService: IconsService);
|
|
986
|
+
ngOnInit(): void;
|
|
922
987
|
ngAfterViewInit(): void;
|
|
923
988
|
ngAfterViewChecked(): void;
|
|
924
989
|
ngOnChanges(changes: {
|
|
@@ -1213,22 +1278,30 @@ declare class MarkerLayerComponent extends LayerComponent implements MarkerLayer
|
|
|
1213
1278
|
/**
|
|
1214
1279
|
* Sets the array of data items for this layer.
|
|
1215
1280
|
*/
|
|
1216
|
-
data
|
|
1281
|
+
set data(value: any[] | undefined);
|
|
1282
|
+
get data(): any[] | undefined;
|
|
1217
1283
|
/**
|
|
1218
1284
|
* Sets the data item field which contains the marker location.
|
|
1219
1285
|
* The field should be an array with two numbers — latitude and longitude in decimal degrees.
|
|
1220
1286
|
*/
|
|
1221
|
-
locationField
|
|
1287
|
+
set locationField(value: string | undefined);
|
|
1288
|
+
get locationField(): string | undefined;
|
|
1222
1289
|
/**
|
|
1223
1290
|
* Sets the data item field which contains the marker title.
|
|
1224
1291
|
*/
|
|
1225
|
-
titleField
|
|
1292
|
+
set titleField(value: string | undefined);
|
|
1293
|
+
get titleField(): string | undefined;
|
|
1226
1294
|
/**
|
|
1227
1295
|
* Sets the default marker shape for data-bound markers. Supported marker shapes are `pinTarget` and `pin`.
|
|
1228
1296
|
* Marker shapes are implemented as CSS classes on the marker element (`span.k-marker`). For example `pinTarget` is rendered as `k-marker-pin-target`.
|
|
1229
1297
|
*/
|
|
1230
|
-
shape
|
|
1298
|
+
set shape(value: string | 'pinTarget' | 'pin' | undefined);
|
|
1299
|
+
get shape(): string | 'pinTarget' | 'pin' | undefined;
|
|
1231
1300
|
constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
1301
|
+
private readonly _data;
|
|
1302
|
+
private readonly _shape;
|
|
1303
|
+
private readonly _titleField;
|
|
1304
|
+
private readonly _locationField;
|
|
1232
1305
|
static ɵfac: i0.ɵɵFactoryDeclaration<MarkerLayerComponent, never>;
|
|
1233
1306
|
static ɵcmp: i0.ɵɵComponentDeclaration<MarkerLayerComponent, "kendo-map-marker-layer", never, { "data": { "alias": "data"; "required": false; }; "locationField": { "alias": "locationField"; "required": false; }; "titleField": { "alias": "titleField"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; }, {}, never, never, true, never>;
|
|
1234
1307
|
}
|
|
@@ -1340,12 +1413,16 @@ declare class ShapeLayerComponent extends LayerComponent implements ShapeLayerOp
|
|
|
1340
1413
|
/**
|
|
1341
1414
|
* Sets the array of data items for this layer.
|
|
1342
1415
|
*/
|
|
1343
|
-
data
|
|
1416
|
+
set data(value: any | undefined);
|
|
1417
|
+
get data(): any | undefined;
|
|
1344
1418
|
/**
|
|
1345
1419
|
* Sets the default style for shapes.
|
|
1346
1420
|
*/
|
|
1347
|
-
style
|
|
1421
|
+
set style(value: ShapeOptions | undefined);
|
|
1422
|
+
get style(): ShapeOptions | undefined;
|
|
1348
1423
|
constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
1424
|
+
private readonly _data;
|
|
1425
|
+
private readonly _style;
|
|
1349
1426
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShapeLayerComponent, never>;
|
|
1350
1427
|
static ɵcmp: i0.ɵɵComponentDeclaration<ShapeLayerComponent, "kendo-map-shape-layer", never, { "data": { "alias": "data"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, {}, never, never, true, never>;
|
|
1351
1428
|
}
|
|
@@ -1456,17 +1533,23 @@ declare class TileLayerComponent extends LayerComponent implements TileLayerOpti
|
|
|
1456
1533
|
*
|
|
1457
1534
|
* @default 256
|
|
1458
1535
|
*/
|
|
1459
|
-
tileSize: number;
|
|
1536
|
+
set tileSize(value: number);
|
|
1537
|
+
get tileSize(): number;
|
|
1460
1538
|
/**
|
|
1461
1539
|
* Sets a list of subdomains to use for loading tiles.
|
|
1462
1540
|
* Alternating between different subdomains allows more requests to execute in parallel.
|
|
1463
1541
|
*/
|
|
1464
|
-
subdomains: string[];
|
|
1542
|
+
set subdomains(value: string[]);
|
|
1543
|
+
get subdomains(): string[];
|
|
1465
1544
|
/**
|
|
1466
1545
|
* Sets a function that returns an image URL for each tile position.
|
|
1467
1546
|
*/
|
|
1468
|
-
urlTemplate: (args: TileUrlTemplateArgs) => string;
|
|
1547
|
+
set urlTemplate(value: (args: TileUrlTemplateArgs) => string);
|
|
1548
|
+
get urlTemplate(): (args: TileUrlTemplateArgs) => string;
|
|
1469
1549
|
constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
1550
|
+
private readonly _tileSize;
|
|
1551
|
+
private readonly _urlTemplate;
|
|
1552
|
+
private readonly _subdomains;
|
|
1470
1553
|
static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerComponent, never>;
|
|
1471
1554
|
static ɵcmp: i0.ɵɵComponentDeclaration<TileLayerComponent, "kendo-map-tile-layer", never, { "tileSize": { "alias": "tileSize"; "required": false; }; "subdomains": { "alias": "subdomains"; "required": false; }; "urlTemplate": { "alias": "urlTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
1472
1555
|
}
|