[Users] GetFeature Popup [Sec=Unclassified]
Eric Lemoine
eric.lemoine at camptocamp.com
Fri Nov 6 14:08:28 CET 2009
On Fri, Nov 6, 2009 at 5:19 AM, Miles Jordan <Miles.Jordan at aad.gov.au> wrote:
> Hi,
>
> I haven't been able to find a comprehensive example of how to show a feature's attributes in a Popup.
>
> I've seen the example of creating a popup, which works fine. I've also seen the example of showing DescribeFeatureType results in a popup, ok.
>
> So I have an OpenLayers map that has a WMS Layer on it, and a GetFeature control that uses the WFS.fromWMSLayer Protocol in conjunction with a Vector Layer to highlight a selected Feature.
>
> That works fine and I can get a popup on my map when I click and select a feature. Now I am wondering how I get the selected Feature's attributes into some form that I can use in a Ext GridPanel inside the popup.
Hi. The GeoExt popup is an Ext window, so you can add any component to
a popup, a grid panel for example. This grid panel can be configured
with a GeoExt feature store, so that features can easily be added in
the grid. Look at
<http://dev.geoext.org/trunk/geoext/examples/feature-grid.html> to
understand how to create a grid of features.
Hope this helps,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list