summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/annotation_source.hpp
blob: db9221788f70fe761da9cf476cbb078323e3bd7c (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
#pragma once

#include <mbgl/style/source.hpp>
#include <mbgl/style/source_impl.hpp>

namespace mbgl {

class AnnotationSource : public style::Source {
public:
    AnnotationSource();

    class Impl;
};

class AnnotationSource::Impl : public style::Source::Impl {
public:
    Impl(Source&);

    void load(FileSource&) final;

private:
    uint16_t getTileSize() const final { return util::tileSize; }
    Range<uint8_t> getZoomRange() final;

    std::unique_ptr<Tile> createTile(const OverscaledTileID&, const style::UpdateParameters&) final;
};

} // namespace mbgl