Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RobAndrewHurst committed Mar 26, 2024
1 parent e02b07d commit c71c772
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/tests/layer.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

Expand All @@ -25,8 +25,9 @@ export async function layerTest(mapview) {
location.remove();
}
}
});

layer.hide();
});
}
}
});
Expand Down

0 comments on commit c71c772

Please sign in to comment.