UNPKG

@obliczeniowo/elementary

Version:
31 lines (30 loc) 1.74 kB
import { Renderer2, RendererFactory2 } from '@angular/core'; import { ColorType, IPoint2D, Point2D } from '@obliczeniowo/elementary/classes'; import { DrawingContextInterface } from '@obliczeniowo/elementary/drawing'; import { OblFileService } from '@obliczeniowo/elementary/files'; import { MapboxLike } from '../interfaces/mapbox-like'; import { ToOverrideLayer } from '../interfaces/to-override-layer'; import * as i0 from "@angular/core"; /** * Service that provide some extra functionality for mapbox library made to use maps in web applications */ export declare class OblMapboxService { protected file: OblFileService; /** * Variable that contain table of layers id and properties that can be override from default one */ toOverride: ToOverrideLayer[]; protected renderer: Renderer2; constructor(file: OblFileService, rendererFactory: RendererFactory2); protected drawText(feature: any, dc: DrawingContextInterface, map: MapboxLike, override?: ToOverrideLayer, point?: IPoint2D): void; /** * Method to export mapbox layers to SVG file * @param map mapbox.map object */ exportToSvg(map: MapboxLike, draw?: (dc: DrawingContextInterface) => void): void; exportToPdf(map: MapboxLike, draw?: ((dc: DrawingContextInterface) => void)): void; protected draw(map: MapboxLike, dc: DrawingContextInterface, draw?: (dc: DrawingContextInterface) => void): void; protected drawSplittedText(dc: DrawingContextInterface, text: string, position: Point2D, color: ColorType, haloColor: ColorType | undefined, maxLength: number): number; static ɵfac: i0.ɵɵFactoryDeclaration<OblMapboxService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OblMapboxService>; }