[OpenLayers-Users] Re: Why WFS Layer is displaying very slowely over Google Map.

Alexandre Dube adube at mapgears.com
Fri Mar 4 08:48:31 EST 2011


Mustafa,

I don't see why you absolutely need to have vector features. Like Phil 
said, WMS is much faster. Since you're querying your features with a 
click, doing so on a fast image with a WMS GetFeatureInfo request is 
enough. The result shows after a very small delay, which is the only 
downside but at least your navigation experience isn't affected by heavy 
vector features the browser has to manage.

I'd strongly suggest that you use a WMS layer and use the GetFeatureInfo 
control.

Kind regards,

Alexandre


On 11-03-04 08:34 AM, Mustafa646 wrote:
> Ok!, I see your example,
>
> With the help of code below, i draw WFS Layer (3500 features) over google
> map. But it takes so much time to draw completely, and my explorer freezs
> some time. But the code works fine with small files like (200 features).
>
> Actually i want to identify some specific feature under Button click event
> by passing that feature's attribute value through textbox. For that reason,
> i need to display Vector Layer (consists of 3500 polygon features) over
> Google Map.
> I search a lot, but could not find a way, how i can make it fast ?
>
> need help !
> code:
>
>   wfs = new OpenLayers.Layer.Vector("Data", {
>                  strategies: [new OpenLayers.Strategy.BBOX()],
>                  protocol: new OpenLayers.Protocol.WFS({
>                      url: "http://localhost:8080/geoserver/wfs",
>                      featureType: "traget_grave3",
>                      featureNS: "http://www.openplans.org/TestSpace",
>                      srsName: "EPSG:900913",
>                      version: "1.1.0",
>                      isBaseLayer: false,
>                      visibility:true
>                  })
>              });
>
> map.addLayers(wfs);
>
>
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Why-WFS-Layer-is-displaying-very-slowely-over-Google-Map-tp6085290p6088489.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users


-- 
Alexandre Dubé
Mapgears
www.mapgears.com



More information about the Users mailing list