Re: [OpenLayers-Users] zoomToScale Issue

2010-03-19 Thread Andrew Haigh
Bart, I don't set a list of fixed scales / resolutions and I have now set the fractionalZoom and everything is now sorted and working ok. Thanks Andrew On 17 March 2010 09:38, wrote: > Hi, > > how is your map instantiated? With a fixed set of scales/resolutions? > > Or are you using fractiona

Re: [OpenLayers-Users] zoomToScale Issue

2010-03-18 Thread bartvde
Hi, how is your map instantiated? With a fixed set of scales/resolutions? Or are you using fractionalZoom: true in your map config? Best regards, Bart > All, > > I'm using OpenLayers (latest trunk version) with GeoServer 2.0.1 to > display > various layers which have scale rules defined on them

Re: [OpenLayers-Users] zoomToScale Issue

2010-03-17 Thread Andrew Haigh
Hi, Thanks for your help, that is correct I was using a WMS without any fixed resolution / cached layers. Adding the code you suggested resolved this issue. Many thanks Andrew On 17 March 2010 13:01, Mapmaker wrote: > > If you are using WMS without fixed-resolution or cached layers, you migh

Re: [OpenLayers-Users] zoomToScale Issue

2010-03-17 Thread Mapmaker
If you are using WMS without fixed-resolution or cached layers, you might want to try adding the following: map.fractionalZoom = true; -- View this message in context: http://n2.nabble.com/zoomToScale-Issue-tp4749135p4750026.html Sent from the OpenLayers Users mailing list archive at Nabble.com

[OpenLayers-Users] zoomToScale Issue

2010-03-17 Thread Andrew Haigh
All, I'm using OpenLayers (latest trunk version) with GeoServer 2.0.1 to display various layers which have scale rules defined on them within the GeoServer SLD (i.e. MaxScaleDenominator and / or MinScaleDenominator). I initially found that the scale in OpenLayers didn't match that in GeoServer bu