getTitle: function(feature) {
var title = '';
if (feature.attributes.type != 'point') {
- title = feature.attributes.type; // TODO: First letter uppercase
+ title = feature.attributes.type;
+ title = title.charAt(0).toUpperCase() + title.slice(1); // First letter uppercase
if (feature.attributes.name !== undefined) title += ': ';
}
if (feature.attributes.name !== undefined) title += feature.attributes.name;