[OpenLayers-Users] Why WFS Layer Displayed very slowely over
Google Map
Alexandre Dube
adube at mapgears.com
Fri Mar 4 08:50:37 EST 2011
Right,
If it's only a click, using a WMS GetFeatureInfo request would be enough
though. You could always put a marker at the clicked location if you
wanted to keep track of where the user clicked. If you want to do a
"box" query, go with the WFS GetFeature control instead.
Regards,
Alexandre
On 11-03-04 08:33 AM, Charles Galpin wrote:
> Mustafa646,
>
> I think this was said before, but I'll try explain better. What you want to do is change to using a WMS layer to display these features, and then on click do a WFS call to get the feature info to display. The display of the features will take a little bit longer but your app with be usable.
>
> hth,
> charles
>
> On Mar 4, 2011, at 8:28 AM, Mustafa646 wrote:
>
>> 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);
> _______________________________________________
> 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