addSource method
Implementation
Future<void> addSource(Source source) {
final nonVolatileProperties = source._encode(false);
final volatileProperties = source._encode(true);
source.bind(this);
return addStyleSource(source.id, nonVolatileProperties).then((value) {
// volatile properties have to be set after the source has been added to the style
setStyleSourceProperties(source.id, volatileProperties);
});
}