Function getLayers

  • Get the OpenLayers layer instances for the provided Mapbox/MapLibre Style source.

    Parameters

    • map: Map | LayerGroup

      OpenLayers Map or LayerGroup.

    • sourceId: string

      Mapbox/MapLibre Style source id.

    Returns Layer[]

    OpenLayers layer instances.