1 | import { DoCheck, EventEmitter, KeyValueDiffer, KeyValueDiffers, NgZone, OnDestroy, OnInit } from '@angular/core';
|
2 | import { Control, 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 | export declare class LeafletBaseLayersDirective implements DoCheck, OnDestroy, OnInit {
|
17 | private differs;
|
18 | private zone;
|
19 | baseLayersValue: {
|
20 | [name: string]: Layer;
|
21 | };
|
22 | baseLayersDiffer: KeyValueDiffer<string, Layer>;
|
23 | set baseLayers(v: {
|
24 | [name: string]: Layer;
|
25 | });
|
26 | get baseLayers(): {
|
27 | [name: string]: Layer;
|
28 | };
|
29 | layersControlOptions: Control.LayersOptions;
|
30 | layersControlReady: EventEmitter<Control.Layers>;
|
31 | private baseLayer;
|
32 | private leafletDirective;
|
33 | private controlLayers;
|
34 | constructor(leafletDirective: LeafletDirective, differs: KeyValueDiffers, zone: NgZone);
|
35 | ngOnDestroy(): void;
|
36 | ngOnInit(): void;
|
37 | ngDoCheck(): void;
|
38 | protected updateBaseLayers(): void;
|
39 | /**
|
40 | * Check the current base layer and change it to the new one if necessary
|
41 | */
|
42 | protected syncBaseLayer(): void;
|
43 | static ɵfac: i0.ɵɵFactoryDeclaration<LeafletBaseLayersDirective, never>;
|
44 | static ɵdir: i0.ɵɵDirectiveDeclaration<LeafletBaseLayersDirective, "[leafletBaseLayers]", never, { "baseLayers": { "alias": "leafletBaseLayers"; "required": false; }; "layersControlOptions": { "alias": "leafletLayersControlOptions"; "required": false; }; }, { "layersControlReady": "leafletLayersControlReady"; }, never, never, false, never>;
|
45 | }
|