[OpenLayers-Users] Re: Why WFS Layer Displayed very slowely over Google Map

Ian Turton ijturton at gmail.com
Fri Mar 4 10:45:16 EST 2011


On 4 March 2011 10:15, Mustafa646 <noorcs22 at gmail.com> wrote:
> As i understand that you mentioned, I have to draw WMS Layer and then under
> click enent, call WFS to get features. I visited following example which
> uses WMS and WFS:
>
> http://openlayers.org/dev/examples/getfeature-wfs.html
>
> In the above example, GetFeature method is used to get vector features for
> locations underneath the mouse cursor. And Can be configured to act on
> click, hover.
>
> But, In my case, I have a Button and Textbox. The user puts some value in
> textbox and press the button, Under Button click event, Textbox value needs
> to compare with specific column value  of all the features (3500 features)
> in loop. And finally, one feature will be selected based on comparision.
>
> so, for this reason, i need all the features displayed over google map
> before performing the above action.
>
> Now, Please guide me How I can draw Vector Layer fastly. OR is there any
> other way to solve this problem.
>

There is no way to draw 3000 polygons fast in the browser. You could
use a WFS getFeature request using the info in the textbox and then
draw that result on the map. See
http://ian01.geog.psu.edu/geoserver_docs/apps/gaz/index.html for a
discussion on how to do this (I search 2.7 million records in 100ms)
and http://ian01.geog.psu.edu/geoserver/www/search/gazetteer.html for
the actual app.

Ian
-- 
Ian Turton


More information about the Users mailing list