Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description featuresCollection<Feature> <optional>
Snap to these features. Either this option or source should be provided.
edgeboolean <optional>
true Snap to edges.
vertexboolean <optional>
true Snap to vertices.
pixelTolerancenumber <optional>
10 Pixel tolerance for considering the pointer close enough to a segment or vertex for snapping.
sourceVectorSource <optional>
Snap to features from this source. Either this option or features should be provided
-
Result{Object}
-
Properties:
Name Type Description vertexCoordinate | null Vertex.
vertexPixelPixel | null VertexPixel.
-
SegmentData{Object}
-
Properties:
Name Type Description featureFeature Feature.
segmentArray<Coordinate> Segment.