summaryrefslogtreecommitdiff
path: root/include/mbgl/style/sources/raster_dem_source.hpp
blob: dc068886e52af53f92eeb1d6e8e5b3201e6a8cfe (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
31
#pragma once

#include <mbgl/style/sources/raster_source.hpp>
#include <mbgl/util/tileset.hpp>
#include <mbgl/util/variant.hpp>

namespace mbgl {

class AsyncRequest;

namespace style {

class RasterDEMSource : public RasterSource {
public:
    RasterDEMSource(std::string id, variant<std::string, Tileset> urlOrTileset, uint16_t tileSize);
    bool supportsLayerType(const mbgl::style::LayerTypeInfo*) const override;

    class Impl;
    const Impl& impl() const;

    Value serialize() const override;

protected:
    Value getPropertyInternal(const std::string&) const override;
    Value getPropertyDefaultValueInternal(const std::string&) const override;
    Mutable<Source::Impl> createMutable() const noexcept final;
    Mutable<Source::Impl> createMutable(Tileset tileset) const noexcept final;
};

} // namespace style
} // namespace mbgl