| Default zoom? | |
|---|---|
|
Posted:
Feb 2, 2012
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 Krstano...
Posted:
Feb 3, 2012
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. |
|
Posted:
Feb 8, 2012
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/ &width=59783&height=24658 &nlevels=9 height=“300” 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 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}}; |

