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


Welcome to the GigaPan Forum!

This is the place for Gigapan.com members to offer peer-to-peer support for exchanging tips, ideas, comments, etc.

Those who need direct technical assistance with their GigaPan EPIC Series imagers, stitching software or gigapan.com membership account should contact us.

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: 24

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%” >


The URL for the GigaPan tiles on the server

Width and Height of the GigaPan image

Number of zoom levels to support

(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}};

The Gigapanographer Currently Known as "Kilgore661" The Gigapanogra...
Total Posts: 108

I’ve automated some of this. See http://kilgore661.blogspot.co.uk/2013/10/choosi…

fds fdsfd fds fdsfd
Total Posts: 1

in the image viewer, it support zoom in and zoom out image in a certain percentage. but to set a default zoom would be more wonderful. now many sites are using this function to load image. hope it become common and used by us.

tag:image zooming

Forums» Embedding » Default zoom?