1 | import { DoCheck, IterableDiffer, IterableDiffers, NgZone, OnDestroy, OnInit } from '@angular/core';
|
2 | import { Layer } from 'leaflet';
|
3 | import { LeafletDirective } from '../core/leaflet.directive';
|
4 | import * as i0 from "@angular/core";
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare class LeafletLayersDirective implements DoCheck, OnDestroy, OnInit {
|
21 | private differs;
|
22 | private zone;
|
23 | layersValue: Layer[];
|
24 | layersDiffer: IterableDiffer<Layer>;
|
25 | set layers(v: Layer[]);
|
26 | get layers(): Layer[];
|
27 | private leafletDirective;
|
28 | constructor(leafletDirective: LeafletDirective, differs: IterableDiffers, zone: NgZone);
|
29 | ngDoCheck(): void;
|
30 | ngOnInit(): void;
|
31 | ngOnDestroy(): void;
|
32 | /**
|
33 | * Update the state of the layers.
|
34 | * We use an iterable differ to synchronize the map layers with the state of the bound layers array.
|
35 | * This is important because it allows us to react to changes to the contents of the array as well
|
36 | * as changes to the actual array instance.
|
37 | */
|
38 | private updateLayers;
|
39 | static ɵfac: i0.ɵɵFactoryDeclaration<LeafletLayersDirective, never>;
|
40 | static ɵdir: i0.ɵɵDirectiveDeclaration<LeafletLayersDirective, "[leafletLayers]", never, { "layers": { "alias": "leafletLayers"; "required": false; }; }, {}, never, never, false, never>;
|
41 | }
|