From 35eaf7045c30e9f7cc96254a00dcf423435005e0 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Thu, 21 May 2020 10:43:19 -0400 Subject: [PATCH] Round ESRI background accuracy and resolution labels to four decimal places (close #7573) --- modules/renderer/background_source.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/renderer/background_source.js b/modules/renderer/background_source.js index 3b9d4950f..892ad39a5 100644 --- a/modules/renderer/background_source.js +++ b/modules/renderer/background_source.js @@ -476,8 +476,8 @@ rendererBackgroundSource.Esri = function(data) { vintage: vintage, source: clean(result.features[0].attributes.NICE_NAME), description: clean(result.features[0].attributes.NICE_DESC), - resolution: clean(result.features[0].attributes.SRC_RES), - accuracy: clean(result.features[0].attributes.SRC_ACC) + resolution: clean(+parseFloat(result.features[0].attributes.SRC_RES).toFixed(4)), + accuracy: clean(+parseFloat(result.features[0].attributes.SRC_ACC).toFixed(4)) }; // append units - meters