[OpenLayers-Users] WFS GEtFeature layer not showing on map

inno innoyan at yahoo.com
Sat Aug 7 20:13:57 EDT 2010


Hi,

I don't know you already got the key:value pair. It loops through all
attributes. Here is the working code:

feature = evt.feature;
var Msg="";
for (var key in feature.attributes){
	Msg +=key + ":" + feature.attributes[key];
}

Then, you can put "Msg" variable in your 'featuredetails' div.


sunny74 wrote:
> 
> Hi,
> 
> I am trying to loop thru' the Attribute list and display the name,value
> pair.
> For eg S_Name: Navsari
> 
> where S_Name is the name of the attribute and Navsari is value.
> But not successful till now.
> 
> 
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-GEtFeature-layer-not-showing-on-map-tp4921150p5384933.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list