1. Skip to navigation
  2. Skip to content
  3. Skip to sidebar


Forum

Forums » Embedding » Default zoom?

 
Default zoom?
David Zakary David Zakary
Total Posts: 18

Is it possible to set a default zoom for a panorama? Right now the default is letterboxes with black bars on the top and bottom.

I’d like to have a default position so that the entire Flash window is filled on load.

Is this possible?

Angelko Krstanovic Angelko Krstano...
Total Posts: 103

David, there isn’t currently a way to setup a default zoom level with the flash viewer. But yes, it would be nice to be able to have that level of control, and it’s definitively a handy feature to add to the viewer in the future.

Ronnie Miranda Ronnie Miranda
Total Posts: 8

Yes, it is possible to setup a default zoom level. Use the old embed codes.

Here are some examples: http://www.activecomp.ca/gigapan/defaultzoom.html

Here is the code:

< embed type=“application/x-shockwave-flash” src=“ht_p://gigapan.org/viewer/GigaPanViewer.swf?url=ht_p://tile15.gigapan.org/gigapans0/15374/tiles/&suffix=.jpg&width=59783&height=24658&nlevels=9&cleft=25000&ctop=17800&cright=25500.0&cbottom=18500.0” height=“300” width=“100%” >

Parameters:

&url=ht_p://tile15.gigapan.org/gigapans0/15374/tiles/
The URL for the GigaPan tiles on the server

&width=59783&height=24658
Width and Height of the GigaPan image

&nlevels=9
Number of zoom levels to support

height=“300”
(Optional) Adjust the flash viewer height to your preference

The next parameter is the window where you want to start viewing the image. These values define a box (top left corner to lower right corner). A smaller area means a more zoomed in image. Adjust these values manually.

&cleft=0&ctop=0&cright=59783.0&cbottom=24658.0 (default whole image, see width and height)

&cleft=25000&ctop=17800&cright=25500.0&cbottom=18500.0 (zoom in to specific area)

Note: cleft should always be less than cright, and ctop should always be less than cbottom.

Where do you find these values with respect to your GigaPan?

1. Load and view the GigaPan image
2. On your browser, view the Page Source
3. Scroll down and look for a line that begins with “var gigapan”. The complete line would look like this:

var gigapan = {"gigapan": {"is_game" : false, “id”: 15374, “tile_server_path” : “ht_p://tile15.gigapan.org/gigapans0/15374/tiles/”, “height” : 24658, “levels” : 9, “width” : 59783}};


Forums» Embedding » Default zoom?