summaryrefslogtreecommitdiff
path: root/test/api/custom_layer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/custom_layer.cpp')
-rw-r--r--test/api/custom_layer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/api/custom_layer.cpp b/test/api/custom_layer.cpp
index 4ad25bbfd5..beffa749d1 100644
--- a/test/api/custom_layer.cpp
+++ b/test/api/custom_layer.cpp
@@ -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));
}