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="36885146-7eed-4071-9f86-8e29c505af91"JMap.Application.Annotation.setSnapLayerId("36885146-7eed-4071-9f86-8e29c505af91") Copy
// snap will target the features of the layer having id="36885146-7eed-4071-9f86-8e29c505af91"JMap.Application.Annotation.setSnapLayerId("36885146-7eed-4071-9f86-8e29c505af91")
JMap.Application.Annotation.setSnapLayerId
set the layer id to snap on.