[OpenLayers-Users] WFS - slowly Speed

Robert Zimmermann zimmermann at zimrob.de
Tue Jul 27 14:04:38 EDT 2010


I want to draw a WFS Source from GeoServer. 

It's working, but very slowly. Firefox stop the script because it’s slow. 

There are only 16 polygons with some rules. Is that speed normal? Can i
speed up it?

Have somebody a idea?

 

 

var style_11 = new OpenLayers.Style();

var rulenr17 = new OpenLayers.Rule({

  title: "5000-<6000",

  filter: new OpenLayers.Filter.Comparison({

        type: OpenLayers.Filter.Comparison.BETWEEN,

        property: "d_wert",

        lowerBoundary: 5000,

        upperBoundary: 6000}),

  symbolizer: {fillColor: "#FEE5D9",

       fillOpacity: 0.9, strokeColor: "black"}

});

var rulenr18 = new OpenLayers.Rule({

  title: "6000-<7000",

  filter: new OpenLayers.Filter.Comparison({

        type: OpenLayers.Filter.Comparison.BETWEEN,

        property: "d_wert",

        lowerBoundary: 6000,

        upperBoundary: 7000}),

  symbolizer: {fillColor: "#FCAE91",

        fillOpacity: 0.9, strokeColor: "black"}

});







style_11.addRules([rulenr17,rulenr18,rulenr19,rulenr20,rulenr21]);

var haeufigkeitsverteilung = new OpenLayers.Layer.WFS(
"Häufigkeitsverteilung 2009",

        "http://zimrob.com:8080/geoserver/wfs",

        {typename: 'crimewebgis:pks_haeufigkeitsverteilung_2009'},

        {extractAttributes: true,isBaseLayer:true,visibility:false}

);

map.addLayer(haeufigkeitsverteilung);

haeufigkeitsverteilung.styleMap = new OpenLayers.StyleMap(style_11);

 

 

regards 

Robert

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100727/520a6f2c/attachment.html


More information about the Users mailing list