Skip to content

Commit

Permalink
fix js syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq authored Dec 20, 2023
1 parent 43635e7 commit 46ee588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ module.exports = {
let url = encodeURIComponent(asset.href.startsWith("/vsi") ? asset.href : href);
console.log(url)
console.log(asset)
if asset.href.endswith('wrapped_phase.tif') {
return "https://tiles.rdnt.io/tiles/{z}/{x}/{y}@2x?url={url}&rescale=-3.14,3.14&colormap_name=hsv";
if (asset.href.endswith('wrapped_phase.tif')) {
return "https://titiler.xyz/cog/tiles/{z}/{x}/{y}@2x?url={url}&rescale=-3.14,3.14&colormap_name=hsv";
}
else {
return "https://tiles.rdnt.io/tiles/{z}/{x}/{y}@2x?url={url}";
Expand Down

0 comments on commit 46ee588

Please sign in to comment.