JMap.Application.Annotation.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.Annotation.setSnapLayerId(1) Copy
// snap will target the features of the layer having id=1JMap.Application.Annotation.setSnapLayerId(1)
JMap.Application.Annotation.setSnapLayerId
set the layer id to snap on.