Show tile boundaries in debug.html (#858)

This commit is contained in:
Lucas 2023-09-04 00:35:34 +08:00 committed by GitHub
parent d6f3908b7b
commit fa451cbf9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,6 +285,7 @@
});
map.on('load', async function () {
map.showTileBoundaries = true;
const catalog = await fetch('http://0.0.0.0:3000/catalog');
const sources = (await catalog.json()).tiles;
// Set up the corresponding toggle button for each layer.