# How to Set Up Snapping for Mergin Maps Mobile App
since QGIS plugin 2022.5Capturing data in the field using Mergin Maps mobile app can be easier, if you can snap the vertices of new features to existing geometries. Snapping can also help you avoid creating topological errors in your datasets.
Mergin Maps QGIS plugin provides three snapping options:
- No snapping - snapping is not enabled (default)
- Basic snapping - features are snapped to the vertices and segments of vector features in the project
- Follow QGIS snapping - uses the snapping preferences defined in the QGIS project
# Basic snapping
To set up basic snapping:
Open your Mergin Maps project in QGIS
Go to the Project Properties
Navigate to the Mergin Maps tab and change the snapping settings to Basic snapping
Apply the changes, save and sync your project.
Don't forget to synchronise the project also in Mergin Maps mobile app before the fieldwork.
Now you can use basic snapping in Mergin Maps mobile app!
When capturing a new feature near an existing one, the crosshairs will turn purple and snap to its vertex (left) or to its segment (right).
TIP
If you don't want the crosshairs to snap to a feature, try zooming in. The snapping threshold is 20 pixels, so the more you zoom in, the closer you can place the vertex to the existing geometry without snapping.
If you want to change the snapping threshold, use the Follow QGIS snapping option and define the snapping tolerance in your Mergin Maps project in QGIS.
# Follow QGIS snapping
The QGIS plugin gives you the option to use the snapping preferences defined in QGIS project. This means you can, for instance, exclude some layers from snapping, choose the snapping mode or change the snapping threshold.
Navigate to the Mergin Maps tab in the Project Properties and change the snapping settings to Follow QGIS snapping
Enable snapping in the Snapping toolbar and set your snapping preferences.
TIP
If you cannot see the Snapping toolbar in QGIS, ensure it's enabled under View (top-level menu) > Toolbars
Snapping preferences can also be set through the Snapping Options in the Project menu
Switch to Advanced Configuration
Here, snapping settings can be defined for each layer individually:
- enable/disable snapping for specific layers. Layers that are not checked will not be used for snapping.
- in the Type column, you can choose if you want to snap to vertices, segments or both
- set the Tolerance (the snapping threshold). This defines how close the crosshairs need to be to an existing feature to snap to its geometry.
Save and sync your project.
Don't forget to synchronise the project also in the mobile app before the fieldwork.
Snapping in Mergin Maps mobile app will now follow the snapping settings as defined in the QGIS project.
TIP
You can learn more about snapping in QGIS in QGIS User Guide (opens new window).