hello all,
I've done creating popups on the map that get all layer attributes "name,
id, position ... etc"
is there any way to make the popup display one attribute like name foe
example ? 

my script :

  mapPanel = new GeoExt.MapPanel({
            renderTo: "mappanel",
            stateId: "mappanel",
            height: 400,
            width: 600,
            map: map,
            title: 'test'
                
      });  
  
     map.addControl(new OpenLayers.Control.WMSGetFeatureInfo({
    autoActivate: true,
    infoFormat: "application/vnd.ogc.gml",
    maxFeatures: 3,
    eventListeners: {
        "getfeatureinfo": function(e) {
            var items = [];
            Ext.each(e.features, function(feature) {
                items.push({
                    xtype: "propertygrid",
                   
                    source: feature.attributes
                });
            });
            new GeoExt.Popup({
                title: "Feature Info",
                width: 200,
                height: 200,
                layout: "accordion",
                map: mapPanel,
                location: e.xy,
                items: items[0]
            }).show();
        }
    }
}));

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Filtering-the-attributes-in-popup-tp6936071p6936071.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to