summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/custom_geometry_source.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-09-04 02:02:23 +0200
committerDane Springmeyer <springmeyer@users.noreply.github.com>2019-09-03 17:02:23 -0700
commitc7be3d52a709c98e93384bdcabc5cebc7adb9dac (patch)
treeb9d36368491a8e03ecf435215a75a616b7059065 /src/mbgl/style/sources/custom_geometry_source.cpp
parent1ef763c98e540b0a347cd59ab040a0449df4a14c (diff)
downloadqtlocation-mapboxgl-c7be3d52a709c98e93384bdcabc5cebc7adb9dac.tar.gz
Always call onSourceLoaded observers (#15548)
* [core] add sources to source collection before triggering load * [test] add testcase for #15514 * [core] also call onSourceLoaded observers when no network request was necessary
Diffstat (limited to 'src/mbgl/style/sources/custom_geometry_source.cpp')
-rw-r--r--src/mbgl/style/sources/custom_geometry_source.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/style/sources/custom_geometry_source.cpp b/src/mbgl/style/sources/custom_geometry_source.cpp
index 6e9d8d65fb..73675c056f 100644
--- a/src/mbgl/style/sources/custom_geometry_source.cpp
+++ b/src/mbgl/style/sources/custom_geometry_source.cpp
@@ -1,6 +1,7 @@
#include <mbgl/style/sources/custom_geometry_source.hpp>
#include <mbgl/style/custom_tile_loader.hpp>
#include <mbgl/style/sources/custom_geometry_source_impl.hpp>
+#include <mbgl/style/source_observer.hpp>
#include <mbgl/actor/actor.hpp>
#include <mbgl/actor/scheduler.hpp>
#include <mbgl/tile/tile_id.hpp>
@@ -25,6 +26,7 @@ const CustomGeometrySource::Impl& CustomGeometrySource::impl() const {
void CustomGeometrySource::loadDescription(FileSource&) {
baseImpl = makeMutable<CustomGeometrySource::Impl>(impl(), loader->self());
loaded = true;
+ observer->onSourceLoaded(*this);
}
void CustomGeometrySource::setTileData(const CanonicalTileID& tileID,