Hi Warren,
you can set set the scales manually like this:
var options = {
maxExtent: new OpenLayers.Bounds(1430000,4400000,1760000,4660000)
,maxResolution: "auto"
,scales: [1000000,500000,250000,100000,50000,25000,10000]
,units: 'm'
,projection: 'EPSG:31466'
,controls: []
//,zoom: 1
//,numZoomLevels: 8
};
map = new OpenLayers.Map('map', options);
If you don't want to set scales use numZoomLevels.
Regards,
Matthias
Warren Vick schrieb:
> How can I set a minimum zoom level for a map? Focussing on a single
> country, I know how to limit the extent but can't figure out how to stop
> someone zooming out and seeing TMS tiles that have not been rendered.
>
> Regards,
> Warren
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users