• JMap.Layer.Thematic.setAllCategoriesVisibility

    Shows or hides all thematic categories of a layer 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, or if an invalid param is provided

    Example

    // Hide all categories of thematic id=3 of layer id=7
    JMap.Layer.Thematic.setAllCategoriesVisibility(
    layerId: 7,
    thematicId: 3,
    visibility: false
    )