From 6b8c334049f255ef9f82f729e6b99ad4ef9abe36 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 27 Nov 2018 13:36:23 +0100 Subject: [PATCH] Fix layer with no data --- contribs/gmf/apps/desktop/Controller.js | 5 ++-- contribs/gmf/apps/desktop/index.html.ejs | 2 +- src/profile/d3Elevation.js | 33 ++++++++++++++---------- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/contribs/gmf/apps/desktop/Controller.js b/contribs/gmf/apps/desktop/Controller.js index a89878a84a99..70e31cc0f0c2 100644 --- a/contribs/gmf/apps/desktop/Controller.js +++ b/contribs/gmf/apps/desktop/Controller.js @@ -58,7 +58,7 @@ const exports = function($scope, $injector) { * @type {Array.} * @export */ - this.elevationLayers = ['aster', 'srtm']; + this.elevationLayers = ['aster', 'srtm', 'srtm-partial']; /** * @type {Object.} @@ -78,7 +78,8 @@ const exports = function($scope, $injector) { */ this.profileLinesconfiguration = { 'aster': {color: '#0000A0'}, - 'srtm': {color: '#00A000'} + 'srtm': {color: '#00A000'}, + 'srtm-partial': {color: '#FF66FF'}, }; /** diff --git a/contribs/gmf/apps/desktop/index.html.ejs b/contribs/gmf/apps/desktop/index.html.ejs index 73e0ad9e1fc9..bd4b9ed9992c 100644 --- a/contribs/gmf/apps/desktop/index.html.ejs +++ b/contribs/gmf/apps/desktop/index.html.ejs @@ -310,7 +310,7 @@ <% } %>