File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff 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+
2934function 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
You can’t perform that action at this time.
0 commit comments