[core] Runtime style layer API

This commit is contained in:
John Firebaugh
2016-04-25 13:15:44 -07:00
parent 27baa34d44
commit a43940afb2
105 changed files with 3111 additions and 1099 deletions

View File

@@ -274,9 +274,8 @@ TEST(Source, VectorTileCorrupt) {
};
// Need to have at least one layer that uses the source.
auto layer = std::make_unique<LineLayer>();
layer->source = "source";
layer->sourceLayer = "water";
auto layer = std::make_unique<LineLayer>("id");
layer->setSource("source", "water");
test.style.addLayer(std::move(layer));
auto info = std::make_unique<SourceInfo>();