Monday, April 26, 2010

New Version of Embedded Tours

Panoramic Earth provides the opportunity to use our virtual tours as embedded content in 3rd party sites, as described on our Use a Tour page. With the launch of the new site, the style and content of these tours has been updated and the new versions are now being automatically served to our current clients.

Changing Tour Height and Width
Due to popular demand we have added the flexibility for users to alter the height of the panoramas and the maps within the tours. Within the code the following parameters can now be set:
  • width - the width of the iframe (default = 600)
  • height - the height of the iframe (default = 750 for free tours)
  • maph - height of the map within the tour (default = 200)
  • panh- height of the panorama within the tour (default = 220)
Where to put the changes
The default code supplied do not include maph and panh perameters. These must be entered after the key= parameter in the code.

Standard code:
<iframe name="panearthtour" id="panearthtour" width="600" height="750" frameborder="0" src="http://www.panoramicearth.com/tour.php?
key=nDA4ZSBP6v9xRjHkF8RU5dMIsZupIz7T391486bd2c3630f1de37e338eda7f514">This tour of Oahu requires iframes. If you cannot see the tour then please go to the <a href="http://www.panoramicearth.com/1607/United States of America/Oahu">Oahu page on Panoramic Earth</a>.</iframe>
Amended Code (changes in red):
<iframe name="panearthtour" id="panearthtour" width="600"
height="880" frameborder="0" src="http://www.panoramicearth.com/tour.php?
key=nDA4ZSBP6v9xRjHkF8RU5dMIsZupIz7T391486bd2c3630f1de37e338eda7f514
&maph=300&panh=250">This tour of Oahu requires iframes. If you cannot see the tour then please
go to the <a href="http://www.panoramicearth.com/1607/United
States of America/Oahu">Oahu page on Panoramic Earth</a>.</iframe>


Notes:
  • The height of the iframe must be adjusted accordingly.
  • Some panoramas on the sight have heights around 300 pixels high. Setting the panh parameter higher than this may result in pixilation of some images on your tour.
  • In the future we will add a simple way of doing this as you create your tour on Panoramic Earth before you are given your code.
Examples of embeded tours can be found on:

No comments:

New Panoramas on Panoramic Earth