@vcmap/core
Preparing search index...
getGeometrySnapResult
Function getGeometrySnapResult
getGeometrySnapResult
(
geometries
:
Geometry
[]
,
coordinate
:
Coordinate
,
maxDistanceSquared
:
number
,
snapToVertex
?:
boolean
,
snapToEdge
?:
boolean
,
heightReference
?:
HeightReference
,
)
:
|
{
snapped
:
Coordinate
;
type
:
"vertex"
}
|
{
snapped
:
Coordinate
;
type
:
"edge"
}
|
undefined
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
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@vcmap/core
Loading...
Snaps to the vertices of the provided geometries, otherwise tries to snap to the edges.