@vertigis/viewer-spec
Version:
VertiGIS Viewer Specification
28 lines (27 loc) • 942 B
TypeScript
import type { LengthUnits } from "../../messaging/registry/geometry.js";
import type { ModelProperties } from "../common/ModelProperties.js";
/**
* Configuration for the geometry service.
*/
export interface GeometryModelProperties extends ModelProperties {
/**
* The URL for the external geometry service that's used for calculations
* that can't be done client-side.
*/
geometryServiceUrl?: string;
/**
* The default distance value for buffer operations. The default units are
* based on the application's measurement system: "meters" for metric,
* otherwise "yards".
*/
bufferDistance?: number;
/**
* The default distance units for buffer operations. The default is 100.
*/
bufferUnits?: LengthUnits;
/**
* Whether or not geodesic buffers are performed. The default is true. If
* set to false, buffers will be planar.
*/
isGeodesic?: boolean;
}