• JMap.Layer.Thematic.setVisibilityById

    Shows or hides a layer thematic on the map

    Parameters

    • layerId: JId

      The JMap layer id

    • thematicId: JId

      The thematic id

    • visibility: boolean

      true to show, false to hide

    Returns void

    Throws

    Error if layer or thematic is not found

    Example

    // Display the thematic id=3 of layer id=7
    JMap.Layer.Thematic.setVisibilityById(7, 3, true)

    // Hide the thematic id=3 of layer id=7
    JMap.Layer.Thematic.setVisibilityById(7, 3, false)