Sledrun names are shown without "Sledrun:" prefix.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 2 Jan 2021 13:54:14 +0000 (14:54 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 2 Jan 2021 13:54:14 +0000 (14:54 +0100)
wrmap.js

index 5188f82f411b16df09479aa0b6b85be4ba56a812..72d48ad1b9bb1403efb5c7b16b8b24598d62aa80 100644 (file)
--- a/wrmap.js
+++ b/wrmap.js
@@ -95,6 +95,7 @@ function init_wrmap(i, jq_map) {
 
        function get_feature_title(feature) {
                var title = feature.get('type');
+               if (title == 'sledrun') return feature.get('name');
                title = title.charAt(0).toUpperCase() + title.slice(1); // first letter uppercase
                if (feature.get('name')) title += ': ' + feature.get('name');
                return title;