[OpenLayers-Users] display date by scales

Arnd Wippermann arnd.wippermann at web.de
Fri Aug 28 01:54:24 EDT 2009


perhaps
 
minScale and maxScale will do.
 
Arnd

  _____  

Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von YOUNESS ELMEDRAOUI
Gesendet: Freitag, 28. August 2009 00:33
An: users at openlayers.org
Betreff: [OpenLayers-Users] display date by scales


Hi,
 
i have a pblm with displaying data using scales.
i tested a scales options in a layer definition, but it's not work.
i'm using a cluster, fixed and bbox strategies:
 
 map = new OpenLayers.Map('map',{ maxExtent: bounds,maxResolution : "auto",
            units : "meters",
            projection : "epsg:27563"
       });
....
....
 
layer_wfs = new OpenLayers.Layer.Vector("WFS",
             {
                  strategies: [
                       new OpenLayers.Strategy.Fixed(),
                       new OpenLayers.Strategy.Cluster(),
                       new OpenLayers.Strategy.BBOX()
                  ],
                  protocol: new OpenLayers.Protocol.HTTP({
                       url:
"http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfi
leOracleWFS.map&",
                       params: {
                            format: "WFS",
                            service: "WFS",
                            request: "GetFeature",
                            srs: "epsg:27563",
                            VERSION : "1.0.0",
                            typename : 'EAU_EQUIP_PUBLIC'
                       },
                       format: new OpenLayers.Format.GML()
                  }),
                  styleMap:new OpenLayers.StyleMap({
                       "default": WFSstyle,
                       "select": {
                            fillColor: "#8aeeef",
                            strokeColor: "#32a8a9"
                       }
                  })
             },
             {
                  extractAttributes:true,
                  displayInLayerSwitcher: true,
                  scales:[0,5000]        
             });


anyone have an idea? 
 
thnks,

Best regards,
Youness ELMEDRAOUI
Les informations figurant sur cet e-mail ont un caractère strictement
confidentiel et sont exclusivement adressées au destinataire mentionné
ci-dessus.Tout usage, reproduction ou divulgation de cet e-mail est
strictement interdit si vous n'en êtes pas le destinataire.Dans ce cas,
veuillez nous en avertir immédiatement par la même voie et détruire
l'original. Merci 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090828/8d3cc654/attachment.html


More information about the Users mailing list