From db7eff4bc320226e41714db1d65a8ff199d6ceaf Mon Sep 17 00:00:00 2001 From: Gerald Mutuhu Date: Fri, 17 Feb 2017 18:15:22 +0300 Subject: [PATCH] AMP-24640 - fix popup for layers of type percent to show nulls correctly AMP-24640 - fix popup for layers of type percent to display 'No Data' when value is null --- .../gisModule/dev/app/js/amp/map/views/indicator-layers-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amp/TEMPLATE/ampTemplate/gisModule/dev/app/js/amp/map/views/indicator-layers-view.js b/amp/TEMPLATE/ampTemplate/gisModule/dev/app/js/amp/map/views/indicator-layers-view.js index 51407966ba9..35ae2fec9f4 100644 --- a/amp/TEMPLATE/ampTemplate/gisModule/dev/app/js/amp/map/views/indicator-layers-view.js +++ b/amp/TEMPLATE/ampTemplate/gisModule/dev/app/js/amp/map/views/indicator-layers-view.js @@ -181,7 +181,7 @@ module.exports = Backbone.View.extend({ value = ampFormatter.format(feature.properties.value) } - var fundingPopupTemplate = value ? ['', feature.properties.name, '', + var fundingPopupTemplate = feature.properties.value ? ['', feature.properties.name, '', '
', formattedTitleString, '', value, ' ', unit].join('') : ['', feature.properties.name, '', '
', self.app.translator.translateSync("amp.gis:popup-no-data","No Data")].join('');