Optional
allowOptional
allowIf an editable feature could be snapped to a node of the target feature
Optional
allowIf an editable feature could be snapped to a vertex of the target feature
The layer with features that could be snapped to target features.
Optional
onA callback for when an editable feature is snapped to some target features.
Optional
onA callback for when an editable feature is unsnapped from some target features.
Optional
targetKeep target features that are valid snap targets.
one of the target features to check
one of the target layers
the edited feature that could be snapped to the target feature. It might be undefined if its a new feature.
the layer with features to snap
true if the editedFeature could be snapped to the targetFeature
Layers with features that are snap targets for features from the editableLayer.
If an editable feature could be snapped to an edge of the target feature