@igo2/context
Version:
31 lines (30 loc) • 1.53 kB
TypeScript
import { OnDestroy, OnInit } from '@angular/core';
import { ConfigService } from '@igo2/core/config';
import { RouteService } from '@igo2/core/route';
import { LayerService, MapBrowserComponent, StyleListService, StyleService } from '@igo2/geo';
import type { IgoMap } from '@igo2/geo';
import { ContextService } from './context.service';
import * as i0 from "@angular/core";
export declare class LayerContextDirective implements OnInit, OnDestroy {
private component;
private contextService;
private layerService;
private configService;
private styleListService;
private styleService;
private route;
private context$$;
private queryParams;
private contextLayers;
removeLayersOnContextChange: boolean;
get map(): IgoMap;
constructor(component: MapBrowserComponent, contextService: ContextService, layerService: LayerService, configService: ConfigService, styleListService: StyleListService, styleService: StyleService, route: RouteService);
ngOnInit(): void;
ngOnDestroy(): void;
private handleContextChange;
private getFlattenOptions;
private handleAddLayers;
private computeLayerVisibilityFromUrl;
static ɵfac: i0.ɵɵFactoryDeclaration<LayerContextDirective, [null, null, null, null, null, null, { optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<LayerContextDirective, "[igoLayerContext]", never, { "removeLayersOnContextChange": { "alias": "removeLayersOnContextChange"; "required": false; }; }, {}, never, never, true, never>;
}