From 5ea4d7229a3a73a78ee28a289a2962f0bc6e9789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 9 Jun 2017 15:52:57 +0200 Subject: [PATCH] highlight upper spaces with white border in editor --- src/c3nav/editor/static/editor/js/editor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index 743f97c6..08c18b88 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -293,6 +293,11 @@ editor = { _get_geometry_style: function (feature) { // style callback for GeoJSON loader var style = editor._get_mapitem_type_style(feature.properties.type); + if (feature.properties.layer === 'upper') { + style.stroke = true; + style.weight = 1; + style.color = '#ffffff'; + } if (feature.geometry.type === 'LineString') { style = editor._line_draw_geometry_style(style); }