#include 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 VectorSource::Impl::getTileset() const { return tileset; } optional VectorSource::Impl::getAttribution() const { if (!tileset) { return {}; } return tileset->attribution; } } // namespace style } // namespace mbgl