[core] Do not clear custom layers upon style switch

This commit is contained in:
Bruno de Oliveira Abinader
2016-04-21 14:40:01 +03:00
parent 2ec1d82b15
commit 8ec875b87c
2 changed files with 7 additions and 1 deletions

View File

@@ -90,4 +90,8 @@ TEST(CustomLayer, Basic) {
}, new TestLayer());
test::checkImage("test/fixtures/custom_layer/basic", test::render(map));
// Custom layer should be preserved when switching styles
map.setStyleJSON(util::read_file("test/fixtures/api/empty.json"), "");
test::checkImage("test/fixtures/custom_layer/basic", test::render(map));
}