Adds a custom source type, making it available for use with Map#addSource.
The name of the source type; source definition objects use this name in the {type: ...} field.
{type: ...}
a promise that is resolved when the source type is ready or rejected with an error.
Adds a custom source type, making it available for use with Map#addSource.