diff options
Diffstat (limited to 'src/mbgl/style/sources/custom_vector_source_impl.cpp')
-rw-r--r-- | src/mbgl/style/sources/custom_vector_source_impl.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/mbgl/style/sources/custom_vector_source_impl.cpp b/src/mbgl/style/sources/custom_vector_source_impl.cpp index 1b5ee4e5d1..d1f20045cb 100644 --- a/src/mbgl/style/sources/custom_vector_source_impl.cpp +++ b/src/mbgl/style/sources/custom_vector_source_impl.cpp @@ -9,11 +9,17 @@ namespace mbgl { namespace style { CustomVectorSource::Impl::Impl(std::string id_, - const GeoJSONOptions options_, - FetchTileFunction fetchTileFn_) + const GeoJSONOptions options_) : Source::Impl(SourceType::CustomVector, std::move(id_)), options(options_), - fetchTileFn(fetchTileFn_) { + loaderRef({}) { +} + +CustomVectorSource::Impl::Impl(const Impl& impl, ActorRef<CustomTileLoader> loaderRef_) + : Source::Impl(impl), + options(impl.options), + loaderRef(loaderRef_){ + } optional<std::string> CustomVectorSource::Impl::getAttribution() const { @@ -24,8 +30,8 @@ GeoJSONOptions CustomVectorSource::Impl::getOptions() const { return options; } -FetchTileFunction CustomVectorSource::Impl::getFetchTileFunction() const { - return fetchTileFn; +optional<ActorRef<CustomTileLoader>> CustomVectorSource::Impl::getTileLoader() const { + return loaderRef; } } // namespace style |