File tree 1 file changed +10
-4
lines changed 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,18 @@ async function initMap() {
26
26
} ) ;
27
27
}
28
28
29
+ export function objectToUrlParam ( obj ) {
30
+ return encodeURIComponent ( btoa ( JSON . stringify ( obj ) ) ) ;
31
+ }
32
+
33
+
29
34
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 )
32
38
//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())
35
41
return url
36
42
}
37
43
You can’t perform that action at this time.
0 commit comments