<br><br>On Monday, February 6, 2012, Kjel Anderson <<a href="mailto:kanderson@truevectortech.com">kanderson@truevectortech.com</a>> wrote:<br>> Hey everyone,<br>> I'm having trouble with maxScale. I have it set as follows:<br>
> lata = new OpenLayers.Layer.WMS(<br>> "lata_boundaries - Untiled", "<a href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>",<br>> {<br>
> srs: 'EPSG:900913',<br>> layers: 'DWT:dwt_lata_proj',<br>> styles: 'dwt_lata',<br>> format: format,<br>
> transparent: true,<br>> minScale: 50000,<br>> maxScale: 8000000<br>> },<br>> {singleTile: true, ratio: 1}<br>
> );<br>> Can you see anything obviously wrong with this?<br><br>minScale and maxScale shouldn't be params sent in WMS GetMap requests. They should be options of the Layer.WMS object. So try moving these properties to the 4th argument, where singleTile and ratio are defined.<br>
<br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>