addSource method
Implementation
Future<void> addSource(Source source) async {
if (source is GeoJsonSource && source._data != null) {
final internalData = source._data!;
// Add empty data initially so that the source is added and
// volatile properties can be set. Then add the data.
source._data = "";
await _addSourceInternal(source);
return source.updateGeoJSON(internalData);
} else {
return _addSourceInternal(source);
}
}