diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/assets/stylesheets/vendor/openlayers_style.scss (renamed from app/assets/stylesheets/vendor/openlayers_style.css) | 5 | ||||
| -rw-r--r-- | app/maps/application_map.rb | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/app/assets/stylesheets/vendor/openlayers_style.css b/app/assets/stylesheets/vendor/openlayers_style.scss index 25308996f..68e60da55 100644 --- a/app/assets/stylesheets/vendor/openlayers_style.css +++ b/app/assets/stylesheets/vendor/openlayers_style.scss @@ -133,6 +133,11 @@ div.olControlMousePosition { float:left;font-size:1.2em; } +.olPopup { + border-radius: 5px; + box-shadow: 0 0 6px #AAA; +} + .olPopupContent { padding:5px; overflow: auto; diff --git a/app/maps/application_map.rb b/app/maps/application_map.rb index 25b1fc10a..fb2cd897a 100644 --- a/app/maps/application_map.rb +++ b/app/maps/application_map.rb @@ -137,10 +137,13 @@ class ApplicationMap var feature = e.feature ; if (feature.attributes.inactive != undefined) return; + var stop_area_type_label = ''; + if (feature.attributes.stop_area_type_label != undefined) + stop_area_type_label = feature.attributes.stop_area_type_label; var popup = new OpenLayers.Popup.Anchored('chicken', new OpenLayers.LonLat(feature.geometry.x, feature.geometry.y), null, - \"<div class='popup_hover'><p><b>\" + feature.attributes.name +\"</b><p>\" + feature.attributes.stop_area_type_label + \"</div> \", null, false, null); + \"<div class='popup_hover'><p><b>\" + feature.attributes.name +\"</b></p>\" + stop_area_type_label + \"</div> \", null, false, null); popup.autoSize = true; popup.displayClass = 'popup_hover'; |
