The script provides snapping edition for geometry.
You can configure snapping by updating the snapLayers variable.
var snapLayers = {
'Quartiers' : {
'layers': [
'Quartiers',
'SousQuartiers'
],
snapToNode: true,
snapToEdge: false,
snapToVertex: true
}
}
The snapLayers keys are the layer's name for which you want to activate snapping.
- The
layerskey contains the layer's list to snap on. - The
snapToNodeactivates snapping to node - The
snapToEdgeactivates snapping to edge - The
snapToVertexactivates snapping to edges intersection