diff options
| author | Zog | 2018-03-02 11:06:24 +0100 |
|---|---|---|
| committer | Zog | 2018-03-02 11:06:24 +0100 |
| commit | 54fd846e3d8130bd126d684f3834260affc90bfe (patch) | |
| tree | 6564b0d41b340791e178a308980d63d3730e0189 /app/javascript | |
| parent | 897d0ad6b48f063f40144a1dbb770f4fbc5f96f0 (diff) | |
| download | chouette-core-54fd846e3d8130bd126d684f3834260affc90bfe.tar.bz2 | |
Show labels on a signle columnenhance-map-with-several-routes
Display full name on hover
Diffstat (limited to 'app/javascript')
| -rw-r--r-- | app/javascript/helpers/routes_map.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/helpers/routes_map.coffee b/app/javascript/helpers/routes_map.coffee index 479169995..42377cd6e 100644 --- a/app/javascript/helpers/routes_map.coffee +++ b/app/javascript/helpers/routes_map.coffee @@ -30,7 +30,8 @@ RoutesLayersControl = (routes, routes_map) -> Object.keys(routes).forEach (id)=> route = routes[id] route.active = true - label = document.createElement('div') + label = document.createElement('a') + label.title = route.name label.className = 'active' label.innerHTML = route.name element.appendChild label |
