[OpenLayers-Users] vector labels using kml
Thqr
s.underwood at fugro.com.au
Thu Jun 10 02:04:09 EDT 2010
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.
More information about the Users
mailing list