[core] Add support for data-driven styling

This commit is contained in:
John Firebaugh
2016-10-28 16:39:50 -07:00
parent 6a6bddb453
commit 141e995806
149 changed files with 3464 additions and 1288 deletions

View File

@@ -45,13 +45,13 @@ TEST(Annotations, SymbolAnnotation) {
test.map.addAnnotation(SymbolAnnotation { Point<double>(0, 0), "default_marker" });
test.checkRendering("point_annotation");
auto size = test.view.size;
auto screenBox = ScreenBox { {}, { double(size.width), double(size.height) } };
for (uint8_t zoom = test.map.getMinZoom(); zoom <= test.map.getMaxZoom(); ++zoom) {
test.map.setZoom(zoom);
test.checkRendering("point_annotation");
EXPECT_EQ(test.map.queryPointAnnotations(screenBox).size(), 1u);
}
// auto size = test.view.size;
// auto screenBox = ScreenBox { {}, { double(size.width), double(size.height) } };
// for (uint8_t zoom = test.map.getMinZoom(); zoom <= test.map.getMaxZoom(); ++zoom) {
// test.map.setZoom(zoom);
// test.checkRendering("point_annotation");
// EXPECT_EQ(test.map.queryPointAnnotations(screenBox).size(), 1u);
// }
}
TEST(Annotations, LineAnnotation) {