[OpenLayers-Users] MaxZoomLevel for a layer

Frederico Lucca fredlucca at gmail.com
Fri Dec 15 09:49:27 EST 2006


Hello list,

I need to set a maxZoomLevel for a text layer.
My map have this options:

    var options = {
        resolutions: [0.00439453125,0.002197265625,0.0010986328125,
0.00054931640625,0.000274658203125,0.0001373291015625,0.00006866455078125,
0.000034332275390625,0.0000171661376953125,0.00000858306884765625,
0.000004291534423828125],
        tileSize: new OpenLayers.Size(512, 512),
        controls: []
    };

I'm trying to do:

    layerText = new OpenLayers.Layer.Text( "Points", {location: '
http://localhost/polos.txt', maxZoomLevel: 5} );

But this don't works for me.
Is the right way to do this?

Thanks in advance.

Fred

-- 
"Everything under the sun is in tune
But the sun is eclipsed by the moon"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061215/07020762/attachment.html


More information about the Users mailing list