Files
MapLibreParticleLab/src/mbgl/style/sources/geojson_source.cpp
2016-06-24 09:39:51 -07:00

22 lines
556 B
C++

#include <mbgl/style/sources/geojson_source.hpp>
#include <mbgl/style/sources/geojson_source_impl.hpp>
namespace mbgl {
namespace style {
GeoJSONSource::GeoJSONSource(const std::string& id)
: Source(SourceType::GeoJSON, std::make_unique<GeoJSONSource::Impl>(std::move(id), *this))
, impl(static_cast<Impl*>(baseImpl.get())) {
}
void GeoJSONSource::setURL(const std::string& url) {
impl->setURL(url);
}
void GeoJSONSource::setGeoJSON(GeoJSON&& geoJSON) {
impl->setGeoJSON(std::move(geoJSON));
}
} // namespace style
} // namespace mbgl