Function updateMapboxSource

  • Updates a Mapbox source object in the style. The according OpenLayers source will be replaced and the map will be re-rendered.

    Parameters

    • mapOrGroup: Map | LayerGroup

      The Map or LayerGroup apply was called on.

    • id: string

      Key of the source in the sources object literal.

    • mapboxSource: any

      Mapbox source object.

    Returns Promise<Source>

    Promise that resolves when the source has been updated.