changed the label tag to: label: "${getLabel}",
and added: { context: { getLabel: findname } as well as: var findname = function(feature) { alert('feature run'); var szValue; if (feature.attributes['name'] && feature.isLabel === true) { szValue = feature.attributes['name']; } else { szValue = "null"; } szValue = feature.attributes.name; return szValue; } yet it wont even hit the alert? Any reasons why this might be? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/vector-labels-using-kml-tp4802937p5161781.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users