Skip to content

Commit

Permalink
Update maps to allow encoded urls
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Oct 13, 2023
1 parent f9f4b3d commit b3b0b4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/iframe.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ will want to adjust the Map.data which populates the select input and legend.
// Check for zoom and location inputs
if(window.location.hash){
let viewportComponents = window.location.hash.split("#")[1].split("|");
let decodedHash = decodeURI(window.location.hash)
let viewportComponents = decodedHash.split("#")[1].split("|");
[latitude, longitude] = viewportComponents[0].split(',')
zoom = viewportComponents[1]
}
Expand Down

0 comments on commit b3b0b4d

Please sign in to comment.