From 857597367856be8dde831b06b27b75f63af92151 Mon Sep 17 00:00:00 2001 From: Scott Henderson Date: Fri, 24 Jan 2025 17:12:32 +0100 Subject: [PATCH] Update config.js --- config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index a40f8b8fa..42fe2e75e 100644 --- a/config.js +++ b/config.js @@ -24,7 +24,7 @@ module.exports = { displayGeoTiffByDefault: false, buildTileUrlTemplate: ({href, asset}) => { let url = encodeURIComponent(asset.href.startsWith("/vsi") ? asset.href : href); - console.log(url) + console.log(asset.href) console.log(href) if (asset.href.endsWith('wrapped_phase.tif')) { console.log('TITILER WRAPPED PHASE') @@ -37,8 +37,8 @@ module.exports = { // url encoding of spaces is strange. a workaround is to pass /vsicurl/ prefix // var gdalurl = ['/vsicurl?empty_dir=yes&url=', url].join(''); // console.log(gdalurl) - // Don't URL-encode umbra hrefs - let url = href; + // Don't URL-encode just pass STAC href direct hrefs: + //let url = href; return "https://titiler.xyz/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@2x?url={url}"; } else {