The first letter of the type is uppercase now.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 13 Sep 2013 13:08:26 +0000 (13:08 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Fri, 13 Sep 2013 13:08:26 +0000 (13:08 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrmap/trunk@1576 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrmap.js

index 00f4fc9cc61c0f5c5bbacbda4df1107dd9be4a12..76c69da2057bebe7a227c1170641c82aaa2c9cb7 100644 (file)
--- a/wrmap.js
+++ b/wrmap.js
@@ -134,7 +134,8 @@ function init_wrmap(i, jq_map) {
                                                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;