From 8ec875b87c387713d7e4df5c90e6cac7669ed38b Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Thu, 21 Apr 2016 14:40:01 +0300 Subject: [core] Do not clear custom layers upon style switch --- test/api/custom_layer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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)); } -- cgit v1.2.1