Skip to content

Commit

Permalink
Improve documentation on snapping
Browse files Browse the repository at this point in the history
  • Loading branch information
vuilleumierc committed Nov 24, 2023
1 parent 036b94f commit 4ce240e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions doc/administrator/editing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Enable snapping
To be able to snap while editing, the ``snappingConfig`` must be set on the layer metadata.
The value is a ``json`` object containing the following optional properties:

* activated (boolean): whether snapping is activated by default (default: true);
* edge (boolean): whether to allow snapping on edges or not;
* vertex (boolean): whether to allow snapping on vertices or not;
* tolerance (number): the pixel tolerance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,9 @@ vars:
- name: snappingConfig
type: json
description: >
The snapping configuration for the layer. If set, the layer is considered to be
"snappable", even if the config itself is empty. Example value: {"tolerance": 50, "edge":
false}.
The snapping configuration for the layer. If set, even if empty, the layer is considered to be
"snappable" and snapping is activated by default. To disable snapping by default, set "activated"
to false. Example value: {"tolerance": 50, "edge": false}.
relevant_for:
- layer_wms
- name: geometryValidation
Expand Down

0 comments on commit 4ce240e

Please sign in to comment.