From d79760dbc28d642b8b53f4cdae411fa9375a737a Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Tue, 7 Dec 2021 17:19:27 -0600 Subject: Collapse sidebar only below XS, marker labels colored according to device status and fixed loading of some marker images --- modern/src/map/PositionsMap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modern/src/map') diff --git a/modern/src/map/PositionsMap.js b/modern/src/map/PositionsMap.js index f1ac3b7..b53cbfb 100644 --- a/modern/src/map/PositionsMap.js +++ b/modern/src/map/PositionsMap.js @@ -104,7 +104,7 @@ const PositionsMap = ({ positions }) => { source: id, filter: ['!', ['has', 'point_count']], layout: { - 'icon-image': '{category}-map', + 'icon-image': ['concat', ['downcase', ['get', 'category']], '-map'], 'icon-allow-overlap': true, 'text-field': '{name}', 'text-allow-overlap': true, @@ -114,6 +114,7 @@ const PositionsMap = ({ positions }) => { 'text-size': 12, }, paint: { + 'text-color': {type: 'identity', property: 'color'}, 'text-halo-color': 'white', 'text-halo-width': 1, }, -- cgit v1.2.3