Hello,
i have a popup that get the featureInfo on the map, what i want to do is to
customize the display of the WMS GetInfo Results, i don't want to avoid
automatic alphabetic sortingof the attribute declared on the source (see
the code). Plz tell me how to do that, here's my code:
action = new GeoExt.Action({
control: new OpenLayers.Control.WMSGetFeatureInfo({
autoActivate: true,
infoFormat: "application/vnd.ogc.gml",
maxFeatures: 6,
layers: [layer1],
eventListeners: {
"getfeatureinfo": function(e) {
var items = [];
Ext.each(e.features, function(feature) {
items.push({
xtype: "propertygrid",
title: feature.fid,
source: {"aaaaa": feature.attributes['aaaa'], "bbbb":
feature.attributes['bbbb']},
});
});
new GeoExt.Popup({
title: "informations",
width: 250,
height: 300,
layout: "accordion",
map: map,
location: e.xy,
items: items
}).show();
}
}
}),
map: map,
text: "infos",
tooltip: "Informations "
});
actions["infos"] = action;
toolbarItems.push(action);
toolbarItems.push("-");
--
*Asma OUQALLI*
Élève ingénieur : 3ème Sciences d'Information Géographique (SIG).
Chef de commission développement professionnel - Rotaract EHTP.
Chef de cellule Media - Olympiades EHTP 2012.
Ecole Hassania des Travaux Publics.
Mobile : +212 672 48 23 15.
Email : asma.ouqa...@gmail.com
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users