diff --git a/docs/pages/Tools/Identifier/Identifier.md b/docs/pages/Tools/Identifier/Identifier.md index f4c04b50..c4b62113 100644 --- a/docs/pages/Tools/Identifier/Identifier.md +++ b/docs/pages/Tools/Identifier/Identifier.md @@ -19,6 +19,7 @@ The following is an example of the Sites Tool's Tool Tab configuration: "url": "(str) path_to_data/data.tif", "bands": "(int) how many bands to query from", "sigfigs": "(int) how many digits after the decimal", + "scalefactor": "(float) number to multiply value", "unit": "(str) whatever string unit", "timeFormat": "(str) for formatting injected '{starttime}' and '{endtime}' in url." }, @@ -30,5 +31,6 @@ The following is an example of the Sites Tool's Tool Tab configuration: - `url`: This can be a relative path to a file under the Mission name or a full url path. The former is preferred is the file is large. Can use '{starttime}' and '{endtime}' if the layer is time enabled. - `bands`: Allows you to specify how many bands to return data from. Default is 1. - `sigfigs`: Sets the decimal precision. +- `scalefactor`: A float number that will multiply the value to scale. - `unit`: A string that is appended to your returned value. e.g. " m" would be appended on a raw value ("41") and show "41 m". If it was "m", it would return "41m", without a space. - `timeFormat`: A string for formatting the injected '{starttime}' and '{endtime}' in the url. See syntax in https://d3js.org/d3-time-format#locale_format diff --git a/src/essence/Tools/Identifier/IdentifierTool.js b/src/essence/Tools/Identifier/IdentifierTool.js index 908d5dc2..5083dbde 100644 --- a/src/essence/Tools/Identifier/IdentifierTool.js +++ b/src/essence/Tools/Identifier/IdentifierTool.js @@ -34,6 +34,7 @@ var IdentifierTool = { //Get tool variables and UI adjustments this.justification = L_.getToolVars('identifier')['justification'] var toolContent = d3.select('#toolSeparated_Identifier') + toolContent.style('bottom', '2px') if (this.justification == 'right') { var toolController = d3.select('#toolcontroller_sepdiv') @@ -351,17 +352,25 @@ var IdentifierTool = { var valueParsed = parseValue( value[v][1], - d2.sigfigs + d2.sigfigs, + d2.scalefactor ) + '' + unit - htmlValues += - '