diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2016-10-20 12:02:04 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2016-10-20 16:18:08 +0300 |
commit | ab63a9494f109245f9bd81839e2576b60a34cd2c (patch) | |
tree | 62acef7b18d88a8386abdca75b8ff73cb39701fa /test/src | |
parent | 5527887c4bb1299fd2351e1a0c7550fab5f39bef (diff) | |
download | qtlocation-mapboxgl-ab63a9494f109245f9bd81839e2576b60a34cd2c.tar.gz |
[core] reload geojson source on url change
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/mbgl/test/stub_style_observer.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/src/mbgl/test/stub_style_observer.hpp b/test/src/mbgl/test/stub_style_observer.hpp index 7189fd8af4..95280565ff 100644 --- a/test/src/mbgl/test/stub_style_observer.hpp +++ b/test/src/mbgl/test/stub_style_observer.hpp @@ -38,6 +38,10 @@ public: if (sourceError) sourceError(source, error); } + void onSourceDescriptionChanged(Source& source) override { + if (sourceDescriptionChanged) sourceDescriptionChanged(source); + } + void onTileChanged(Source& source, const OverscaledTileID& tileID) override { if (tileChanged) tileChanged(source, tileID); }; @@ -58,6 +62,7 @@ public: std::function<void (Source&)> sourceLoaded; std::function<void (Source&, std::string)> sourceAttributionChanged; std::function<void (Source&, std::exception_ptr)> sourceError; + std::function<void (Source&)> sourceDescriptionChanged; std::function<void (Source&, const OverscaledTileID&)> tileChanged; std::function<void (Source&, const OverscaledTileID&, std::exception_ptr)> tileError; std::function<void (std::exception_ptr)> resourceError; |