Files
MapLibreParticleLab/include/mbgl/style/sources/raster_source.hpp
2016-12-20 21:05:40 -08:00

29 lines
551 B
C++

#pragma once
#include <mbgl/style/source.hpp>
#include <mbgl/util/tileset.hpp>
#include <mbgl/util/variant.hpp>
namespace mbgl {
namespace style {
class RasterSource : public Source {
public:
RasterSource(std::string id, variant<std::string, Tileset> urlOrTileset, uint16_t tileSize);
optional<std::string> getURL() const;
// Private implementation
class Impl;
Impl* const impl;
};
template <>
inline bool Source::is<RasterSource>() const {
return type == SourceType::Raster;
}
} // namespace style
} // namespace mbgl