terra-draw
Version:
Frictionless map drawing across mapping provider
17 lines (16 loc) • 669 B
TypeScript
import { Point, Position } from "geojson";
import { BehaviorConfig, TerraDrawModeBehavior } from "../../base.behavior";
import { FeatureId } from "../../../store/store";
export declare class CoordinatePointBehavior extends TerraDrawModeBehavior {
constructor(config: BehaviorConfig);
createOrUpdate(featureId: FeatureId): void;
deletePointsByFeatureIds(features: FeatureId[]): void;
getUpdated(featureId: FeatureId, updatedCoordinates: Position[]): {
id: FeatureId;
geometry: Point;
}[] | undefined;
private createPoints;
private setFeatureCoordinatePoints;
private deleteCoordinatePoints;
private deleteIfPresent;
}