<div>Bart,</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Andrew<br><br></div>
<div class="gmail_quote">On 17 March 2010 09:38, <span dir="ltr"><<a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>how is your map instantiated? With a fixed set of scales/resolutions?<br><br>Or are you using fractionalZoom: true in your map config?<br>
<br>Best regards,<br>Bart<br>
<div>
<div></div>
<div class="h5"><br>> All,<br>><br>> I'm using OpenLayers (latest trunk version) with GeoServer 2.0.1 to<br>> display<br>> various layers which have scale rules defined on them within the GeoServer<br>
> SLD (i.e. MaxScaleDenominator and / or MinScaleDenominator).<br>><br>> I initially found that the scale in OpenLayers didn't match that in<br>> GeoServer but I have followed the steps outlined in this post<br>
> <a href="http://openlayers.org/pipermail/users/2008-October/008453.html" target="_blank">http://openlayers.org/pipermail/users/2008-October/008453.html</a> and as such<br>> added the following line before I use any of the OpenLayers classes:<br>
><br>> OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;<br>><br>> This means that the scale displayed by OpenLayers now matches that used by<br>> GeoServer to one / two decimal places.<br>><br>> However, I have found that the map.zoomToScale function no longer works as<br>
> expected. As such when I invoke map.zoomToScale(4578, false) the map zooms<br>> to a scale of 1:6800 instead of 4578 as expected.<br>><br>> Does anybody have any ideas as to what I am doing wrong? Do I need to<br>
> change<br>> something in addition to OpenLayers.DOTS_PER_INCH?<br>><br>> Thanks<br>><br>> Andrew<br></div></div>
<div>
<div></div>
<div class="h5">> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>> <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
><br><br><br></div></div></blockquote></div><br>