@progress/kendo-angular-map 0.1.0
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/LICENSE.md +11 -0
- package/NOTICE.txt +654 -0
- package/README.md +31 -0
- package/bundles/kendo-angular-map.umd.js +5 -0
- package/common/collection-item.component.d.ts +39 -0
- package/common/collection.component.d.ts +27 -0
- package/common/collection.service.d.ts +31 -0
- package/common/configuration.service.d.ts +32 -0
- package/common/copy-changes.d.ts +11 -0
- package/common/map-instance-observer.d.ts +12 -0
- package/common/settings.component.d.ts +37 -0
- package/common/to-simple-changes.d.ts +11 -0
- package/esm2015/common/collection-item.component.js +59 -0
- package/esm2015/common/collection.component.js +51 -0
- package/esm2015/common/collection.service.js +33 -0
- package/esm2015/common/configuration.service.js +58 -0
- package/esm2015/common/copy-changes.js +21 -0
- package/esm2015/common/map-instance-observer.js +19 -0
- package/esm2015/common/settings.component.js +58 -0
- package/esm2015/common/to-simple-changes.js +18 -0
- package/esm2015/events/base-event.js +22 -0
- package/esm2015/events/before-reset-event.js +16 -0
- package/esm2015/events/instance-event.service.js +32 -0
- package/esm2015/events/map-click-event.js +18 -0
- package/esm2015/events/marker-activate-event.js +18 -0
- package/esm2015/events/marker-click-event.js +18 -0
- package/esm2015/events/marker-created-event.js +20 -0
- package/esm2015/events/pan-end-event.js +19 -0
- package/esm2015/events/pan-event.js +19 -0
- package/esm2015/events/preventable-event.js +39 -0
- package/esm2015/events/reset-event.js +18 -0
- package/esm2015/events/shape-click-event.js +19 -0
- package/esm2015/events/shape-created-event.js +18 -0
- package/esm2015/events/shape-feature-created-event.js +20 -0
- package/esm2015/events/shape-mouse-enter-event.js +22 -0
- package/esm2015/events/shape-mouse-leave-event.js +22 -0
- package/esm2015/events/zoom-end-event.js +17 -0
- package/esm2015/events/zoom-start-event.js +19 -0
- package/esm2015/events.js +19 -0
- package/esm2015/kendo-angular-map.js +8 -0
- package/esm2015/main.js +14 -0
- package/esm2015/map/bubble-layer.component.js +59 -0
- package/esm2015/map/layer/tooltip.component.js +35 -0
- package/esm2015/map/layer.component.js +57 -0
- package/esm2015/map/layers.component.js +36 -0
- package/esm2015/map/marker-layer.component.js +53 -0
- package/esm2015/map/shape-layer.component.js +49 -0
- package/esm2015/map/tile-layer.component.js +51 -0
- package/esm2015/map.component.js +353 -0
- package/esm2015/map.directives.js +25 -0
- package/esm2015/map.module.js +32 -0
- package/esm2015/package-metadata.js +15 -0
- package/events/base-event.d.ts +21 -0
- package/events/before-reset-event.d.ts +16 -0
- package/events/instance-event.service.d.ts +11 -0
- package/events/map-click-event.d.ts +24 -0
- package/events/marker-activate-event.d.ts +24 -0
- package/events/marker-click-event.d.ts +24 -0
- package/events/marker-created-event.d.ts +26 -0
- package/events/pan-end-event.d.ts +28 -0
- package/events/pan-event.d.ts +28 -0
- package/events/preventable-event.d.ts +28 -0
- package/events/reset-event.d.ts +18 -0
- package/events/shape-click-event.d.ts +29 -0
- package/events/shape-created-event.d.ts +25 -0
- package/events/shape-feature-created-event.d.ts +33 -0
- package/events/shape-mouse-enter-event.d.ts +32 -0
- package/events/shape-mouse-leave-event.d.ts +32 -0
- package/events/zoom-end-event.d.ts +20 -0
- package/events/zoom-start-event.d.ts +22 -0
- package/events.d.ts +19 -0
- package/fesm2015/kendo-angular-map.js +1240 -0
- package/kendo-angular-map.d.ts +9 -0
- package/main.d.ts +14 -0
- package/map/bubble-layer.component.d.ts +29 -0
- package/map/layer/tooltip.component.d.ts +21 -0
- package/map/layer.component.d.ts +35 -0
- package/map/layers.component.d.ts +20 -0
- package/map/marker-layer.component.d.ts +25 -0
- package/map/shape-layer.component.d.ts +24 -0
- package/map/tile-layer.component.d.ts +24 -0
- package/map.component.d.ts +214 -0
- package/map.directives.d.ts +16 -0
- package/map.module.d.ts +22 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +86 -0
- package/schematics/collection.json +12 -0
- package/schematics/ngAdd/index.js +21 -0
- package/schematics/ngAdd/index.js.map +1 -0
- package/schematics/ngAdd/schema.json +28 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export class BaseEvent {
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
constructor(sender) {
|
|
15
|
+
this.sender = sender;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
BaseEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BaseEvent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
+
BaseEvent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BaseEvent, ngImport: i0 });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BaseEvent, decorators: [{
|
|
21
|
+
type: Directive
|
|
22
|
+
}], ctorParameters: function () { return [{ type: undefined }]; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
|
|
8
|
+
*/
|
|
9
|
+
export class BeforeResetEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(_, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BeforeResetEvent, MapClickEvent, MarkerActivateEvent, MarkerClickEvent, MarkerCreatedEvent, PanEndEvent, PanEvent, ResetEvent, ShapeClickEvent, ShapeCreatedEvent, ShapeFeatureCreatedEvent, ShapeMouseEnterEvent, ShapeMouseLeaveEvent, ZoomEndEvent, ZoomStartEvent } from '../events';
|
|
6
|
+
const EVENT_MAP = {
|
|
7
|
+
beforeReset: BeforeResetEvent,
|
|
8
|
+
click: MapClickEvent,
|
|
9
|
+
markerActivate: MarkerActivateEvent,
|
|
10
|
+
markerClick: MarkerClickEvent,
|
|
11
|
+
markerCreated: MarkerCreatedEvent,
|
|
12
|
+
panEnd: PanEndEvent,
|
|
13
|
+
pan: PanEvent,
|
|
14
|
+
reset: ResetEvent,
|
|
15
|
+
shapeClick: ShapeClickEvent,
|
|
16
|
+
shapeCreated: ShapeCreatedEvent,
|
|
17
|
+
shapeFeatureCreated: ShapeFeatureCreatedEvent,
|
|
18
|
+
shapeMouseEnter: ShapeMouseEnterEvent,
|
|
19
|
+
shapeMouseLeave: ShapeMouseLeaveEvent,
|
|
20
|
+
zoomEnd: ZoomEndEvent,
|
|
21
|
+
zoomStart: ZoomStartEvent
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export class InstanceEventService {
|
|
27
|
+
create(name, args, sender) {
|
|
28
|
+
if (EVENT_MAP[name]) {
|
|
29
|
+
return new EVENT_MAP[name](args, sender);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when the user clicks on the map.
|
|
8
|
+
*/
|
|
9
|
+
export class MapClickEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.location = e.location;
|
|
16
|
+
this.originalEvent = e.originalEvent;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when a marker has been displayed and has a DOM element assigned.
|
|
8
|
+
*/
|
|
9
|
+
export class MarkerActivateEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.marker = e.marker;
|
|
16
|
+
this.layer = e.layer;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when a marker has been clicked or tapped.
|
|
8
|
+
*/
|
|
9
|
+
export class MarkerClickEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.marker = e.marker;
|
|
16
|
+
this.layer = e.layer;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PreventableEvent } from './preventable-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when a marker has been created and is about to be displayed.
|
|
8
|
+
*
|
|
9
|
+
* Cancelling the event will prevent the marker from being shown.
|
|
10
|
+
*/
|
|
11
|
+
export class MarkerCreatedEvent extends PreventableEvent {
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
constructor(e, sender) {
|
|
16
|
+
super(sender);
|
|
17
|
+
this.marker = e.marker;
|
|
18
|
+
this.layer = e.layer;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fires after the map viewport has been moved.
|
|
8
|
+
*/
|
|
9
|
+
export class PanEndEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.origin = e.origin;
|
|
16
|
+
this.center = e.center;
|
|
17
|
+
this.originalEvent = e.originalEvent;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired while the map viewport is being moved.
|
|
8
|
+
*/
|
|
9
|
+
export class PanEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.origin = e.origin;
|
|
16
|
+
this.center = e.center;
|
|
17
|
+
this.originalEvent = e.originalEvent;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive } from '@angular/core';
|
|
6
|
+
import { BaseEvent } from './base-event';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export class PreventableEvent extends BaseEvent {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.prevented = false;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Prevents the default action for a specified event.
|
|
18
|
+
* In this way, the source component suppresses
|
|
19
|
+
* the built-in behavior that follows the event.
|
|
20
|
+
*/
|
|
21
|
+
preventDefault() {
|
|
22
|
+
this.prevented = true;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns `true` if the event was prevented
|
|
26
|
+
* by any of its subscribers.
|
|
27
|
+
*
|
|
28
|
+
* @returns `true` if the default action was prevented.
|
|
29
|
+
* Otherwise, returns `false`.
|
|
30
|
+
*/
|
|
31
|
+
isDefaultPrevented() {
|
|
32
|
+
return this.prevented;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
PreventableEvent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreventableEvent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
+
PreventableEvent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PreventableEvent, usesInheritance: true, ngImport: i0 });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreventableEvent, decorators: [{
|
|
38
|
+
type: Directive
|
|
39
|
+
}] });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when the map is reset.
|
|
8
|
+
*
|
|
9
|
+
* This typically occurs on initial load and after a zoom/center change.
|
|
10
|
+
*/
|
|
11
|
+
export class ResetEvent extends BaseEvent {
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
constructor(_, sender) {
|
|
16
|
+
super(sender);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when a shape is clicked or tapped.
|
|
8
|
+
*/
|
|
9
|
+
export class ShapeClickEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.layer = e.layer;
|
|
16
|
+
this.shape = e.shape;
|
|
17
|
+
this.originalEvent = e.originalEvent;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when a shape is created, but is not rendered yet.
|
|
8
|
+
*/
|
|
9
|
+
export class ShapeCreatedEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.layer = e.layer;
|
|
16
|
+
this.shape = e.shape;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
|
|
8
|
+
*/
|
|
9
|
+
export class ShapeFeatureCreatedEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.dataItem = e.dataItem;
|
|
16
|
+
this.layer = e.layer;
|
|
17
|
+
this.group = e.group;
|
|
18
|
+
this.properties = e.properties;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when the mouse enters a shape.
|
|
8
|
+
*
|
|
9
|
+
* > This event will fire reliably only for shapes that have set fill color.
|
|
10
|
+
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
11
|
+
*/
|
|
12
|
+
export class ShapeMouseEnterEvent extends BaseEvent {
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
constructor(e, sender) {
|
|
17
|
+
super(sender);
|
|
18
|
+
this.layer = e.layer;
|
|
19
|
+
this.shape = e.shape;
|
|
20
|
+
this.originalEvent = e.originalEvent;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when the mouse leaves a shape.
|
|
8
|
+
*
|
|
9
|
+
* > This event will fire reliably only for shapes that have set fill color.
|
|
10
|
+
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
11
|
+
*/
|
|
12
|
+
export class ShapeMouseLeaveEvent extends BaseEvent {
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
constructor(e, sender) {
|
|
17
|
+
super(sender);
|
|
18
|
+
this.layer = e.layer;
|
|
19
|
+
this.shape = e.shape;
|
|
20
|
+
this.originalEvent = e.originalEvent;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { BaseEvent } from './base-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when the map zoom level has changed.
|
|
8
|
+
*/
|
|
9
|
+
export class ZoomEndEvent extends BaseEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(e, sender) {
|
|
14
|
+
super(sender);
|
|
15
|
+
this.originalEvent = e.originalEvent;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PreventableEvent } from './preventable-event';
|
|
6
|
+
/**
|
|
7
|
+
* Fired when the map zoom level is about to change.
|
|
8
|
+
*
|
|
9
|
+
* Cancelling the event will prevent the user action.
|
|
10
|
+
*/
|
|
11
|
+
export class ZoomStartEvent extends PreventableEvent {
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
constructor(e, sender) {
|
|
16
|
+
super(sender);
|
|
17
|
+
this.originalEvent = e.originalEvent;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export { BeforeResetEvent } from './events/before-reset-event';
|
|
6
|
+
export { MapClickEvent } from './events/map-click-event';
|
|
7
|
+
export { MarkerActivateEvent } from './events/marker-activate-event';
|
|
8
|
+
export { MarkerClickEvent } from './events/marker-click-event';
|
|
9
|
+
export { MarkerCreatedEvent } from './events/marker-created-event';
|
|
10
|
+
export { PanEndEvent } from './events/pan-end-event';
|
|
11
|
+
export { PanEvent } from './events/pan-event';
|
|
12
|
+
export { ResetEvent } from './events/reset-event';
|
|
13
|
+
export { ShapeClickEvent } from './events/shape-click-event';
|
|
14
|
+
export { ShapeCreatedEvent } from './events/shape-created-event';
|
|
15
|
+
export { ShapeFeatureCreatedEvent } from './events/shape-feature-created-event';
|
|
16
|
+
export { ShapeMouseEnterEvent } from './events/shape-mouse-enter-event';
|
|
17
|
+
export { ShapeMouseLeaveEvent } from './events/shape-mouse-leave-event';
|
|
18
|
+
export { ZoomEndEvent } from './events/zoom-end-event';
|
|
19
|
+
export { ZoomStartEvent } from './events/zoom-start-event';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
export * from './main';
|
package/esm2015/main.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export { BubbleLayerComponent } from './map/bubble-layer.component';
|
|
6
|
+
export { MapComponent } from './map.component';
|
|
7
|
+
export { MapModule } from './map.module';
|
|
8
|
+
export { MarkerLayerComponent } from './map/marker-layer.component';
|
|
9
|
+
export { ShapeLayerComponent } from './map/shape-layer.component';
|
|
10
|
+
export { TileLayerComponent } from './map/tile-layer.component';
|
|
11
|
+
export { LayersComponent } from './map/layers.component';
|
|
12
|
+
export { LayerTooltipComponent } from './map/layer/tooltip.component';
|
|
13
|
+
export * from './events';
|
|
14
|
+
export { Location, Extent } from '@progress/kendo-charts';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ChangeDetectionStrategy, Component, forwardRef, Input } from '@angular/core';
|
|
6
|
+
import { ConfigurationService } from '../common/configuration.service';
|
|
7
|
+
import { LayerComponent } from './layer.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../common/configuration.service";
|
|
10
|
+
import * as i2 from "../common/collection.service";
|
|
11
|
+
import * as i3 from "@angular/platform-browser";
|
|
12
|
+
/**
|
|
13
|
+
* A vector shape layer for bubble maps.
|
|
14
|
+
*/
|
|
15
|
+
export class BubbleLayerComponent extends LayerComponent {
|
|
16
|
+
constructor(configurationService, collectionService, sanitizer) {
|
|
17
|
+
super('bubble', configurationService, collectionService, sanitizer);
|
|
18
|
+
this.configurationService = configurationService;
|
|
19
|
+
this.collectionService = collectionService;
|
|
20
|
+
this.sanitizer = sanitizer;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
BubbleLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BubbleLayerComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }, { token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
BubbleLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: BubbleLayerComponent, selector: "kendo-map-bubble-layer", inputs: { data: "data", locationField: "locationField", valueField: "valueField", symbol: "symbol", style: "style", maxSize: "maxSize", minSize: "minSize" }, providers: [
|
|
25
|
+
ConfigurationService,
|
|
26
|
+
{
|
|
27
|
+
provide: LayerComponent,
|
|
28
|
+
useExisting: forwardRef(() => BubbleLayerComponent)
|
|
29
|
+
}
|
|
30
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BubbleLayerComponent, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{
|
|
34
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35
|
+
providers: [
|
|
36
|
+
ConfigurationService,
|
|
37
|
+
{
|
|
38
|
+
provide: LayerComponent,
|
|
39
|
+
useExisting: forwardRef(() => BubbleLayerComponent)
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
selector: 'kendo-map-bubble-layer',
|
|
43
|
+
template: ''
|
|
44
|
+
}]
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }, { type: i3.DomSanitizer }]; }, propDecorators: { data: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], locationField: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], valueField: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], symbol: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], style: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], maxSize: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], minSize: [{
|
|
58
|
+
type: Input
|
|
59
|
+
}] } });
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ChangeDetectionStrategy, Component, ContentChild, TemplateRef } from '@angular/core';
|
|
6
|
+
import { SettingsComponent } from '../../common/settings.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "../../common/configuration.service";
|
|
9
|
+
/**
|
|
10
|
+
* The configuration options of the Map layer tooltip.
|
|
11
|
+
*
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export class LayerTooltipComponent extends SettingsComponent {
|
|
15
|
+
constructor(configurationService) {
|
|
16
|
+
super('tooltip', configurationService);
|
|
17
|
+
this.configurationService = configurationService;
|
|
18
|
+
}
|
|
19
|
+
get layerTooltipTemplateRef() {
|
|
20
|
+
return this.layerTooltipTemplate;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
LayerTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayerTooltipComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
LayerTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayerTooltipComponent, 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 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayerTooltipComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{
|
|
28
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
|
+
selector: 'kendo-map-layer-tooltip',
|
|
30
|
+
template: ''
|
|
31
|
+
}]
|
|
32
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { layerTooltipTemplate: [{
|
|
33
|
+
type: ContentChild,
|
|
34
|
+
args: [TemplateRef, { static: false }]
|
|
35
|
+
}] } });
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ContentChild, Directive, Input, SecurityContext } from '@angular/core';
|
|
6
|
+
import { CollectionItemComponent } from '../common/collection-item.component';
|
|
7
|
+
import { LayerTooltipComponent } from './layer/tooltip.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "../common/configuration.service";
|
|
10
|
+
import * as i2 from "../common/collection.service";
|
|
11
|
+
import * as i3 from "@angular/platform-browser";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export class LayerComponent extends CollectionItemComponent {
|
|
16
|
+
constructor(type, configurationService, collectionService, sanitizer) {
|
|
17
|
+
super(configurationService, collectionService);
|
|
18
|
+
this.type = type;
|
|
19
|
+
this.configurationService = configurationService;
|
|
20
|
+
this.collectionService = collectionService;
|
|
21
|
+
this.sanitizer = sanitizer;
|
|
22
|
+
}
|
|
23
|
+
ngOnChanges(changes) {
|
|
24
|
+
const store = this.configurationService.store;
|
|
25
|
+
store.type = this.type;
|
|
26
|
+
const attrChange = changes['attribution'];
|
|
27
|
+
if (attrChange && this.sanitizer) {
|
|
28
|
+
attrChange.currentValue = this.sanitizer.sanitize(SecurityContext.HTML, attrChange.currentValue);
|
|
29
|
+
}
|
|
30
|
+
super.ngOnChanges(changes);
|
|
31
|
+
}
|
|
32
|
+
get layerTooltipTemplateRef() {
|
|
33
|
+
if (this.layerTooltip) {
|
|
34
|
+
return this.layerTooltip.layerTooltipTemplateRef;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
LayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayerComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
39
|
+
LayerComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", 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
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayerComponent, decorators: [{
|
|
41
|
+
type: Directive
|
|
42
|
+
}], ctorParameters: function () { return [{ type: undefined }, { type: i1.ConfigurationService }, { type: i2.CollectionService }, { type: i3.DomSanitizer }]; }, propDecorators: { attribution: [{
|
|
43
|
+
type: Input
|
|
44
|
+
}], extent: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], maxZoom: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], minZoom: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], opacity: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}], zIndex: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], layerTooltip: [{
|
|
55
|
+
type: ContentChild,
|
|
56
|
+
args: [LayerTooltipComponent, { static: false }]
|
|
57
|
+
}] } });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
6
|
+
import { ContentChildren } from '@angular/core';
|
|
7
|
+
import { CollectionComponent } from '../common/collection.component';
|
|
8
|
+
import { CollectionService } from '../common/collection.service';
|
|
9
|
+
import { LayerComponent } from './layer.component';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "../common/configuration.service";
|
|
12
|
+
import * as i2 from "../common/collection.service";
|
|
13
|
+
/**
|
|
14
|
+
* A collection of one or more layers.
|
|
15
|
+
*/
|
|
16
|
+
export class LayersComponent extends CollectionComponent {
|
|
17
|
+
constructor(configurationService, collectionService) {
|
|
18
|
+
super('layers', configurationService, collectionService);
|
|
19
|
+
this.configurationService = configurationService;
|
|
20
|
+
this.collectionService = collectionService;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
LayersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayersComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
LayersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LayersComponent, selector: "kendo-map-layers", providers: [CollectionService], queries: [{ propertyName: "children", predicate: LayerComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LayersComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{
|
|
28
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
|
+
providers: [CollectionService],
|
|
30
|
+
selector: 'kendo-map-layers',
|
|
31
|
+
template: ''
|
|
32
|
+
}]
|
|
33
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }]; }, propDecorators: { children: [{
|
|
34
|
+
type: ContentChildren,
|
|
35
|
+
args: [LayerComponent]
|
|
36
|
+
}] } });
|