Round ESRI background accuracy and resolution labels to four decimal places (close #7573)

This commit is contained in:
Quincy Morgan
2020-05-21 10:43:19 -04:00
parent 57708b9342
commit 35eaf7045c
+2 -2
View File
@@ -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