summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/custom_geometry_source_impl.hpp
blob: a441b38f69e681c9e5e45e75dc65bc85aecb64de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include <mbgl/style/source_impl.hpp>
#include <mbgl/style/sources/custom_geometry_source.hpp>
#include <mbgl/style/custom_tile_loader.hpp>
#include <mbgl/actor/actor_ref.hpp>

namespace mbgl {
namespace style {

class CustomGeometrySource::Impl : public Source::Impl {
public:
    Impl(std::string id, const CustomGeometrySource::Options& options);
    Impl(const Impl&, const ActorRef<CustomTileLoader>&);

    optional<std::string> getAttribution() const final;

    Immutable<CustomGeometrySource::TileOptions> getTileOptions() const;
    Range<uint8_t> getZoomRange() const;
    optional<ActorRef<CustomTileLoader>> getTileLoader() const;
    bool operator!=(const Impl&) const noexcept;

private:
    Immutable<CustomGeometrySource::TileOptions> tileOptions;
    Range<uint8_t> zoomRange;
    optional<ActorRef<CustomTileLoader>> loaderRef;
};

} // namespace style
} // namespace mbgl