[core] reload geojson source on url change

This commit is contained in:
Ivo van Dongen
2016-10-20 12:02:04 +03:00
committed by Ivo van Dongen
parent 5527887c4b
commit ab63a9494f
6 changed files with 57 additions and 0 deletions

View File

@@ -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;