[core] Introduce shared base class for VectorSource and RasterSource

This commit is contained in:
John Firebaugh
2016-06-14 10:43:28 -07:00
parent eecf9e7d23
commit e6ba10ceed
6 changed files with 43 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ namespace style {
VectorSource::VectorSource(std::string id_,
std::string url_,
std::unique_ptr<Tileset>&& tileset_)
: Source(SourceType::Vector, std::move(id_), std::move(url_), util::tileSize, std::move(tileset_)) {
: TileSource(SourceType::Vector, std::move(id_), std::move(url_), util::tileSize, std::move(tileset_)) {
}
std::unique_ptr<Tile> VectorSource::createTile(const OverscaledTileID& tileID,