Use 'text' instead of 'name' for the label text

This commit is contained in:
ahocevar
2013-06-19 22:10:44 +02:00
parent 7353e05a90
commit cb9f4972df
5 changed files with 15 additions and 15 deletions

View File

@@ -318,7 +318,7 @@ ol.layer.Vector.prototype.groupFeaturesBySymbolizerLiteral =
item = featuresBySymbolizer[uniqueLiterals[key]];
item[0].push(feature);
if (literal instanceof ol.style.TextLiteral) {
item[2].push(literals[j].name);
item[2].push(literals[j].text);
}
}
}