@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,9 @@
|
|
|
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
|
+
/// <amd-module name="@progress/kendo-angular-map" />
|
|
9
|
+
export * from './main';
|
package/main.d.ts
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 { MapLayer, MapLayerOptions, MapMarker, BubbleLayerSymbolArgs, BubbleLayerSymbol, MapControls, MapControlsPosition, TileUrlTemplateArgs, Location, Extent } from '@progress/kendo-charts';
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { DomSanitizer } from '@angular/platform-browser';
|
|
6
|
+
import { BubbleLayerOptions, BubbleLayerSymbol } from '@progress/kendo-charts';
|
|
7
|
+
import { ShapeOptions } from '@progress/kendo-drawing';
|
|
8
|
+
import { CollectionService } from '../common/collection.service';
|
|
9
|
+
import { ConfigurationService } from '../common/configuration.service';
|
|
10
|
+
import { LayerComponent } from './layer.component';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* A vector shape layer for bubble maps.
|
|
14
|
+
*/
|
|
15
|
+
export declare class BubbleLayerComponent extends LayerComponent implements BubbleLayerOptions {
|
|
16
|
+
protected configurationService: ConfigurationService;
|
|
17
|
+
protected collectionService: CollectionService;
|
|
18
|
+
protected sanitizer: DomSanitizer;
|
|
19
|
+
data?: any[];
|
|
20
|
+
locationField?: string;
|
|
21
|
+
valueField?: string;
|
|
22
|
+
symbol?: BubbleLayerSymbol;
|
|
23
|
+
style?: ShapeOptions;
|
|
24
|
+
maxSize?: number;
|
|
25
|
+
minSize?: number;
|
|
26
|
+
constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleLayerComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleLayerComponent, "kendo-map-bubble-layer", never, { "data": "data"; "locationField": "locationField"; "valueField": "valueField"; "symbol": "symbol"; "style": "style"; "maxSize": "maxSize"; "minSize": "minSize"; }, {}, never, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { TemplateRef } from '@angular/core';
|
|
6
|
+
import { ConfigurationService } from '../../common/configuration.service';
|
|
7
|
+
import { SettingsComponent } from '../../common/settings.component';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* The configuration options of the Map layer tooltip.
|
|
11
|
+
*
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export declare class LayerTooltipComponent extends SettingsComponent {
|
|
15
|
+
configurationService: ConfigurationService;
|
|
16
|
+
layerTooltipTemplate: TemplateRef<any>;
|
|
17
|
+
constructor(configurationService: ConfigurationService);
|
|
18
|
+
get layerTooltipTemplateRef(): TemplateRef<any>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayerTooltipComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayerTooltipComponent, "kendo-map-layer-tooltip", never, {}, {}, ["layerTooltipTemplate"], never>;
|
|
21
|
+
}
|
|
@@ -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 { SimpleChange, TemplateRef } from '@angular/core';
|
|
6
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
7
|
+
import { Extent, MapLayerType } from '@progress/kendo-charts';
|
|
8
|
+
import { CollectionItemComponent } from '../common/collection-item.component';
|
|
9
|
+
import { CollectionService } from '../common/collection.service';
|
|
10
|
+
import { ConfigurationService } from '../common/configuration.service';
|
|
11
|
+
import { LayerTooltipComponent } from './layer/tooltip.component';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare class LayerComponent extends CollectionItemComponent {
|
|
17
|
+
protected type: MapLayerType;
|
|
18
|
+
protected configurationService: ConfigurationService;
|
|
19
|
+
protected collectionService: CollectionService;
|
|
20
|
+
protected sanitizer: DomSanitizer;
|
|
21
|
+
attribution: string;
|
|
22
|
+
extent?: Extent | [[number, number], [number, number]];
|
|
23
|
+
maxZoom?: number;
|
|
24
|
+
minZoom?: number;
|
|
25
|
+
opacity?: number;
|
|
26
|
+
zIndex: number;
|
|
27
|
+
layerTooltip: LayerTooltipComponent;
|
|
28
|
+
constructor(type: MapLayerType, configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
29
|
+
ngOnChanges(changes: {
|
|
30
|
+
[propertyName: string]: SimpleChange;
|
|
31
|
+
}): void;
|
|
32
|
+
get layerTooltipTemplateRef(): TemplateRef<any>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayerComponent, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LayerComponent, never, never, { "attribution": "attribution"; "extent": "extent"; "maxZoom": "maxZoom"; "minZoom": "minZoom"; "opacity": "opacity"; "zIndex": "zIndex"; }, {}, ["layerTooltip"]>;
|
|
35
|
+
}
|
|
@@ -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 { QueryList } from '@angular/core';
|
|
6
|
+
import { CollectionComponent } from '../common/collection.component';
|
|
7
|
+
import { CollectionService, Item } from '../common/collection.service';
|
|
8
|
+
import { ConfigurationService } from '../common/configuration.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* A collection of one or more layers.
|
|
12
|
+
*/
|
|
13
|
+
export declare class LayersComponent extends CollectionComponent {
|
|
14
|
+
protected configurationService: ConfigurationService;
|
|
15
|
+
protected collectionService: CollectionService;
|
|
16
|
+
children: QueryList<Item>;
|
|
17
|
+
constructor(configurationService: ConfigurationService, collectionService: CollectionService);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayersComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayersComponent, "kendo-map-layers", never, {}, {}, ["children"], never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { DomSanitizer } from '@angular/platform-browser';
|
|
6
|
+
import { MarkerLayerOptions } from '@progress/kendo-charts';
|
|
7
|
+
import { CollectionService } from '../common/collection.service';
|
|
8
|
+
import { ConfigurationService } from '../common/configuration.service';
|
|
9
|
+
import { LayerComponent } from './layer.component';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* A vector shape layer for bubble maps.
|
|
13
|
+
*/
|
|
14
|
+
export declare class MarkerLayerComponent extends LayerComponent implements MarkerLayerOptions {
|
|
15
|
+
protected configurationService: ConfigurationService;
|
|
16
|
+
protected collectionService: CollectionService;
|
|
17
|
+
protected sanitizer: DomSanitizer;
|
|
18
|
+
data?: any[];
|
|
19
|
+
locationField?: string;
|
|
20
|
+
titleField?: string;
|
|
21
|
+
shape?: string | 'pinTarget' | 'pin';
|
|
22
|
+
constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkerLayerComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarkerLayerComponent, "kendo-map-marker-layer", never, { "data": "data"; "locationField": "locationField"; "titleField": "titleField"; "shape": "shape"; }, {}, never, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { DomSanitizer } from '@angular/platform-browser';
|
|
6
|
+
import { ShapeLayerOptions } from '@progress/kendo-charts';
|
|
7
|
+
import { ShapeOptions } from '@progress/kendo-drawing';
|
|
8
|
+
import { CollectionService } from '../common/collection.service';
|
|
9
|
+
import { ConfigurationService } from '../common/configuration.service';
|
|
10
|
+
import { LayerComponent } from './layer.component';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* Defines a vector shape layer bound to GeoJSON data.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ShapeLayerComponent extends LayerComponent implements ShapeLayerOptions {
|
|
16
|
+
protected configurationService: ConfigurationService;
|
|
17
|
+
protected collectionService: CollectionService;
|
|
18
|
+
protected sanitizer: DomSanitizer;
|
|
19
|
+
data?: any;
|
|
20
|
+
style?: ShapeOptions;
|
|
21
|
+
constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShapeLayerComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShapeLayerComponent, "kendo-map-shape-layer", never, { "data": "data"; "style": "style"; }, {}, never, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { DomSanitizer } from '@angular/platform-browser';
|
|
6
|
+
import { TileLayerOptions, TileUrlTemplateArgs } from '@progress/kendo-charts';
|
|
7
|
+
import { CollectionService } from '../common/collection.service';
|
|
8
|
+
import { ConfigurationService } from '../common/configuration.service';
|
|
9
|
+
import { LayerComponent } from './layer.component';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
/**
|
|
12
|
+
* Defines a vector shape layer bound to GeoJSON data.
|
|
13
|
+
*/
|
|
14
|
+
export declare class TileLayerComponent extends LayerComponent implements TileLayerOptions {
|
|
15
|
+
protected configurationService: ConfigurationService;
|
|
16
|
+
protected collectionService: CollectionService;
|
|
17
|
+
protected sanitizer: DomSanitizer;
|
|
18
|
+
tileSize: number;
|
|
19
|
+
subdomains: string[];
|
|
20
|
+
urlTemplate: (args: TileUrlTemplateArgs) => string;
|
|
21
|
+
constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TileLayerComponent, "kendo-map-tile-layer", never, { "tileSize": "tileSize"; "subdomains": "subdomains"; "urlTemplate": "urlTemplate"; }, {}, never, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
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 { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, Renderer2, SimpleChange } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { Location, Map, MapControls } from '@progress/kendo-charts';
|
|
8
|
+
import { Subscription } from 'rxjs';
|
|
9
|
+
import { ConfigurationService } from './common/configuration.service';
|
|
10
|
+
import { MapInstanceObserver } from './common/map-instance-observer';
|
|
11
|
+
import { BeforeResetEvent, MapClickEvent, MarkerActivateEvent, MarkerClickEvent, MarkerCreatedEvent, PanEndEvent, PanEvent, ResetEvent, ShapeClickEvent, ShapeCreatedEvent, ShapeFeatureCreatedEvent, ShapeMouseEnterEvent, ShapeMouseLeaveEvent, ZoomEndEvent, ZoomStartEvent } from './events';
|
|
12
|
+
import { InstanceEventService } from './events/instance-event.service';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
/**
|
|
15
|
+
* A sample component
|
|
16
|
+
*/
|
|
17
|
+
export declare class MapComponent implements AfterViewInit, AfterViewChecked, OnChanges {
|
|
18
|
+
configurationService: ConfigurationService;
|
|
19
|
+
protected instanceEventService: InstanceEventService;
|
|
20
|
+
protected element: ElementRef;
|
|
21
|
+
protected localizationService: LocalizationService;
|
|
22
|
+
protected changeDetector: ChangeDetectorRef;
|
|
23
|
+
protected ngZone: NgZone;
|
|
24
|
+
protected renderer: Renderer2;
|
|
25
|
+
/**
|
|
26
|
+
* Limits the automatic resizing of the Map. Sets the maximum number of times per second
|
|
27
|
+
* that the component redraws its content when the size of its container changes.
|
|
28
|
+
* Defaults to `10`. To disable the automatic resizing, set it to `0`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* _@Component({
|
|
33
|
+
* selector: 'my-app',
|
|
34
|
+
* template: `
|
|
35
|
+
* <kendo-map [resizeRateLimit]="2">
|
|
36
|
+
* <!-- ^^^^^^^^^^^^^^^^^^^^^^
|
|
37
|
+
* Will update the size of the Map up to two times a second.
|
|
38
|
+
* Resize the example pane or window to try it out.
|
|
39
|
+
* -->
|
|
40
|
+
* </kendo-map>
|
|
41
|
+
* `
|
|
42
|
+
* })
|
|
43
|
+
* export class AppComponent {
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
resizeRateLimit: number;
|
|
48
|
+
/**
|
|
49
|
+
* The map center. Coordinates are listed as `[Latitude, Longitude]`.
|
|
50
|
+
*/
|
|
51
|
+
center: Location | [number, number] | number[];
|
|
52
|
+
/**
|
|
53
|
+
* The configuration of built-in map controls.
|
|
54
|
+
*/
|
|
55
|
+
controls: MapControls;
|
|
56
|
+
/**
|
|
57
|
+
* The minimum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
|
|
58
|
+
*
|
|
59
|
+
* @default 1
|
|
60
|
+
*/
|
|
61
|
+
minZoom: number;
|
|
62
|
+
/**
|
|
63
|
+
* The maximum zoom level. Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
|
|
64
|
+
*
|
|
65
|
+
* @default 19
|
|
66
|
+
*/
|
|
67
|
+
maxZoom: number;
|
|
68
|
+
/**
|
|
69
|
+
* The size of the map in pixels at zoom level 0.
|
|
70
|
+
*
|
|
71
|
+
* @default 256
|
|
72
|
+
*/
|
|
73
|
+
minSize?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Controls whether the user can pan the map.
|
|
76
|
+
*
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
pannable: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Specifies whether the map should wrap around the east-west edges.
|
|
82
|
+
*
|
|
83
|
+
* @default true
|
|
84
|
+
*/
|
|
85
|
+
wraparound: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The initial zoom level.
|
|
88
|
+
*
|
|
89
|
+
* Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
|
|
90
|
+
*
|
|
91
|
+
* The map size is derived from the zoom level and minScale options: `size = (2 ^ zoom) * minSize`
|
|
92
|
+
*
|
|
93
|
+
* > Map zoom rounds floating point numbers. This is done so as the majority of web maps use the whole [`zoom levels`](https://wiki.openstreetmap.org/wiki/Zoom_levels) 0 through to 19.
|
|
94
|
+
*
|
|
95
|
+
* @default 3
|
|
96
|
+
*/
|
|
97
|
+
zoom: number;
|
|
98
|
+
/**
|
|
99
|
+
* Controls whether the map zoom level can be changed by the user.
|
|
100
|
+
*
|
|
101
|
+
* @default true
|
|
102
|
+
*/
|
|
103
|
+
zoomable: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
|
|
106
|
+
*/
|
|
107
|
+
beforeReset: EventEmitter<BeforeResetEvent>;
|
|
108
|
+
/**
|
|
109
|
+
* Fired when the user clicks on the map.
|
|
110
|
+
*/
|
|
111
|
+
mapClick: EventEmitter<MapClickEvent>;
|
|
112
|
+
/**
|
|
113
|
+
* Fired when a marker has been displayed and has a DOM element assigned.
|
|
114
|
+
*/
|
|
115
|
+
markerActivate: EventEmitter<MarkerActivateEvent>;
|
|
116
|
+
/**
|
|
117
|
+
* Fired when a marker has been clicked or tapped.
|
|
118
|
+
*/
|
|
119
|
+
markerClick: EventEmitter<MarkerClickEvent>;
|
|
120
|
+
/**
|
|
121
|
+
* Fired when a marker has been created and is about to be displayed.
|
|
122
|
+
*
|
|
123
|
+
* Cancelling the event will prevent the marker from being shown.
|
|
124
|
+
*/
|
|
125
|
+
markerCreated: EventEmitter<MarkerCreatedEvent>;
|
|
126
|
+
/**
|
|
127
|
+
* Fires after the map viewport has been moved.
|
|
128
|
+
*/
|
|
129
|
+
panEnd: EventEmitter<PanEndEvent>;
|
|
130
|
+
/**
|
|
131
|
+
* Fired while the map viewport is being moved.
|
|
132
|
+
*/
|
|
133
|
+
pan: EventEmitter<PanEvent>;
|
|
134
|
+
/**
|
|
135
|
+
* Fired when the map is reset.
|
|
136
|
+
*
|
|
137
|
+
* This typically occurs on initial load and after a zoom/center change.
|
|
138
|
+
*/
|
|
139
|
+
reset: EventEmitter<ResetEvent>;
|
|
140
|
+
/**
|
|
141
|
+
* Fired when a shape is clicked or tapped.
|
|
142
|
+
*/
|
|
143
|
+
shapeClick: EventEmitter<ShapeClickEvent>;
|
|
144
|
+
/**
|
|
145
|
+
* Fired when a shape is created, but is not rendered yet.
|
|
146
|
+
*/
|
|
147
|
+
shapeCreated: EventEmitter<ShapeCreatedEvent>;
|
|
148
|
+
/**
|
|
149
|
+
* Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
|
|
150
|
+
*/
|
|
151
|
+
shapeFeatureCreated: EventEmitter<ShapeFeatureCreatedEvent>;
|
|
152
|
+
/**
|
|
153
|
+
* Fired when the mouse enters a shape.
|
|
154
|
+
*
|
|
155
|
+
* > This event will fire reliably only for shapes that have set fill color.
|
|
156
|
+
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
157
|
+
*/
|
|
158
|
+
shapeMouseEnter: EventEmitter<ShapeMouseEnterEvent>;
|
|
159
|
+
/**
|
|
160
|
+
* Fired when the mouse leaves a shape.
|
|
161
|
+
*
|
|
162
|
+
* > This event will fire reliably only for shapes that have set fill color.
|
|
163
|
+
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
164
|
+
*/
|
|
165
|
+
shapeMouseLeave: EventEmitter<ShapeMouseLeaveEvent>;
|
|
166
|
+
/**
|
|
167
|
+
* Fired when the map zoom level is about to change.
|
|
168
|
+
*
|
|
169
|
+
* Cancelling the event will prevent the user action.
|
|
170
|
+
*/
|
|
171
|
+
zoomStart: EventEmitter<ZoomStartEvent>;
|
|
172
|
+
/**
|
|
173
|
+
* Fired when the map zoom level has changed.
|
|
174
|
+
*/
|
|
175
|
+
zoomEnd: EventEmitter<ZoomEndEvent>;
|
|
176
|
+
surfaceElement: ElementRef;
|
|
177
|
+
instance: Map;
|
|
178
|
+
protected options: any;
|
|
179
|
+
protected theme: any;
|
|
180
|
+
protected resizeTimeout: any;
|
|
181
|
+
protected redrawTimeout: any;
|
|
182
|
+
protected destroyed: boolean;
|
|
183
|
+
protected rtl: boolean;
|
|
184
|
+
protected subscriptions: Subscription;
|
|
185
|
+
protected optionsChange: Subscription;
|
|
186
|
+
constructor(configurationService: ConfigurationService, instanceEventService: InstanceEventService, element: ElementRef, localizationService: LocalizationService, changeDetector: ChangeDetectorRef, ngZone: NgZone, renderer: Renderer2);
|
|
187
|
+
ngAfterViewInit(): void;
|
|
188
|
+
ngAfterViewChecked(): void;
|
|
189
|
+
ngOnChanges(changes: {
|
|
190
|
+
[propertyName: string]: SimpleChange;
|
|
191
|
+
}): void;
|
|
192
|
+
/**
|
|
193
|
+
* Detects the size of the container and redraws the Map.
|
|
194
|
+
* Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
|
|
195
|
+
*/
|
|
196
|
+
resize(): void;
|
|
197
|
+
/**
|
|
198
|
+
* @hidden
|
|
199
|
+
*/
|
|
200
|
+
onResize(): void;
|
|
201
|
+
protected get canRender(): boolean;
|
|
202
|
+
protected get autoResize(): boolean;
|
|
203
|
+
protected init(): void;
|
|
204
|
+
protected initConfig(): void;
|
|
205
|
+
protected createInstance(element: any, observer: MapInstanceObserver): void;
|
|
206
|
+
protected activeEmitter(name: string): any;
|
|
207
|
+
protected trigger(name: string, e: any): boolean;
|
|
208
|
+
protected run(callback: any, inZone?: boolean, detectChanges?: boolean): void;
|
|
209
|
+
protected detectChanges(): void;
|
|
210
|
+
protected setDirection(): void;
|
|
211
|
+
protected get isRTL(): boolean;
|
|
212
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapComponent, never>;
|
|
213
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapComponent, "kendo-map", ["kendoChart"], { "resizeRateLimit": "resizeRateLimit"; "center": "center"; "controls": "controls"; "minZoom": "minZoom"; "maxZoom": "maxZoom"; "minSize": "minSize"; "pannable": "pannable"; "wraparound": "wraparound"; "zoom": "zoom"; "zoomable": "zoomable"; }, { "beforeReset": "beforeReset"; "mapClick": "mapClick"; "markerActivate": "markerActivate"; "markerClick": "markerClick"; "markerCreated": "markerCreated"; "panEnd": "panEnd"; "pan": "pan"; "reset": "reset"; "shapeClick": "shapeClick"; "shapeCreated": "shapeCreated"; "shapeFeatureCreated": "shapeFeatureCreated"; "shapeMouseEnter": "shapeMouseEnter"; "shapeMouseLeave": "shapeMouseLeave"; "zoomStart": "zoomStart"; "zoomEnd": "zoomEnd"; }, never, never>;
|
|
214
|
+
}
|
|
@@ -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 { MapComponent } from './map.component';
|
|
6
|
+
import { BubbleLayerComponent } from './map/bubble-layer.component';
|
|
7
|
+
import { LayerTooltipComponent } from './map/layer/tooltip.component';
|
|
8
|
+
import { LayersComponent } from './map/layers.component';
|
|
9
|
+
import { MarkerLayerComponent } from './map/marker-layer.component';
|
|
10
|
+
import { ShapeLayerComponent } from './map/shape-layer.component';
|
|
11
|
+
import { TileLayerComponent } from './map/tile-layer.component';
|
|
12
|
+
export { MapComponent, LayersComponent, BubbleLayerComponent, MarkerLayerComponent, ShapeLayerComponent, TileLayerComponent, LayerTooltipComponent };
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const MAP_DIRECTIVES: any[];
|
package/map.module.d.ts
ADDED
|
@@ -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 * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./map.component";
|
|
7
|
+
import * as i2 from "./map/layers.component";
|
|
8
|
+
import * as i3 from "./map/bubble-layer.component";
|
|
9
|
+
import * as i4 from "./map/marker-layer.component";
|
|
10
|
+
import * as i5 from "./map/shape-layer.component";
|
|
11
|
+
import * as i6 from "./map/tile-layer.component";
|
|
12
|
+
import * as i7 from "./map/layer/tooltip.component";
|
|
13
|
+
import * as i8 from "@angular/common";
|
|
14
|
+
import * as i9 from "@progress/kendo-angular-common";
|
|
15
|
+
/**
|
|
16
|
+
* Sample module
|
|
17
|
+
*/
|
|
18
|
+
export declare class MapModule {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapModule, never>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.MapComponent, typeof i2.LayersComponent, typeof i3.BubbleLayerComponent, typeof i4.MarkerLayerComponent, typeof i5.ShapeLayerComponent, typeof i6.TileLayerComponent, typeof i7.LayerTooltipComponent], [typeof i8.CommonModule, typeof i9.ResizeSensorModule], [typeof i1.MapComponent, typeof i2.LayersComponent, typeof i3.BubbleLayerComponent, typeof i4.MarkerLayerComponent, typeof i5.ShapeLayerComponent, typeof i6.TileLayerComponent, typeof i7.LayerTooltipComponent]>;
|
|
21
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MapModule>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 { PackageMetadata } from '@progress/kendo-licensing';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export declare const packageMetadata: PackageMetadata;
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@progress/kendo-angular-map",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Kendo UI Map for Angular",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
+
"author": "Progress",
|
|
7
|
+
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/telerik/kendo-angular-map.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/telerik/kendo-angular"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"Angular",
|
|
17
|
+
"DataViz",
|
|
18
|
+
"Kendo UI",
|
|
19
|
+
"Map",
|
|
20
|
+
"Maps",
|
|
21
|
+
"Progress",
|
|
22
|
+
"Spatial"
|
|
23
|
+
],
|
|
24
|
+
"@progress": {
|
|
25
|
+
"friendlyName": "Map"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@progress/kendo-charts": "dev",
|
|
29
|
+
"@progress/kendo-schematics": "^3.0.0",
|
|
30
|
+
"tslib": "^2.3.1"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@angular/common": "12 - 14",
|
|
34
|
+
"@angular/core": "12 - 14",
|
|
35
|
+
"@progress/kendo-angular-common": "^3.0.0",
|
|
36
|
+
"@progress/kendo-angular-l10n": "^3.0.0",
|
|
37
|
+
"@progress/kendo-drawing": "^1.1.2",
|
|
38
|
+
"@progress/kendo-licensing": "^1.0.0",
|
|
39
|
+
"rxjs": "^6.4.0 || ^7.0.0"
|
|
40
|
+
},
|
|
41
|
+
"config": {
|
|
42
|
+
"commitizen": {
|
|
43
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
44
|
+
},
|
|
45
|
+
"ghooks": {
|
|
46
|
+
"commit-msg": "validate-commit-msg"
|
|
47
|
+
},
|
|
48
|
+
"validate-commit-msg": {
|
|
49
|
+
"types": [
|
|
50
|
+
"feat",
|
|
51
|
+
"fix",
|
|
52
|
+
"docs",
|
|
53
|
+
"style",
|
|
54
|
+
"refactor",
|
|
55
|
+
"perf",
|
|
56
|
+
"test",
|
|
57
|
+
"chore",
|
|
58
|
+
"revert"
|
|
59
|
+
],
|
|
60
|
+
"warnOnFail": false,
|
|
61
|
+
"maxSubjectLength": 100
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"schematics": "./schematics/collection.json",
|
|
65
|
+
"release": {
|
|
66
|
+
"debug": false,
|
|
67
|
+
"branchTags": {
|
|
68
|
+
"develop": "dev"
|
|
69
|
+
},
|
|
70
|
+
"fallbackTags": {
|
|
71
|
+
"dev": "latest"
|
|
72
|
+
},
|
|
73
|
+
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
|
|
74
|
+
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
75
|
+
"getLastRelease": "@telerik/semantic-prerelease/getLastRelease",
|
|
76
|
+
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
|
|
77
|
+
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
|
|
78
|
+
},
|
|
79
|
+
"main": "bundles/kendo-angular-map.umd.js",
|
|
80
|
+
"module": "fesm2015/kendo-angular-map.js",
|
|
81
|
+
"es2015": "fesm2015/kendo-angular-map.js",
|
|
82
|
+
"esm2015": "esm2015/kendo-angular-map.js",
|
|
83
|
+
"fesm2015": "fesm2015/kendo-angular-map.js",
|
|
84
|
+
"typings": "kendo-angular-map.d.ts",
|
|
85
|
+
"sideEffects": false
|
|
86
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Adds Kendo Angular Package to the application.",
|
|
6
|
+
"factory": "./ngAdd",
|
|
7
|
+
"schema": "./ngAdd/schema.json",
|
|
8
|
+
"hidden": true,
|
|
9
|
+
"private": true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
8
|
+
function default_1(options) {
|
|
9
|
+
const finalOptions = Object.assign(Object.assign({}, options), {
|
|
10
|
+
// Default module to import, e.g 'GridModule'
|
|
11
|
+
mainNgModule: 'MapModule',
|
|
12
|
+
// Package name, e.g 'grid'
|
|
13
|
+
package: 'map',
|
|
14
|
+
// Additional dependencies to install.
|
|
15
|
+
// See https://github.com/telerik/kendo-schematics/issues/28
|
|
16
|
+
peerDependencies: {
|
|
17
|
+
// "@progress/kendo-angular-foo": "^1.0.0"
|
|
18
|
+
} });
|
|
19
|
+
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
20
|
+
}
|
|
21
|
+
exports.default = default_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO;QAEV,6CAA6C;QAC7C,YAAY,EAAE,WAAW;QAEzB,2BAA2B;QAC3B,OAAO,EAAE,KAAK;QAEd,sCAAsC;QACtC,4DAA4D;QAC5D,gBAAgB,EAAE;QACd,0CAA0C;SAC7C,GACJ,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AAlBD,4BAkBC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "SchematicsKendoAngularPackage",
|
|
4
|
+
"title": "Kendo Angular Package Options Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"theme": {
|
|
8
|
+
"enum": [
|
|
9
|
+
"default",
|
|
10
|
+
"bootstrap",
|
|
11
|
+
"material"
|
|
12
|
+
],
|
|
13
|
+
"default": "default",
|
|
14
|
+
"description": "The theme to apply"
|
|
15
|
+
},
|
|
16
|
+
"export": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"default": false,
|
|
19
|
+
"description": "Specifies if declaring module exports the component."
|
|
20
|
+
},
|
|
21
|
+
"skipInstall": {
|
|
22
|
+
"description": "Skip installing Kendo dependency packages.",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": []
|
|
28
|
+
}
|