Skip to content

Commit

Permalink
overwrite url
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq authored Jan 24, 2025
1 parent d1e2c11 commit e008911
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ 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)
return "https://titiler.xyz/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@2x?url={href}";
// Don't URL-encode umbra hrefs
let url = href;
return "https://titiler.xyz/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@2x?url={url}";
}
else {
console.log('TITLER DEFAULT')
Expand Down

0 comments on commit e008911

Please sign in to comment.