Snap to ends of lines if node Id properties are present #666
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, if a user doesn't have a vector node layer switched on, and they snap to the end of a line, an edge Id is returned.
This will require a line to be split if the drawn lines are required for routing - even though the new line snaps to a node.
This pull request allows node Ids to be picked up from the line if a drawn line snaps to the end.
A new config property has been added to the tool to set which properties of a line feature contain the node Ids:
If this is set then node Ids from the line will take priority over the line id.
The node Ids will have to be added as properties to the line vector layer. This can be set in the
serverOptions
for a WFS layer in the JSON layer config file:CpsiMapview.mp4