addStyleSource

open fun addStyleSource(sourceId: String, properties: Value): Expected<String, None>

Adds a new [style source](https://docs.mapbox.com/mapbox-gl-js/style-spec/#sources).

Return

string describing an error if the operation was not successful, empty otherwise.

Parameters

properties

A map of style source properties.

sourceId

An identifier for the style source.