Commit d9b11d70 authored by Caillat Michel's avatar Caillat Michel
Browse files

Added the display of units in the measurements of contours

parent 3746bfb8
......@@ -574,9 +574,11 @@ var _marker_styles_f = function(feature) {
var coordinates = selectedFeature.getGeometry().getCoordinates();
let properties = selectedFeature.get("properties");
let level = properties["level"].toExponential(3)
infos_line.innerHTML = 'Contour level :'+level;
let levelUnit = properties["levelUnit"]
let title = 'Contour level ' + level + ' ' + levelUnit;
infos_line.innerHTML = title;
if ("measurements" in properties) {
populateInfosBlock("Contour at level "+level, properties["measurements"]);
populateInfosBlock(title, properties["measurements"]);
infos_line.innerHTML += ' <button type="button" class="btn btn-outline-link btn-sm" data-toggle="modal" data-target="#ModalInfosBlock">etc.</button>';
yAFITSContoursViewer.highlight(selectedFeature);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment