-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (63 loc) · 2.53 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<html>
<head>
<title>Chrome bookmarklet to extract the panorama id from a Google StreetView URL.</title>
<style>
body{
margin: 0;
padding: 0;
font-family: arial, sans-serif;
font-size: 16px;
}
p{
font-size: 13px;
font-weight: normal;
line-height: 1.6;
color: #333;
}
span{
padding: 1px 3px;
border-radius: 5px;
font-size: 0.9em;
color: #a7a7a7;
}
span strong{
color: #000;
}
a{
color: #333;
}
.container{
margin: 10vh auto;
padding: 0;
max-width: 420px;
}
.bookmarklet-wrapper{
text-align: center;
margin-top: 48px;
margin-bottom: 96px;
}
.bookmarklet-wrapper p{
font-size: 16px;
}
.bookmarklet{
display: table;
text-decoration: none;
margin: 1em auto;
border-radius: 6px;
padding: 20px;
background-color: #333;
color: #fff;
}
</style>
</head>
<body>
<div class="container">
<div class="bookmarklet-wrapper">
<a class="bookmarklet" href="javascript:(function()%7Bvar%20body%3Ddocument.body%2CmessageEl%3Ddocument.createElement(%22div%22)%2Cre%3D%2Fhttps%3A%5C%2F%5C%2Fwww.google.com%5C%2Fmaps%5C%2F%5CS*data%3D%5CS*!1s(%5CS%2B)!2e%2F%2Cresult%3Dre.exec(window.location.href)%2Cmessage%3D%22PanoID%3A%20%22%3Bresult%3Fmessage%2B%3Dresult%5B1%5D%3Amessage%3D%22PanoID%20not%20found.%22%2CmessageEl.innerHTML%3Dmessage%2Cbody.appendChild(messageEl)%2CmessageEl.style.zIndex%3D2147483647%2CmessageEl.style.position%3D%22fixed%22%2CmessageEl.style.top%3D%220%22%2CmessageEl.style.right%3D%220%22%2CmessageEl.style.fontFamily%3D%22Arial%2C%20sans-serif%22%2CmessageEl.style.fontWeight%3D%22bold%22%2CmessageEl.style.fontSize%3D%2224px%22%2CmessageEl.style.backgroundColor%3D%22%23f4ff60%22%2CmessageEl.style.color%3D%22%23000000%22%2CmessageEl.style.padding%3D%2220px%2020px%2020px%2020px%22%2Cconsole.log(message)%3B%7D)()">Get StreetView ID</a>
<p>Drag this to your bookmark bar.</p>
</div>
<p>Grab the code on <a href="https://github.com/sjwilliams/streetview-panoid-bookmarklet">GitHub</a>.</p>
<p>Need to find the Panorama ID of a Google StreetView manually? It's encoded in the StreetView URL between <span>!1s</span> and <span>!2e</span>. For example, <a href="https://www.google.com/maps/@36.3553537,-80.2887607,3a,75y,231.83h,83.34t/data=!3m6!1e1!3m4!1srviXpriRVAKxt77Y3D9tzg!2e0!7i3328!8i1664">this StreetView</a> includes the id bolded in this string: <span>data=!3m6!1e1!3m4!1s<strong>rviXpriRVAKxt77Y3D9tzg</strong>!2e0!7i3328!8i1664</span>.</p>
</div>
</body>
</html>