@watergis/maplibre-gl-terradraw
Version:
This plugin is to add controls to your Maplibre for drawing powered by Terra Draw library.
54 lines • 2.38 kB
TypeScript
import { MaplibreTerradrawControl } from './MaplibreTerradrawControl';
import type { TerradrawMode, ValhallaControlOptions } from '../interfaces';
import { type Map, type StyleSpecification } from 'maplibre-gl';
import type { GeoJSONStoreFeatures, GeoJSONStoreGeometries } from 'terra-draw';
import { ModalDialog, type routingDistanceUnitType, type costingModelType, type Contour } from '../helpers';
export declare class MaplibreValhallaControl extends MaplibreTerradrawControl {
private controlOptions;
private valhallaOptions;
private _modalDialog;
get valhallaUrl(): string;
set valhallaUrl(value: string);
get routingCostingModel(): costingModelType;
set routingCostingModel(value: costingModelType);
get routingDistanceUnit(): routingDistanceUnitType;
set routingDistanceUnit(value: routingDistanceUnitType);
get timeIsochroneCostingModel(): costingModelType;
set timeIsochroneCostingModel(value: costingModelType);
get distanceIsochroneCostingModel(): costingModelType;
set distanceIsochroneCostingModel(value: costingModelType);
get isochroneContours(): Contour[];
set isochroneContours(value: Contour[]);
get fontGlyphs(): string[];
set fontGlyphs(fontNames: string[]);
get settingDialog(): ModalDialog;
set settingDialog(value: ModalDialog);
constructor(options?: ValhallaControlOptions);
onAdd(map: Map): HTMLElement;
onRemove(): void;
activate(): void;
cleanStyle(style: StyleSpecification, options?: {
excludeTerraDrawLayers?: boolean;
onlyTerraDrawLayers?: boolean;
}): StyleSpecification;
private createSettingsDialog;
private switchTab;
private createRoutingContent;
private createIsochroneContent;
private createContoursTable;
private createContourRow;
private updateAddRowButtonState;
protected addTerradrawButton(mode: TerradrawMode): void;
private handleSettingDialog;
private registerValhallaControl;
private unregisterValhallaControl;
private handleTerradrawFeatureReady;
private computeIsochroneByPointFeatureID;
private computeRouteByLineFeatureID;
private onFeatureDeleted;
getFeatures(onlySelected?: boolean): {
type: string;
features: GeoJSONStoreFeatures<GeoJSONStoreGeometries>[];
} | undefined;
}
//# sourceMappingURL=MaplibreValhallaControl.d.ts.map