views:

22

answers:

0

I'm trying to embed an iframe containing the google street view panorama object. Embedding works by passing a url to the iframe using the following options:

<iframe width="562" height="314"
frameborder="0" scrolling="no"
marginheight="0" marginwidth="0"
src="http://maps.google.de/?ie=UTF8&amp;amp;t=i&amp;amp;layer=c&amp;amp;cbll=LALTITUDE,LONGITUDE&amp;amp;cbp=12,POV_HEADING,,POV_ZOOM,POV_PITCH&amp;amp;source=embed&amp;amp;output=svembed"&gt;&lt;/iframe&gt;

I haven't figured out how the "cbp" parameter works, but setting it to 12 shows the small map in the bottom right corner. Switching it back to the default (13) hides it.

The problem I have is, that I let my users save a location into my database (saving only laltitude, longitude, heading, pitch and zoom values) using the google maps street view object from the api. This object has the full zoom control with 16 zoom level and zoom values ranging between 1 and 5.

Using the iframe to output these users' locations, I can only use 4 zoom levels and values ranging between 0 and 3. It only shows the "small" zoom control with a "+" and "-" button. Passing the original zoom values saved by my users to the iframe doesn't work, because they do not correspond to the values expected by the small iframe zoom control.

Is there any way to get the iframe to show the full zoom control and therefor use the original values with 16 levels of zoom?