Class: module:Snapping

module:Snapping(edition, rootMapGroup, layerTree, lizmap3)

new module:Snapping(edition, rootMapGroup, layerTree, lizmap3)

Create a snapping instance

Parameters:
Name Type Description
edition Edition

The edition module

rootMapGroup MapRootState

Root map group

layerTree TreeRootState

Root tree layer group

lizmap3 object

The old lizmap object

Source:

Classes

Snapping
Snapping

Methods

getLayerTitle(layerId) → {string}

Getting the layer tile or the layer name for snap layers list

Parameters:
Name Type Description
layerId string

the layer id

Source:
Returns:

the layer title or layer name

Type
string

getLayerTreeVisibility(layerId) → {boolean}

Getting the layer visibility from the layer tree state

Parameters:
Name Type Description
layerId string

the layer id

Source:
Returns:

the layer visibility

Type
boolean