Interface SnapCandidate

interface SnapCandidate {
    distance: number;
    featureId: FeatureId;
    kind: SnapCandidateKind;
    position: SnapPosition;
    screenPoint: SnapScreenPoint;
    segmentIndex?: number;
    sourceId: string;
    vertexIndex?: number;
}

Properties

distance: number

Screen-space distance from the pointer, in pixels.

featureId: FeatureId
position: SnapPosition

Geographic position of the snap target.

screenPoint: SnapScreenPoint

Screen-space position of the snap target.

segmentIndex?: number

Ordinal of the snapped segment within the feature (edge candidates).

sourceId: string
vertexIndex?: number

Ordinal of the snapped vertex within the feature (vertex candidates).