Mercurial > gemma
diff client/src/components/map/layers.js @ 3685:8775bea8042a
client: layers: unset layer config on logout
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 18 Jun 2019 14:39:36 +0200 |
parents | 8f58851927c0 |
children | efe0904b1d45 |
line wrap: on
line diff
--- a/client/src/components/map/layers.js Tue Jun 18 14:15:29 2019 +0200 +++ b/client/src/components/map/layers.js Tue Jun 18 14:39:36 2019 +0200 @@ -169,9 +169,13 @@ } }); -const layerConfigs = {}; +let layerConfigs = {}; -export default function(mapId) { +export const unsetLayerConfigs = function() { + layerConfigs = {}; +}; + +export const layerFactory = function(mapId) { const styles = styleFactory(mapId); // Shared feature source for layers: // BOTTLENECKS, BOTTLENECKSTATUS and BOTTLENECKFAIRWAYAVAILABILITY @@ -660,4 +664,4 @@ }, config }; -} +};