#pragma once #include #include #include namespace mbgl { class AsyncRequest; namespace style { class RasterSource : public Source { public: RasterSource(std::string id, variant urlOrTileset, uint16_t tileSize); ~RasterSource() final; const variant& getURLOrTileset() const; optional getURL() const; uint16_t getTileSize() const; class Impl; const Impl& impl() const; void loadDescription(FileSource&) final; private: const variant urlOrTileset; std::unique_ptr req; }; template <> inline bool Source::is() const { return getType() == SourceType::Raster; } } // namespace style } // namespace mbgl