| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <mbgl/style/sources/raster_source.hpp> |
| 4 | #include <mbgl/util/tileset.hpp> |
| 5 | #include <mbgl/util/variant.hpp> |
| 6 | |
| 7 | namespace mbgl { |
| 8 | |
| 9 | class AsyncRequest; |
| 10 | |
| 11 | namespace style { |
| 12 | |
| 13 | class RasterDEMSource : public RasterSource { |
| 14 | public: |
| 15 | RasterDEMSource(std::string id, variant<std::string, Tileset> urlOrTileset, uint16_t tileSize); |
| 16 | |
| 17 | }; |
| 18 | |
| 19 | template <> |
| 20 | inline bool Source::is<RasterDEMSource>() const { |
| 21 | return getType() == SourceType::RasterDEM; |
| 22 | } |
| 23 | |
| 24 | } // namespace style |
| 25 | } // namespace mbgl |
| 26 |
