Create a Mapbox source

mapbox_source(type, ...)

Arguments

type

The type of the source, e. g. geojson.

...

The properties of the source. See https://docs.mapbox.com/mapbox-gl-js/style-spec/sources for available options for the given source type.