Google Blogoscoped

Forum

How to remove parameters enabling Street View in Google Maps URL

Juha-Matti Laurio [PersonRank 10]

Wednesday, February 11, 2009
15 years ago12,388 views

Is there a simple solution how to remove parameters (or other portions of the URL) when linking to Google Maps?
I.e. there is an URL which automatically opens a Street View window and there is no need for this. Thanks beforehand!

Juha-Matti Laurio [PersonRank 10]

15 years ago #

A sample link here:
http://maps.google.com/maps?f=q&hl=en&q=&layer=c&cbll=37.817196,-122.478229&cbp=12,502.8605463086441,,0,-8.467612086441227&ie=UTF8&om=1&panoid=PEvOsxru_eiU0NNCoxxQfw&ll=37.813535,-122.477806&spn=0,359.845505&z=13&utm_campaign=en&utm_source=en-ha-na-us-google-svn&utm_medium=ha

Sander [PersonRank 4]

15 years ago #

Of course you could have easily tried it your self, but removing the layer=c part from the url seems to do what you want. Change the number of z=13 to zoom in/out.

Juha-Matti Laurio [PersonRank 10]

15 years ago #

Many thanks, there was so many possibilities that I was not sure what is the correct parameter :)

Ionut Alex. Chitu [PersonRank 10]

15 years ago #

Close Street View before generating the URL.

Haygood [PersonRank 0]

15 years ago #

Building a Google Street View URL

Basic Google Map URL
http://maps.google.com/maps?q=
q= Query – anything passed in this parameter is treated as if it had been typed into the query box on the maps.google.com page.

Basic url to display GPS cords location
http://maps.google.com/maps?q=31.33519,-89.28720

http://maps.google.com/maps?q=&layer=c
layer= Activates overlays. Current options are "t" traffic, "c" street view. Append (e.g. layer=tc) for simultaneous.

http://maps.google.com/maps?q=&layer=c&cbll=
cbll= Latitude,longitude for Street View
http://maps.google.com/maps?q=&layer=c&cbll=31.33519,-89.28720

http://maps.google.com/maps?q=&layer=c&cbll=31.335198,-89.287204&cbp=
cbp= Street View window that accepts 5 parameters:
1. Street View/map arrangement, 11=upper half Street View and lower half map, 12=mostly Street View with corner map
2. Rotation angle/bearing (in degrees)
3. Tilt angle, -90 (straight up) to 90 (straight down)
4. Zoom level, 0-2
5. Pitch (in degrees) -90 (straight up) to 90 (straight down), default 5

The one below is: (11) upper half Street View and lower half map, (0) Facing North, (0) Straight Ahead, (0) Normal Zoom, (0) Pitch of 0
This one works as is, just change the cords and if you want to face a different direction (the 0 after 11)
http://maps.google.com/maps?q=&layer=c&cbll=31.335198,-89.287204&cbp=11,0,0,0,0

For more code interpertation
http://mapki.com/index.php?title=Google_Map_Parameters

Juha-Matti Laurio [PersonRank 10]

15 years ago #

[put at-character here]Ionut: Thanks for reminding this

Juha-Matti Laurio [PersonRank 10]

15 years ago #

[put at-character here]Haygood: Very detailed and useful instructions. Thanks Haygood! I will bookmark this forum thread for future use.

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!