Openlayers: how to remove the FID field with the WMSGetFeatureInfo function?

المشرف العام

Administrator
طاقم الإدارة
I'm using the WMSGetFeatureInfo control of Openlayers in order to have a pupop in the map with the WMS layer info.Automatically Openlayers inserts a FID field at the beginning of the popup.Is there a way to hide that field?

more precisely, i'm using this function in my js map file:

info = new OpenLayers.Control.WMSGetFeatureInfo({ url: 'http://localhost:8080/geoserver/wms', title: 'Identify features by clicking', queryVisible: true, eventListeners: { getfeatureinfo: function(event) { map.addPopup(new OpenLayers.Popup.FramedCloud( "chicken", map.getLonLatFromPixel(event.xy), null, event.text, null, true )); } } }); map.addControl(info);Do you have any suggestion to remove the fid field?Thank you



أكثر...
 
أعلى