@progress/kendo-angular-map 17.0.0-develop.21 → 17.0.0-develop.22
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/common/collection.component.d.ts +1 -1
- package/{esm2020 → esm2022}/common/collection-item.component.mjs +8 -5
- package/{esm2020 → esm2022}/common/collection.component.mjs +15 -6
- package/{esm2020 → esm2022}/common/collection.service.mjs +7 -3
- package/{esm2020 → esm2022}/common/configuration.service.mjs +9 -5
- package/{esm2020 → esm2022}/common/map-instance-observer.mjs +8 -8
- package/{esm2020 → esm2022}/common/settings.component.mjs +6 -4
- package/{esm2020 → esm2022}/events/base-event.mjs +7 -3
- package/{esm2020 → esm2022}/events/map-click-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/marker-activate-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/marker-click-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/marker-created-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/pan-end-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/pan-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/preventable-event.mjs +4 -7
- package/{esm2020 → esm2022}/events/shape-click-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/shape-created-event.mjs +16 -0
- package/{esm2020 → esm2022}/events/shape-feature-created-event.mjs +16 -0
- package/{esm2020 → esm2022}/events/shape-mouse-enter-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/shape-mouse-leave-event.mjs +12 -0
- package/{esm2020 → esm2022}/events/zoom-end-event.mjs +4 -0
- package/{esm2020 → esm2022}/events/zoom-start-event.mjs +4 -0
- package/{esm2020 → esm2022}/map/bubble-layer.component.mjs +48 -9
- package/{esm2020 → esm2022}/map/layer/tooltip.component.mjs +5 -3
- package/{esm2020 → esm2022}/map/layer.component.mjs +32 -3
- package/{esm2020 → esm2022}/map/layers.component.mjs +6 -9
- package/{esm2020 → esm2022}/map/marker-layer.component.mjs +32 -9
- package/{esm2020 → esm2022}/map/shape-layer.component.mjs +20 -9
- package/{esm2020 → esm2022}/map/tile-layer.component.mjs +28 -9
- package/{esm2020 → esm2022}/map.component.mjs +198 -132
- package/{esm2020 → esm2022}/map.module.mjs +4 -4
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/tooltip/base-tooltip.mjs +19 -10
- package/{esm2020 → esm2022}/tooltip/bubble-tooltip-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tooltip/bubble-tooltip.component.mjs +7 -3
- package/{esm2020 → esm2022}/tooltip/marker-tooltip-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tooltip/marker-tooltip.component.mjs +7 -3
- package/{esm2020 → esm2022}/tooltip/shape-tooltip-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tooltip/shape-tooltip.component.mjs +7 -3
- package/{esm2020 → esm2022}/tooltip/tooltip-popup.component.mjs +21 -19
- package/{esm2020 → esm2022}/tooltip/tooltip-template.service.mjs +4 -6
- package/{fesm2020 → fesm2022}/progress-kendo-angular-map.mjs +645 -279
- package/map/bubble-layer.component.d.ts +1 -1
- package/map/layer.component.d.ts +1 -1
- package/map/layers.component.d.ts +2 -4
- package/map/marker-layer.component.d.ts +1 -1
- package/map/shape-layer.component.d.ts +1 -1
- package/map/tile-layer.component.d.ts +1 -1
- package/map.component.d.ts +1 -1
- package/package.json +14 -20
- package/schematics/ngAdd/index.js +1 -1
- package/tooltip/base-tooltip.d.ts +3 -3
- package/tooltip/tooltip-popup.component.d.ts +1 -4
- package/fesm2015/progress-kendo-angular-map.mjs +0 -1958
- /package/{esm2020 → esm2022}/common/copy-changes.mjs +0 -0
- /package/{esm2020 → esm2022}/common/has-parent.mjs +0 -0
- /package/{esm2020 → esm2022}/common/to-simple-changes.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/events/before-reset-event.mjs +0 -0
- /package/{esm2020 → esm2022}/events/instance-event.service.mjs +0 -0
- /package/{esm2020 → esm2022}/events/reset-event.mjs +0 -0
- /package/{esm2020 → esm2022}/events.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-map.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/body-factory.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/popup-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip.mjs +0 -0
|
@@ -23,5 +23,5 @@ export declare abstract class CollectionComponent implements AfterContentInit, O
|
|
|
23
23
|
private readItems;
|
|
24
24
|
private change;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollectionComponent, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CollectionComponent, never, never, {}, {},
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CollectionComponent, never, never, {}, {}, ["children"], never, false, never>;
|
|
27
27
|
}
|
|
@@ -14,11 +14,14 @@ import * as i2 from "./collection.service";
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
export class CollectionItemComponent {
|
|
17
|
+
configurationService;
|
|
18
|
+
collectionService;
|
|
19
|
+
subscription;
|
|
20
|
+
index = -1;
|
|
21
|
+
options = {};
|
|
17
22
|
constructor(configurationService, collectionService) {
|
|
18
23
|
this.configurationService = configurationService;
|
|
19
24
|
this.collectionService = collectionService;
|
|
20
|
-
this.index = -1;
|
|
21
|
-
this.options = {};
|
|
22
25
|
this.subscription = configurationService.changes.subscribe(store => {
|
|
23
26
|
this.options = store;
|
|
24
27
|
this.notify();
|
|
@@ -53,9 +56,9 @@ export class CollectionItemComponent {
|
|
|
53
56
|
}
|
|
54
57
|
this.collectionService.notify(new ItemChange(this, this.options));
|
|
55
58
|
}
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CollectionItemComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
60
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CollectionItemComponent, usesOnChanges: true, ngImport: i0 });
|
|
56
61
|
}
|
|
57
|
-
|
|
58
|
-
CollectionItemComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CollectionItemComponent, usesOnChanges: true, ngImport: i0 });
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CollectionItemComponent, decorators: [{
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CollectionItemComponent, decorators: [{
|
|
60
63
|
type: Directive
|
|
61
64
|
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }]; } });
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive } from '@angular/core';
|
|
5
|
+
import { ContentChildren, Directive, QueryList } from '@angular/core';
|
|
6
6
|
import { ConfigurationService } from './configuration.service';
|
|
7
7
|
import { Change } from './configuration.service';
|
|
8
8
|
import { CollectionService } from './collection.service';
|
|
9
|
+
import { LayerComponent } from '../map/layer.component';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "./configuration.service";
|
|
11
12
|
import * as i2 from "./collection.service";
|
|
@@ -13,11 +14,16 @@ import * as i2 from "./collection.service";
|
|
|
13
14
|
* @hidden
|
|
14
15
|
*/
|
|
15
16
|
export class CollectionComponent {
|
|
17
|
+
configKey;
|
|
18
|
+
configurationService;
|
|
19
|
+
collectionService;
|
|
20
|
+
children;
|
|
21
|
+
subscription;
|
|
22
|
+
items = [];
|
|
16
23
|
constructor(configKey, configurationService, collectionService) {
|
|
17
24
|
this.configKey = configKey;
|
|
18
25
|
this.configurationService = configurationService;
|
|
19
26
|
this.collectionService = collectionService;
|
|
20
|
-
this.items = [];
|
|
21
27
|
this.subscription = collectionService.itemChanges.subscribe(changes => this.processChanges(changes));
|
|
22
28
|
}
|
|
23
29
|
ngOnDestroy() {
|
|
@@ -49,9 +55,12 @@ export class CollectionComponent {
|
|
|
49
55
|
change() {
|
|
50
56
|
this.configurationService.notify(new Change(this.configKey, this.items.length === 0 ? undefined : this.items));
|
|
51
57
|
}
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CollectionComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
59
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CollectionComponent, queries: [{ propertyName: "children", predicate: LayerComponent }], ngImport: i0 });
|
|
52
60
|
}
|
|
53
|
-
|
|
54
|
-
CollectionComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CollectionComponent, ngImport: i0 });
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CollectionComponent, decorators: [{
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CollectionComponent, decorators: [{
|
|
56
62
|
type: Directive
|
|
57
|
-
}], ctorParameters: function () { return [{ type: undefined }, { type: i1.ConfigurationService }, { type: i2.CollectionService }]; }
|
|
63
|
+
}], ctorParameters: function () { return [{ type: undefined }, { type: i1.ConfigurationService }, { type: i2.CollectionService }]; }, propDecorators: { children: [{
|
|
64
|
+
type: ContentChildren,
|
|
65
|
+
args: [LayerComponent]
|
|
66
|
+
}] } });
|
|
@@ -9,6 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class ItemChange {
|
|
12
|
+
sender;
|
|
13
|
+
options;
|
|
12
14
|
constructor(sender, options) {
|
|
13
15
|
this.sender = sender;
|
|
14
16
|
this.options = options;
|
|
@@ -18,6 +20,8 @@ export class ItemChange {
|
|
|
18
20
|
* @hidden
|
|
19
21
|
*/
|
|
20
22
|
export class CollectionService {
|
|
23
|
+
itemChanges;
|
|
24
|
+
source;
|
|
21
25
|
constructor() {
|
|
22
26
|
this.source = new Subject();
|
|
23
27
|
this.itemChanges = this.source.asObservable();
|
|
@@ -25,9 +29,9 @@ export class CollectionService {
|
|
|
25
29
|
notify(change) {
|
|
26
30
|
this.source.next(change);
|
|
27
31
|
}
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CollectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CollectionService });
|
|
28
34
|
}
|
|
29
|
-
|
|
30
|
-
CollectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CollectionService });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CollectionService, decorators: [{
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CollectionService, decorators: [{
|
|
32
36
|
type: Injectable
|
|
33
37
|
}], ctorParameters: function () { return []; } });
|
|
@@ -9,6 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class Change {
|
|
12
|
+
key;
|
|
13
|
+
value;
|
|
12
14
|
constructor(key, value) {
|
|
13
15
|
this.key = key;
|
|
14
16
|
this.value = value;
|
|
@@ -18,10 +20,12 @@ export class Change {
|
|
|
18
20
|
* @hidden
|
|
19
21
|
*/
|
|
20
22
|
export class ConfigurationService {
|
|
23
|
+
ngZone;
|
|
24
|
+
changes;
|
|
25
|
+
store = {};
|
|
26
|
+
source = new BehaviorSubject({});
|
|
21
27
|
constructor(ngZone) {
|
|
22
28
|
this.ngZone = ngZone;
|
|
23
|
-
this.store = {};
|
|
24
|
-
this.source = new BehaviorSubject({});
|
|
25
29
|
this.initSource();
|
|
26
30
|
}
|
|
27
31
|
initSource() {
|
|
@@ -50,9 +54,9 @@ export class ConfigurationService {
|
|
|
50
54
|
this.source.next(this.store);
|
|
51
55
|
});
|
|
52
56
|
}
|
|
57
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
58
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationService });
|
|
53
59
|
}
|
|
54
|
-
|
|
55
|
-
ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConfigurationService });
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConfigurationService, decorators: [{
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationService, decorators: [{
|
|
57
61
|
type: Injectable
|
|
58
62
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -7,15 +7,15 @@ import { InstanceObserver } from '@progress/kendo-charts';
|
|
|
7
7
|
* @hidden
|
|
8
8
|
*/
|
|
9
9
|
export class MapInstanceObserver extends InstanceObserver {
|
|
10
|
+
handlerMap = {
|
|
11
|
+
hideTooltip: 'onHideTooltip',
|
|
12
|
+
init: 'onInit',
|
|
13
|
+
render: 'onRender',
|
|
14
|
+
showTooltip: 'onShowTooltip',
|
|
15
|
+
centerChange: 'onCenterChange',
|
|
16
|
+
zoomChange: 'onZoomChange'
|
|
17
|
+
};
|
|
10
18
|
constructor(instance) {
|
|
11
19
|
super(instance);
|
|
12
|
-
this.handlerMap = {
|
|
13
|
-
hideTooltip: 'onHideTooltip',
|
|
14
|
-
init: 'onInit',
|
|
15
|
-
render: 'onRender',
|
|
16
|
-
showTooltip: 'onShowTooltip',
|
|
17
|
-
centerChange: 'onCenterChange',
|
|
18
|
-
zoomChange: 'onZoomChange'
|
|
19
|
-
};
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -13,10 +13,12 @@ import * as i1 from "./configuration.service";
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export class SettingsComponent {
|
|
16
|
+
configKey;
|
|
17
|
+
configurationService;
|
|
18
|
+
store = {};
|
|
16
19
|
constructor(configKey, configurationService) {
|
|
17
20
|
this.configKey = configKey;
|
|
18
21
|
this.configurationService = configurationService;
|
|
19
|
-
this.store = {};
|
|
20
22
|
if (configKey === undefined) {
|
|
21
23
|
throw new Error('Configuration key not set');
|
|
22
24
|
}
|
|
@@ -51,9 +53,9 @@ export class SettingsComponent {
|
|
|
51
53
|
notify() {
|
|
52
54
|
this.configurationService.notify(new Change(this.configKey, this.store));
|
|
53
55
|
}
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SettingsComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: SettingsComponent, usesOnChanges: true, ngImport: i0 });
|
|
54
58
|
}
|
|
55
|
-
|
|
56
|
-
SettingsComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: SettingsComponent, usesOnChanges: true, ngImport: i0 });
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SettingsComponent, decorators: [{
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SettingsComponent, decorators: [{
|
|
58
60
|
type: Directive
|
|
59
61
|
}], ctorParameters: function () { return [{ type: undefined }, { type: i1.ConfigurationService }]; } });
|
|
@@ -8,15 +8,19 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
10
|
export class BaseEvent {
|
|
11
|
+
/**
|
|
12
|
+
* The `MapComponent` that triggered the event.
|
|
13
|
+
*/
|
|
14
|
+
sender;
|
|
11
15
|
/**
|
|
12
16
|
* @hidden
|
|
13
17
|
*/
|
|
14
18
|
constructor(sender) {
|
|
15
19
|
this.sender = sender;
|
|
16
20
|
}
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseEvent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
22
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: BaseEvent, ngImport: i0 });
|
|
17
23
|
}
|
|
18
|
-
|
|
19
|
-
BaseEvent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseEvent, ngImport: i0 });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseEvent, decorators: [{
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BaseEvent, decorators: [{
|
|
21
25
|
type: Directive
|
|
22
26
|
}], ctorParameters: function () { return [{ type: undefined }]; } });
|
|
@@ -7,6 +7,14 @@ import { BaseEvent } from './base-event';
|
|
|
7
7
|
* Fired when the user clicks on the map.
|
|
8
8
|
*/
|
|
9
9
|
export class MapClickEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The location of the clicked point.
|
|
12
|
+
*/
|
|
13
|
+
location;
|
|
14
|
+
/**
|
|
15
|
+
* The source DOM event instance
|
|
16
|
+
*/
|
|
17
|
+
originalEvent;
|
|
10
18
|
/**
|
|
11
19
|
* @hidden
|
|
12
20
|
*/
|
|
@@ -7,6 +7,14 @@ import { BaseEvent } from './base-event';
|
|
|
7
7
|
* Fired when a marker has been displayed and has a DOM element assigned.
|
|
8
8
|
*/
|
|
9
9
|
export class MarkerActivateEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The marker instance.
|
|
12
|
+
*/
|
|
13
|
+
marker;
|
|
14
|
+
/**
|
|
15
|
+
* The marker layer instance.
|
|
16
|
+
*/
|
|
17
|
+
layer;
|
|
10
18
|
/**
|
|
11
19
|
* @hidden
|
|
12
20
|
*/
|
|
@@ -7,6 +7,14 @@ import { BaseEvent } from './base-event';
|
|
|
7
7
|
* Fired when a marker has been clicked or tapped.
|
|
8
8
|
*/
|
|
9
9
|
export class MarkerClickEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The marker instance.
|
|
12
|
+
*/
|
|
13
|
+
marker;
|
|
14
|
+
/**
|
|
15
|
+
* The marker layer instance.
|
|
16
|
+
*/
|
|
17
|
+
layer;
|
|
10
18
|
/**
|
|
11
19
|
* @hidden
|
|
12
20
|
*/
|
|
@@ -9,6 +9,14 @@ import { PreventableEvent } from './preventable-event';
|
|
|
9
9
|
* Cancelling the event will prevent the marker from being shown.
|
|
10
10
|
*/
|
|
11
11
|
export class MarkerCreatedEvent extends PreventableEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The marker instance.
|
|
14
|
+
*/
|
|
15
|
+
marker;
|
|
16
|
+
/**
|
|
17
|
+
* The marker layer instance.
|
|
18
|
+
*/
|
|
19
|
+
layer;
|
|
12
20
|
/**
|
|
13
21
|
* @hidden
|
|
14
22
|
*/
|
|
@@ -7,6 +7,18 @@ import { BaseEvent } from './base-event';
|
|
|
7
7
|
* Fires after the map viewport has been moved.
|
|
8
8
|
*/
|
|
9
9
|
export class PanEndEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The map origin (top left or NW corner).
|
|
12
|
+
*/
|
|
13
|
+
origin;
|
|
14
|
+
/**
|
|
15
|
+
* The current map center.
|
|
16
|
+
*/
|
|
17
|
+
center;
|
|
18
|
+
/**
|
|
19
|
+
* The source DOM event instance
|
|
20
|
+
*/
|
|
21
|
+
originalEvent;
|
|
10
22
|
/**
|
|
11
23
|
* @hidden
|
|
12
24
|
*/
|
|
@@ -7,6 +7,18 @@ import { BaseEvent } from './base-event';
|
|
|
7
7
|
* Fired while the map viewport is being moved.
|
|
8
8
|
*/
|
|
9
9
|
export class PanEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The map origin (top left or NW corner).
|
|
12
|
+
*/
|
|
13
|
+
origin;
|
|
14
|
+
/**
|
|
15
|
+
* The current map center.
|
|
16
|
+
*/
|
|
17
|
+
center;
|
|
18
|
+
/**
|
|
19
|
+
* The source DOM event instance
|
|
20
|
+
*/
|
|
21
|
+
originalEvent;
|
|
10
22
|
/**
|
|
11
23
|
* @hidden
|
|
12
24
|
*/
|
|
@@ -9,10 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class PreventableEvent extends BaseEvent {
|
|
12
|
-
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.prevented = false;
|
|
15
|
-
}
|
|
12
|
+
prevented = false;
|
|
16
13
|
/**
|
|
17
14
|
* Prevents the default action for a specified event.
|
|
18
15
|
* In this way, the source component suppresses
|
|
@@ -31,9 +28,9 @@ export class PreventableEvent extends BaseEvent {
|
|
|
31
28
|
isDefaultPrevented() {
|
|
32
29
|
return this.prevented;
|
|
33
30
|
}
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PreventableEvent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PreventableEvent, usesInheritance: true, ngImport: i0 });
|
|
34
33
|
}
|
|
35
|
-
|
|
36
|
-
PreventableEvent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PreventableEvent, usesInheritance: true, ngImport: i0 });
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreventableEvent, decorators: [{
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PreventableEvent, decorators: [{
|
|
38
35
|
type: Directive
|
|
39
36
|
}] });
|
|
@@ -7,6 +7,18 @@ import { BaseEvent } from './base-event';
|
|
|
7
7
|
* Fired when a shape is clicked or tapped.
|
|
8
8
|
*/
|
|
9
9
|
export class ShapeClickEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The shape layer instance.
|
|
12
|
+
*/
|
|
13
|
+
layer;
|
|
14
|
+
/**
|
|
15
|
+
* The shape instance.
|
|
16
|
+
*/
|
|
17
|
+
shape;
|
|
18
|
+
/**
|
|
19
|
+
* The source DOM event instance
|
|
20
|
+
*/
|
|
21
|
+
originalEvent;
|
|
10
22
|
/**
|
|
11
23
|
* @hidden
|
|
12
24
|
*/
|
|
@@ -7,6 +7,22 @@ import { BaseEvent } from './base-event';
|
|
|
7
7
|
* Fired when a shape is created, but is not rendered yet.
|
|
8
8
|
*/
|
|
9
9
|
export class ShapeCreatedEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The shape layer instance.
|
|
12
|
+
*/
|
|
13
|
+
layer;
|
|
14
|
+
/**
|
|
15
|
+
* The shape instance.
|
|
16
|
+
*/
|
|
17
|
+
shape;
|
|
18
|
+
/**
|
|
19
|
+
* The original data item for this Shape.
|
|
20
|
+
*/
|
|
21
|
+
dataItem;
|
|
22
|
+
/**
|
|
23
|
+
* The shape location
|
|
24
|
+
*/
|
|
25
|
+
location;
|
|
10
26
|
/**
|
|
11
27
|
* @hidden
|
|
12
28
|
*/
|
|
@@ -7,6 +7,22 @@ import { BaseEvent } from './base-event';
|
|
|
7
7
|
* Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
|
|
8
8
|
*/
|
|
9
9
|
export class ShapeFeatureCreatedEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The original data item for this Feature. Members include `geometries` and `properties`.
|
|
12
|
+
*/
|
|
13
|
+
dataItem;
|
|
14
|
+
/**
|
|
15
|
+
* The shape layer instance.
|
|
16
|
+
*/
|
|
17
|
+
layer;
|
|
18
|
+
/**
|
|
19
|
+
* The group containing feature shape instances.
|
|
20
|
+
*/
|
|
21
|
+
group;
|
|
22
|
+
/**
|
|
23
|
+
* A reference to the `dataItem.properties` object.
|
|
24
|
+
*/
|
|
25
|
+
properties;
|
|
10
26
|
/**
|
|
11
27
|
* @hidden
|
|
12
28
|
*/
|
|
@@ -10,6 +10,18 @@ import { BaseEvent } from './base-event';
|
|
|
10
10
|
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
11
11
|
*/
|
|
12
12
|
export class ShapeMouseEnterEvent extends BaseEvent {
|
|
13
|
+
/**
|
|
14
|
+
* The shape layer instance.
|
|
15
|
+
*/
|
|
16
|
+
layer;
|
|
17
|
+
/**
|
|
18
|
+
* The shape instance.
|
|
19
|
+
*/
|
|
20
|
+
shape;
|
|
21
|
+
/**
|
|
22
|
+
* The source DOM event instance
|
|
23
|
+
*/
|
|
24
|
+
originalEvent;
|
|
13
25
|
/**
|
|
14
26
|
* @hidden
|
|
15
27
|
*/
|
|
@@ -10,6 +10,18 @@ import { BaseEvent } from './base-event';
|
|
|
10
10
|
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
11
11
|
*/
|
|
12
12
|
export class ShapeMouseLeaveEvent extends BaseEvent {
|
|
13
|
+
/**
|
|
14
|
+
* The shape layer instance.
|
|
15
|
+
*/
|
|
16
|
+
layer;
|
|
17
|
+
/**
|
|
18
|
+
* The shape instance.
|
|
19
|
+
*/
|
|
20
|
+
shape;
|
|
21
|
+
/**
|
|
22
|
+
* The source DOM event instance
|
|
23
|
+
*/
|
|
24
|
+
originalEvent;
|
|
13
25
|
/**
|
|
14
26
|
* @hidden
|
|
15
27
|
*/
|
|
@@ -9,6 +9,10 @@ import { PreventableEvent } from './preventable-event';
|
|
|
9
9
|
* Cancelling the event will prevent the user action.
|
|
10
10
|
*/
|
|
11
11
|
export class ZoomStartEvent extends PreventableEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The source DOM event instance
|
|
14
|
+
*/
|
|
15
|
+
originalEvent;
|
|
12
16
|
/**
|
|
13
17
|
* @hidden
|
|
14
18
|
*/
|
|
@@ -15,22 +15,61 @@ import * as i3 from "@angular/platform-browser";
|
|
|
15
15
|
* A vector shape layer for bubble maps. [See example](slug:bubble_layers_map).
|
|
16
16
|
*/
|
|
17
17
|
export class BubbleLayerComponent extends LayerComponent {
|
|
18
|
+
configurationService;
|
|
19
|
+
collectionService;
|
|
20
|
+
sanitizer;
|
|
21
|
+
/**
|
|
22
|
+
* The array of data items for this layer.
|
|
23
|
+
*/
|
|
24
|
+
data;
|
|
25
|
+
/**
|
|
26
|
+
* The data item field which contains the symbol location.
|
|
27
|
+
*
|
|
28
|
+
* The field should be an array with two numbers - latitude and longitude in decimal degrees.
|
|
29
|
+
*/
|
|
30
|
+
locationField;
|
|
31
|
+
/**
|
|
32
|
+
* The value field for the symbols used to determine their relative size.
|
|
33
|
+
* The data item field should be a number.
|
|
34
|
+
*/
|
|
35
|
+
valueField;
|
|
36
|
+
/**
|
|
37
|
+
* The symbol to use for bubble layers.
|
|
38
|
+
*/
|
|
39
|
+
symbol;
|
|
40
|
+
/**
|
|
41
|
+
* The default style for symbols.
|
|
42
|
+
*/
|
|
43
|
+
style;
|
|
44
|
+
/**
|
|
45
|
+
* The maximum symbol size for bubble layer symbols.
|
|
46
|
+
*
|
|
47
|
+
* @default 100
|
|
48
|
+
*/
|
|
49
|
+
maxSize;
|
|
50
|
+
/**
|
|
51
|
+
* The minimum symbol size for bubble layer symbols.
|
|
52
|
+
* Setting non-zero value will distort symbol area to value ratio.
|
|
53
|
+
*
|
|
54
|
+
* @default 0
|
|
55
|
+
*/
|
|
56
|
+
minSize;
|
|
18
57
|
constructor(configurationService, collectionService, sanitizer) {
|
|
19
58
|
super('bubble', configurationService, collectionService, sanitizer);
|
|
20
59
|
this.configurationService = configurationService;
|
|
21
60
|
this.collectionService = collectionService;
|
|
22
61
|
this.sanitizer = sanitizer;
|
|
23
62
|
}
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BubbleLayerComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }, { token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
64
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: BubbleLayerComponent, isStandalone: true, selector: "kendo-map-bubble-layer", inputs: { data: "data", locationField: "locationField", valueField: "valueField", symbol: "symbol", style: "style", maxSize: "maxSize", minSize: "minSize" }, providers: [
|
|
65
|
+
ConfigurationService,
|
|
66
|
+
{
|
|
67
|
+
provide: LayerComponent,
|
|
68
|
+
useExisting: forwardRef(() => BubbleLayerComponent)
|
|
69
|
+
}
|
|
70
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
71
|
}
|
|
25
|
-
|
|
26
|
-
BubbleLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: BubbleLayerComponent, isStandalone: true, selector: "kendo-map-bubble-layer", inputs: { data: "data", locationField: "locationField", valueField: "valueField", symbol: "symbol", style: "style", maxSize: "maxSize", minSize: "minSize" }, providers: [
|
|
27
|
-
ConfigurationService,
|
|
28
|
-
{
|
|
29
|
-
provide: LayerComponent,
|
|
30
|
-
useExisting: forwardRef(() => BubbleLayerComponent)
|
|
31
|
-
}
|
|
32
|
-
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BubbleLayerComponent, decorators: [{
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BubbleLayerComponent, decorators: [{
|
|
34
73
|
type: Component,
|
|
35
74
|
args: [{
|
|
36
75
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -13,6 +13,8 @@ import * as i1 from "../../common/configuration.service";
|
|
|
13
13
|
* @hidden
|
|
14
14
|
*/
|
|
15
15
|
export class LayerTooltipComponent extends SettingsComponent {
|
|
16
|
+
configurationService;
|
|
17
|
+
layerTooltipTemplate;
|
|
16
18
|
constructor(configurationService) {
|
|
17
19
|
super('tooltip', configurationService);
|
|
18
20
|
this.configurationService = configurationService;
|
|
@@ -20,10 +22,10 @@ export class LayerTooltipComponent extends SettingsComponent {
|
|
|
20
22
|
get layerTooltipTemplateRef() {
|
|
21
23
|
return this.layerTooltipTemplate;
|
|
22
24
|
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayerTooltipComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LayerTooltipComponent, isStandalone: true, selector: "kendo-map-layer-tooltip", queries: [{ propertyName: "layerTooltipTemplate", first: true, predicate: TemplateRef, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23
27
|
}
|
|
24
|
-
|
|
25
|
-
LayerTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LayerTooltipComponent, isStandalone: true, selector: "kendo-map-layer-tooltip", queries: [{ propertyName: "layerTooltipTemplate", first: true, predicate: TemplateRef, descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LayerTooltipComponent, decorators: [{
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayerTooltipComponent, decorators: [{
|
|
27
29
|
type: Component,
|
|
28
30
|
args: [{
|
|
29
31
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -16,6 +16,35 @@ import * as i3 from "@angular/platform-browser";
|
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
18
18
|
export class LayerComponent extends CollectionItemComponent {
|
|
19
|
+
type;
|
|
20
|
+
configurationService;
|
|
21
|
+
collectionService;
|
|
22
|
+
sanitizer;
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
attribution;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
extent;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
maxZoom;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
minZoom;
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
opacity;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
zIndex;
|
|
47
|
+
layerTooltip;
|
|
19
48
|
constructor(type, configurationService, collectionService, sanitizer) {
|
|
20
49
|
super(configurationService, collectionService);
|
|
21
50
|
this.type = type;
|
|
@@ -37,10 +66,10 @@ export class LayerComponent extends CollectionItemComponent {
|
|
|
37
66
|
return this.layerTooltip.layerTooltipTemplateRef;
|
|
38
67
|
}
|
|
39
68
|
}
|
|
69
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayerComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
70
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LayerComponent, inputs: { attribution: "attribution", extent: "extent", maxZoom: "maxZoom", minZoom: "minZoom", opacity: "opacity", zIndex: "zIndex" }, queries: [{ propertyName: "layerTooltip", first: true, predicate: LayerTooltipComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
40
71
|
}
|
|
41
|
-
|
|
42
|
-
LayerComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LayerComponent, inputs: { attribution: "attribution", extent: "extent", maxZoom: "maxZoom", minZoom: "minZoom", opacity: "opacity", zIndex: "zIndex" }, queries: [{ propertyName: "layerTooltip", first: true, predicate: LayerTooltipComponent, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LayerComponent, decorators: [{
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayerComponent, decorators: [{
|
|
44
73
|
type: Directive
|
|
45
74
|
}], ctorParameters: function () { return [{ type: undefined }, { type: i1.ConfigurationService }, { type: i2.CollectionService }, { type: i3.DomSanitizer }]; }, propDecorators: { attribution: [{
|
|
46
75
|
type: Input
|