From cbf0ecfd75b096d0c3866c6e38c3465f2fcdd4ee Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Wed, 9 Oct 2019 18:25:04 +0100 Subject: [PATCH] Update test for no features --- examples/vector-tile-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/vector-tile-info.js b/examples/vector-tile-info.js index b117a1519e..18a7aafd6d 100644 --- a/examples/vector-tile-info.js +++ b/examples/vector-tile-info.js @@ -23,7 +23,7 @@ map.on('pointermove', showInfo); const info = document.getElementById('info'); function showInfo(event) { const features = map.getFeaturesAtPixel(event.pixel); - if (!features) { + if (features.length == 0) { info.innerText = ''; info.style.opacity = 0; return;