[android] Convert GeoJSON features to tiles in background
Composing tiles from the GeoJSON features is an expensive operation that might block UI thread on updating the `GeoJsonSource` with the new data. This change moves tile composing to the background thread and thus unblocks the UI thread.
This commit is contained in:
@@ -45,6 +45,10 @@ optional<std::string> GeoJSONSource::getURL() const {
|
||||
return url;
|
||||
}
|
||||
|
||||
const GeoJSONOptions& GeoJSONSource::getOptions() const {
|
||||
return impl().getOptions();
|
||||
}
|
||||
|
||||
void GeoJSONSource::loadDescription(FileSource& fileSource) {
|
||||
if (!url) {
|
||||
loaded = true;
|
||||
|
||||
Reference in New Issue
Block a user