[OpenLayers-Users] Display a layer at the specified zoom

Donald Kerr donald.kerr at dkerr.co.uk
Wed Oct 24 08:30:46 PDT 2012


var vectorPoint = new OpenLayers.Layer.Vector("LayerName",
            {
                minScale: 5500,
                styleMap: new OpenLayers.StyleMap(
                { "default": styleMarkersLabels,
                
                "select": { pointRadius: 1}
                })
            });

 

-----Original Message-----
From: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of adidas
Sent: 24 October 2012 16:25
To: openlayers-users at lists.osgeo.org
Subject: Re: [OpenLayers-Users] Display a layer at the specified zoom


Thanks. But how i can do it for layer vector?
Code:
var vectorPoint = new OpenLayers.Layer.Vector("LayerName",
            {
                styleMap: new OpenLayers.StyleMap(
                { "default": styleMarkersLabels,
                
                "select": { pointRadius: 1}
                })
            });

23.10.2012 18:06, Till Adams пишет:


Hi,



use



minResolution or minScale

http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLay
ers/Layer-js.html#OpenLayers.Layer.minResolution



Regards, Till





On 23.10.2012 17:00, adidas wrote:

Hello! How to display a layer at the specified zoom? For example, the

layer is displayed at a zoom more than 14 and etc.

Thanks for answer.

_______________________________________________

Users mailing list

Users at lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/openlayers-users




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121024/6d263609/attachment-0001.html>


More information about the Users mailing list