]> ToastFreeware Gitweb - philipp/winterrodeln/mediawiki_extensions/wrmap.git/blobdiff - wrmap.js
The color format is checked now.
[philipp/winterrodeln/mediawiki_extensions/wrmap.git] / 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;