@@ -50,6 +50,7 @@ def __init__(
5050 self .config .add_layer_widget ('snap_vertices_tolerance' , self .vertices_tolerance )
5151 self .config .add_layer_widget ('snap_segments_tolerance' , self .segments_tolerance )
5252 self .config .add_layer_widget ('snap_intersections_tolerance' , self .intersections_tolerance )
53+ self .config .add_layer_widget ('snap_on_start' , self .snap_on_start )
5354 self .config .add_layer_widget ('provider' , self .provider )
5455
5556 self .config .add_layer_label ('layerId' , self .label_layer )
@@ -60,6 +61,7 @@ def __init__(
6061 self .config .add_layer_label ('deleteFeature' , self .label_delete )
6162 self .config .add_layer_label ('acl' , self .label_allowed_groups )
6263 self .config .add_layer_label ('snap_layers' , self .label_layers_snapping )
64+ self .config .add_layer_label ('snap_on_start' , self .label_snap_on_start )
6365 self .config .add_layer_label ('provider' , self .label_provider )
6466
6567 self .layer .layerChanged .connect (self .layer_changed )
@@ -76,6 +78,10 @@ def __init__(
7678 self .lwc_versions [LwcVersions .Lizmap_3_6 ] = [
7779 self .button_wizard_group ,
7880 ]
81+ self .lwc_versions [LwcVersions .Lizmap_3_10 ] = [
82+ self .snap_on_start ,
83+ self .label_snap_on_start ,
84+ ]
7985
8086 # Wizard ACL group
8187 icon = QIcon (resources_path ('icons' , 'user_group.svg' ))
@@ -85,6 +91,9 @@ def __init__(
8591 self .button_wizard_group .setToolTip (tr ("Open the group wizard" ))
8692
8793 self .setup_ui ()
94+ # Default to checked for new layers; legacy layers without the key
95+ # get False from the definition default during from_json loading.
96+ self .snap_on_start .setChecked (True )
8897 self .check_layer_wfs ()
8998 self .layer_changed ()
9099
0 commit comments