• JMap.Application.Annotation.setSnapLayerId

    set the layer id to snap on.

    Parameters

    • layerId: JId

      the JMap layer id

    Returns void

    Throws

    if layer not found

    Example

    // snap will target the features of the layer having id="36885146-7eed-4071-9f86-8e29c505af91"
    JMap.Application.Annotation.setSnapLayerId("36885146-7eed-4071-9f86-8e29c505af91")