[OpenLayers-Users] Alternatives to get rid of WFS layers

Phil Scadden p.scadden at gns.cri.nz
Wed Nov 5 12:30:14 PST 2014


I use GetFeature Control for hover functionality, but sometimes 
WMSGetFeatureInfo with hover with an Html template backend is good 
enough. (When your application only needs to display the attributes, not 
do any other processing of them). I use selectfeature for "info" and 
"polygon" tool which usually have the assumption that multiple features 
will be returned - display list of features in a popup and the user 
doing further processing from there.

Depending on database size, you could try some pre-load tricks. onmove 
you issue WFS GetFeature for the area covered by the map but ONLY for 
attributes, not shape (that should reduce your download size). Then you 
need only featureid returned from hover and look up the other attributes 
in the preloaded table.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.



More information about the Users mailing list