Skip to content

Commit 2069f85

Browse files
update geophires analysis link to GTP
1 parent 685faad commit 2069f85

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

explorer/explorer-map.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ async function initMap() {
2626
});
2727
}
2828

29+
export function objectToUrlParam(obj) {
30+
return encodeURIComponent(btoa(JSON.stringify(obj)));
31+
}
32+
33+
2934
function getGeophiresWebInterfaceDeeplinkUrl(params) {
30-
let hashParams = new URLSearchParams()
31-
hashParams.set('geophires_input_parameters', JSON.stringify(params))
35+
//let hashParams = new URLSearchParams()
36+
//hashParams.set('geophires-parameters', JSON.stringify(params))
37+
let queryParams = objectToUrlParam(params)
3238
//let url = new URL(`${location.origin}/geothermal/geophires?noredirect`)
33-
let url = new URL(`https://scientificwebservices.com/tools/geophires?noredirect`)
34-
url.hash = btoa(hashParams.toString())
39+
let url = new URL(`https://gtp.scientificwebservices.com/geophires?geophires-parameters=${queryParams}`)
40+
//url.hash = btoa(hashParams.toString())
3541
return url
3642
}
3743

0 commit comments

Comments
 (0)