#pragma once #include #include #include namespace mbgl { namespace style { struct SourceOptions { std::optional rasterEncoding = std::nullopt; std::optional vectorEncoding = std::nullopt; }; // NOTE: Any derived class must invalidate `weakFactory` in the destructor class RasterDEMSource final : public RasterSource { public: RasterDEMSource(std::string id, variant urlOrTileset, uint16_t tileSize, std::optional options = std::nullopt); ~RasterDEMSource() override; bool supportsLayerType(const mbgl::style::LayerTypeInfo*) const override; protected: void setTilesetOverrides(Tileset& tileset) override; private: std::optional options; }; template <> inline bool Source::is() const { return getType() == SourceType::RasterDEM; } } // namespace style } // namespace mbgl