[core] Runtime source API: part 2

This commit is contained in:
John Firebaugh
2016-06-15 14:46:03 -07:00
parent 900568cfb0
commit 9d6b50828e
4 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#include <mbgl/style/sources/vector_source.hpp>
#include <mbgl/style/sources/vector_source_impl.hpp>
namespace mbgl {
namespace style {
VectorSource::VectorSource(std::string id, variant<std::string, Tileset> urlOrTileset)
: Source(SourceType::Vector, std::make_unique<VectorSource::Impl>(std::move(id), *this, std::move(urlOrTileset))) {
}
} // namespace style
} // namespace mbgl