summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/vector_source_impl.hpp
blob: 4a6703e5c0b468658e7f82afe7e722d82ccef258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <mbgl/style/sources/vector_source.hpp>
#include <mbgl/style/tile_source_impl.hpp>

namespace mbgl {
namespace style {

class VectorSource::Impl : public TileSourceImpl {
public:
    static std::unique_ptr<VectorSource> parse(std::string id, const JSValue&);

    Impl(std::string id, Source&, variant<std::string, Tileset>);

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

} // namespace style
} // namespace mbgl