Function removeMapboxLayer

  • Remove a Mapbox Layer object from the style. The map will be re-rendered.

    Parameters

    • mapOrGroup: Map | LayerGroup

      The Map or LayerGroup apply was called on.

    • mapboxLayerIdOrLayer: any

      Mapbox Layer id or Mapbox Layer object.

    Returns void