From b9c481d8e15364910610c202e501e6a655343dd2 Mon Sep 17 00:00:00 2001 From: kdeterme Date: Mon, 12 Oct 2026 16:21:27 +0200 Subject: [PATCH] style(assets): reduce point selection circle halo radius and stroke width --- loko/assets/static/assets/asset_symbology.js | 18 +++++++++--------- .../assets/static/assets/unified_map_layers.js | 18 +++++++++--------- .../assets/templates/assets/unified_index.html | 6 +++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/loko/assets/static/assets/asset_symbology.js b/loko/assets/static/assets/asset_symbology.js index e126065..faaa8a5 100644 --- a/loko/assets/static/assets/asset_symbology.js +++ b/loko/assets/static/assets/asset_symbology.js @@ -1076,13 +1076,13 @@ paint: { 'circle-radius': [ 'interpolate', ['linear'], ['zoom'], - 8, ['case', isNatureExpr, 8, 10], - 11, ['case', isNatureExpr, 13, 15], - 13, ['case', isNatureExpr, 17, 20], - 15, ['case', isNatureExpr, 23, 26], - 17, ['case', isNatureExpr, 30, 34], - 19, ['case', isNatureExpr, 38, 44], - 22, ['case', isNatureExpr, 48, 56] + 8, ['case', isNatureExpr, 4, 5], + 11, ['case', isNatureExpr, 6, 7], + 13, ['case', isNatureExpr, 8, 10], + 15, ['case', isNatureExpr, 11, 14], + 17, ['case', isNatureExpr, 14, 18], + 19, ['case', isNatureExpr, 18, 23], + 22, ['case', isNatureExpr, 22, 28] ], 'circle-color': [ 'case', @@ -1102,8 +1102,8 @@ ], 'circle-stroke-width': [ 'case', - ['boolean', ['feature-state', 'selected'], false], 4.5, - ['boolean', ['feature-state', 'highlighted'], false], 3, + ['boolean', ['feature-state', 'selected'], false], 3.5, + ['boolean', ['feature-state', 'highlighted'], false], 2.5, 0 ], 'circle-stroke-opacity': [ diff --git a/loko/assets/static/assets/unified_map_layers.js b/loko/assets/static/assets/unified_map_layers.js index cfb38a3..a8a7596 100644 --- a/loko/assets/static/assets/unified_map_layers.js +++ b/loko/assets/static/assets/unified_map_layers.js @@ -1199,13 +1199,13 @@ const _unified_assets_point_selection = (typeof AssetSymbology !== 'undefined' & paint: { 'circle-radius': [ 'interpolate', ['linear'], ['zoom'], - 8, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 8, 10], - 11, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 13, 15], - 13, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 17, 20], - 15, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 23, 26], - 17, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 30, 34], - 19, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 38, 44], - 22, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 48, 56] + 8, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 4, 5], + 11, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 6, 7], + 13, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 8, 10], + 15, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 11, 14], + 17, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 14, 18], + 19, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 18, 23], + 22, ['case', ['any', ['==', ['get', 'asset_type'], 'naturetree'], ['==', ['get', 'asset_type'], 'natureshrub'], ['==', ['get', 'thematic'], 'nature']], 22, 28] ], 'circle-color': [ 'case', @@ -1225,8 +1225,8 @@ const _unified_assets_point_selection = (typeof AssetSymbology !== 'undefined' & ], 'circle-stroke-width': [ 'case', - ['boolean', ['feature-state', 'selected'], false], 4.5, - ['boolean', ['feature-state', 'highlighted'], false], 3, + ['boolean', ['feature-state', 'selected'], false], 3.5, + ['boolean', ['feature-state', 'highlighted'], false], 2.5, 0 ], 'circle-stroke-opacity': [ diff --git a/loko/assets/templates/assets/unified_index.html b/loko/assets/templates/assets/unified_index.html index f2edf0d..fe7f6b1 100644 --- a/loko/assets/templates/assets/unified_index.html +++ b/loko/assets/templates/assets/unified_index.html @@ -1636,7 +1636,7 @@ - - - + + + {% endblock script %} \ No newline at end of file