<br>
<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Dear all,</div>
<div> </div>
<div>I like to seek advice on using the zoomify layer. I'll using a satellite image and I know the lat long of this image. I like to ask the following questions :</div>
<div> </div>
<div>1) Is it possible to set latitude / longitude (degree decimals) as unit for the zoomify layer instead of pixels?</div>
<div>2) is it possible to have a small overview window for zoomify layer?</div>
<div>3) how to code it so that the map zoom to a particular lat / long?</div>
<div> </div>
<div>Below are my code snipplet. </div>
<div> </div>
<div>Thank you very much and best regards.</div>
<div> </div>
<div>Albert Ang</div>
<div> </div>
<div><script type="text/javascript"><br> <br> var zoomify_width = 4645;<br> var zoomify_height = 4915;<br> var zoomify_url = "SPOT5_20110223/";<br> <br> var map, zoomify;<br> <br>
function init(){<br> /* First we initialize the zoomify pyramid (to get number of tiers) */<br> var zoomify = new OpenLayers.Layer.Zoomify( "Zoomify", zoomify_url, <br> new OpenLayers.Size( zoomify_width, zoomify_height ) );<br>
<br> /* Map with raster coordinates (pixels) from Zoomify image */<br> var options = {<br> controls: [],<br> maxExtent: new OpenLayers.Bounds(0, 0, zoomify_width, zoomify_height),<br>
maxResolution: Math.pow(2, zoomify.numberOfTiers-1 ),<br> numZoomLevels: zoomify.numberOfTiers,<br> units: 'pixels'<br> };<br> <br> map = new OpenLayers.Map("map", options);<br>
map.addLayer(zoomify);<br> <br> map.addControl(new OpenLayers.Control.MousePosition());<br> map.addControl(new OpenLayers.Control.PanZoomBar());<br> map.addControl(new OpenLayers.Control.MouseDefaults());<br>
map.addControl(new OpenLayers.Control.KeyboardDefaults());<br> <br> map.setBaseLayer(zoomify);<br> map.zoomToMaxExtent();<br> };</div>
<div> </div>
<div></script></div></blockquote></div><br>