JMap.Application.Geometry.setSnapLayerId
set the layer id to snap on.
the JMap layer id
if layer not found
// snap will target the features of the layer having id=1JMap.Application.Geometry.setSnapLayerId(1) Copy
// snap will target the features of the layer having id=1JMap.Application.Geometry.setSnapLayerId(1)
JMap.Application.Geometry.setSnapLayerId
set the layer id to snap on.