Skip to content

Commit

Permalink
Merge pull request #3428 from CannonLock/allow-encoded-urls
Browse files Browse the repository at this point in the history
Update maps to allow encoded urls
  • Loading branch information
matyasselmeci authored Oct 13, 2023
2 parents f9f4b3d + b3b0b4d commit e48433b
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 e48433b

Please sign in to comment.