Files
MapLibreParticleLab/src/mbgl/style/sources/vector_source_impl.cpp
John Firebaugh 095dc7b167 [core] Replace createRender{Source,Layer} with Render{Source,Layer}::create
* Eliminates the need for EnableImmutableFromThis
* Eliminates the dependency of {Source,Layer}::Impl on corresponding Render class (circular dependency)
2017-05-12 11:26:27 -07:00

28 lines
592 B
C++

#include <mbgl/style/sources/vector_source_impl.hpp>
namespace mbgl {
namespace style {
VectorSource::Impl::Impl(std::string id_)
: Source::Impl(SourceType::Vector, std::move(id_)) {
}
VectorSource::Impl::Impl(const Impl& other, Tileset tileset_)
: Source::Impl(other),
tileset(std::move(tileset_)) {
}
optional<Tileset> VectorSource::Impl::getTileset() const {
return tileset;
}
optional<std::string> VectorSource::Impl::getAttribution() const {
if (!tileset) {
return {};
}
return tileset->attribution;
}
} // namespace style
} // namespace mbgl