From 58a4699508abc16da587f19db1e6f03c88ecb061 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 23 Jan 2018 19:59:41 +0100 Subject: [PATCH] Restore area fill from local storage including wireframe --- modules/ui/map_data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/map_data.js b/modules/ui/map_data.js index aef91c01b..690b76a0a 100644 --- a/modules/ui/map_data.js +++ b/modules/ui/map_data.js @@ -21,7 +21,7 @@ export function uiMapData(context) { var fills = ['wireframe', 'partial', 'full']; var _fillDefault = context.storage('area-fill') || 'partial'; - var _fillSelected = _fillDefault; + var _fillSelected = _fillDefault !== 'wireframe' ? _fillDefault : 'partial'; var _shown = false; var _dataLayerContainer = d3_select(null); var _fillList = d3_select(null); @@ -57,8 +57,8 @@ export function uiMapData(context) { _fillSelected = d; if (d !== 'wireframe') { _fillDefault = d; - context.storage('area-fill', d); } + context.storage('area-fill', d); update(); }