[OpenLayers-Users] Bug? Zoom box offset when using large scales

Barend K ö bben kobben at itc.nl
Fri Aug 3 06:26:57 EDT 2007


Hi ,

I have data of a really large scale, it's almost 1:1 drawings of
archeological finds. They have been measured very precisely and nicely
georef'd to a UTM projection and consist of maps of typically some 15x15 to
20x20 meters in size.
All works quite fine, but the large scale obviously gives some problems,
that I consider a bug: The zoom box (SHIFT-Drag) does not appear were the
actual mouse is moving. The effect varies according to the size of the
screen and the browser (eg. on my 1024x768 Mac running Firefox it's not as
bad as on a 1680x1050 PC using IE7, where it's really way off). I have
experimented with all kinds of resolution and scale settings, but to no
avail...

An experimental version can be seen at
http://geoserver.itc.nl/melkakunture/expert/site.asp?site=Garba+IVD
 [might not always be up!]
Any thoughts? 

BTW, my map is defined as follows:

var currBBOX = "455749.125,962199.4375,455765.15625,962210.5".split(",");
var bounds = new 
OpenLayers.Bounds(currBBOX[0],currBBOX[1],currBBOX[2],currBBOX[3]);
var maxRes = (currBBOX[2] - currBBOX[0])/500; //alert(maxRes);
        
        function init(){
                
            map = new OpenLayers.Map( "mapDiv", {maxExtent: bounds,
projection:"EPSG:20137",  minResolution: 0.001,  maxResolution: maxRes,
units: "m" } );
            
            
 ..etc...


Yours,
__ 
Barend Köbben
International Institute for Geo-information
Sciences and Earth Observation (ITC)
PO Box 6, 7500AA Enschede (The Netherlands)
ph: +31 (0)53 4874253; fax: +31 (0)53 4874335





More information about the Users mailing list