@vcmap/core
    Preparing search index...

    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
      • heightReference: HeightReference = HeightReference.CLAMP_TO_GROUND

      Returns
          | { snapped: Coordinate; type: "vertex" }
          | { snapped: Coordinate; type: "edge" }
          | undefined