[core] Runtime source API: part 2
This commit is contained in:
12
src/mbgl/style/sources/vector_source.cpp
Normal file
12
src/mbgl/style/sources/vector_source.cpp
Normal 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
|
||||
Reference in New Issue
Block a user