opengeo/gxp — Issue #100: ClickableFeatures plugin should not use WMS GetFeatureInfo
Author: ahocevar
Created: 2011-11-22 10:59:41+00:00
State: open

In GeoServer, WMS layers can be configured to not be queryable. For such layers, editing of existing features is also disabled, because ClickableFeatures uses a GetFeatureInfo request to determine the feature at the click location. We should use an OpenLayers.GetFeature control instead.

Note: using WMS GetFeatureInfo instead of WFS GetFeature was a decision I made when I initially created this code, because GetFeatureInfo has a better logic to return a single feature at the click location. The GetFeature control in OpenLayers applies a similar logic on the client side (i.e. distance of the returned features to the clicked point), so this would be a good replacement.