MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
raster_dem_source.hpp
Go to the documentation of this file.
1 #pragma once
2 
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  bool supportsLayerType(const mbgl::style::LayerTypeInfo*) const override;
17 };
18 
19 template <>
20 inline bool Source::is<RasterDEMSource>() const {
21  return getType() == SourceType::RasterDEM;
22 }
23 
24 } // namespace style
25 } // namespace mbgl
bool supportsLayerType(const mbgl::style::LayerTypeInfo *) const override
RasterDEMSource(std::string id, variant< std::string, Tileset > urlOrTileset, uint16_t tileSize)
std::unique_ptr< Expression > string(std::unique_ptr< Expression >, std::unique_ptr< Expression > def=nullptr)
Definition: actor.hpp:15
mapbox::util::variant< T... > variant
Definition: variant.hpp:17