From 044a7fd8a682d22214af8cb7c59cd0283de0df7e Mon Sep 17 00:00:00 2001 From: Bruno Perles Date: Wed, 6 Jan 2016 11:42:57 +0100 Subject: Remove undefined from popover and improve UI : #41594 --- app/maps/application_map.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/maps/application_map.rb') 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, - \" \", null, false, null); + \" \", null, false, null); popup.autoSize = true; popup.displayClass = 'popup_hover'; -- cgit v1.2.3