• JMap.Layer.Thematic.setAllConditionsVisibility

    Shows or hides all thematic conditions of a layer thematic on the map

    Works only for JMap Cloud server, on style rule based thematics.

    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, or thematic is not a style rule thematic, or if an invalid param is provided

    Example

    // Hide all conditions of thematic id="ac7b197c-ca14-4295-b349-8cba6a4dc631" of layer id="53ff7632-0d5e-497a-a1b0-25ce3f941023"
    JMap.Layer.Thematic.setAllConditionsVisibility(
    layerId: "53ff7632-0d5e-497a-a1b0-25ce3f941023",
    thematicId: "ac7b197c-ca14-4295-b349-8cba6a4dc631",
    visibility: false
    )