• JMap.Layer.Thematic.hasAnyVisibleByLayerId

    Returns true if the layer has at least one thematic displayed on the map.

    Parameters

    • layerId: JId

      The JMap layer id

    Returns boolean

    Throws

    Error if no layer found for the id, or if the layer is a layer group.

    Example

    // returns false if no thematic is displayed for layer id=4
    JMap.Layer.Thematic.hasAnyVisibleByLayerId(4)