import * as ol_layer from 'ol/layer'; import { Layer } from 'ol/layer'; import * as ol_source from 'ol/source'; import { Source } from 'ol/source'; import * as ol_Feature from 'ol/Feature'; import { FeatureLike } from 'ol/Feature'; import * as ol_geom from 'ol/geom'; import * as i0 from '@angular/core'; import { OnInit, ViewRef } from '@angular/core'; import { VectorSourceEvent } from 'ol/source/Vector'; import { AccessRightsModel } from 'hslayers-ng/types'; import { HsDialogComponent, HsDialogContainerService } from 'hslayers-ng/common/dialogs'; import { HsDrawService } from 'hslayers-ng/services/draw'; import { HsCommonLaymanService } from 'hslayers-ng/common/layman'; import { HsMapService } from 'hslayers-ng/services/map'; import { HsGuiOverlayBaseComponent, HsPanelBaseComponent } from 'hslayers-ng/common/panels'; import { getTitle } from 'hslayers-ng/common/extensions'; import { BehaviorSubject } from 'rxjs'; import { Style } from 'ol/style'; import { HsLanguageService } from 'hslayers-ng/services/language'; import { HsLayoutService } from 'hslayers-ng/services/layout'; declare class HsDrawLayerMetadataDialogComponent implements HsDialogComponent, OnInit { hsMapService: HsMapService; hsDialogContainerService: HsDialogContainerService; hsCommonLaymanService: HsCommonLaymanService; hsDrawService: HsDrawService; data: object; newLayerPath: string; attributes: Array<{ id: number; name: string; value: string; }>; layer: ol_layer.Vector>, ol_Feature.default>; title: string; path: string; folderVisible: boolean; type: 'draw' | 'layman'; access_rights: AccessRightsModel; onlyMineFilterVisible: boolean; tmpFeatures: FeatureLike[]; viewRef: ViewRef; ngOnInit(): void; titleChanged(): void; confirm(): void; /** * Creates an event for the feature event. * If the layer is new, the event is 'addfeature'. * If the layer is existing, the event is a VectorSourceEvent with the features. */ getFeatureEvent(): "addfeature" | VectorSourceEvent; cancel(): void; pathChanged(): void; addAttr(): void; selectLayer(layer: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsDrawToolbarComponent extends HsGuiOverlayBaseComponent { hsDrawService: HsDrawService; private hsMapService; private hsEventBusService; drawToolbarExpanded: boolean; onlyMineFilterVisible: boolean; name: string; getTitle: typeof getTitle; constructor(); /** * Add listener for layer visibility change * @param layer - Layer to listen to */ addVisibilityChangeListener(layer: Layer): void; selectionMenuToggled(): void; toggleDrawToolbar(): void; selectLayer(layer: any): void; controlLayerListAction(): void; setType(what: any): void; finishDrawing(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsDrawComponent extends HsPanelBaseComponent implements OnInit { hsDrawService: HsDrawService; hsDialogContainerService: HsDialogContainerService; name: string; selectedOption: BehaviorSubject; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface DrawToolDefinition { type: string; icon: string; title: string; } declare class HsDrawPanelComponent { hsDrawService: HsDrawService; hsLayoutService: HsLayoutService; hsLanguageService: HsLanguageService; inToolbar: i0.InputSignal; onFeatureSelected: any; onFeatureDeselected: any; drawToolbarExpanded: any; opacity: number; linewidth: number; fillcolor: any; onlyMineFilterVisible: boolean; getTitle: typeof getTitle; sidebarPosition: string; drawTools: DrawToolDefinition[]; translateString(module: string, text: string): string; changeSnapSource(layer: any): void; setType(what: any): void; activateDrawing(withStyle?: any): void; selectLayer(layer: any): void; updateStyle(): void; /** * Dynamically create draw feature style according to parameters selected in * hs.styler.colorDirective * @param {Event} e - optional parameter passed when changeStyle is called * for 'ondrawend' event features * @returns Style definition */ changeStyle(e?: any): Style; drawStyle(): { 'background-color': string; border: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { HsDrawComponent, HsDrawLayerMetadataDialogComponent, HsDrawPanelComponent, HsDrawToolbarComponent };