From c71c7725c91132f56b20e838c58425feb2090f1e Mon Sep 17 00:00:00 2001 From: Robert Hurst Date: Tue, 26 Mar 2024 16:12:30 +0200 Subject: [PATCH] Fix test --- public/tests/layer.test.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/tests/layer.test.mjs b/public/tests/layer.test.mjs index ddbc73277..48ae508a4 100644 --- a/public/tests/layer.test.mjs +++ b/public/tests/layer.test.mjs @@ -10,7 +10,7 @@ export async function layerTest(mapview) { layer.show(); - if (!['maplibre', 'tiles'].includes(layer.format) || layer.infoj) { + if (!['maplibre', 'tiles'].includes(layer.format) && layer.infoj) { const lastLocation = await mapp.utils.xhr(`${mapp.host}/api/query?template=get_last_location&locale=${encodeURIComponent(mapview.locale.key)}&layer=${key}`); @@ -25,8 +25,9 @@ export async function layerTest(mapview) { location.remove(); } } - }); + layer.hide(); + }); } } });