diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-10-30 12:04:01 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-10-31 10:24:55 +0200 |
commit | 4afb4438ebf0c8e7d4b4ae5fcfd10d363be6c3c7 (patch) | |
tree | 8ddf07a7a05a0514df2fe1a9c90b31e37fa9fafd /include | |
parent | 8c498cd36c07b1019e5ddb60d5f9f8872f036e25 (diff) | |
download | qtlocation-mapboxgl-4afb4438ebf0c8e7d4b4ae5fcfd10d363be6c3c7.tar.gz |
[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.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/sources/geojson_source.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mbgl/style/sources/geojson_source.hpp b/include/mbgl/style/sources/geojson_source.hpp index c8dc65b912..549393e9b2 100644 --- a/include/mbgl/style/sources/geojson_source.hpp +++ b/include/mbgl/style/sources/geojson_source.hpp @@ -60,6 +60,7 @@ public: void setGeoJSONData(std::shared_ptr<GeoJSONData>); optional<std::string> getURL() const; + const GeoJSONOptions& getOptions() const; class Impl; const Impl& impl() const; |