Function getGeometrySnapResult

  • Snaps to the vertices of the provided geometries, otherwise tries to snap to the edges.

    Parameters

    • geometries: Geometry[]
    • coordinate: Coordinate
    • maxDistanceSquared: number
    • snapToVertex: boolean = true
    • snapToEdge: boolean = true

    Returns SnapResult<"edge" | "vertex"> | undefined