Classes
Type Definitions
-
Properties:
Name Type Argument Default Description featuresmodule:ol/Collection~Collection.<module:ol/Feature~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.
sourcemodule:ol/source/Vector~VectorSource <optional>
Snap to features from this source. Either this option or features should be provided
-
Properties:
Name Type Description snappedboolean vertexmodule:ol/coordinate~Coordinate | null vertexPixelmodule:ol/pixel~Pixel | null -
Properties:
Name Type Description featuremodule:ol/Feature~Feature segmentArray.<module:ol/coordinate~Coordinate>