diff options
-rw-r--r-- | modern/src/map/main/PoiMap.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modern/src/map/main/PoiMap.js b/modern/src/map/main/PoiMap.js index a5185c75..e3364ec2 100644 --- a/modern/src/map/main/PoiMap.js +++ b/modern/src/map/main/PoiMap.js @@ -40,6 +40,15 @@ const PoiMap = () => { }); map.addLayer({ source: id, + id: 'poi-line', + type: 'line', + paint: { + 'line-color': theme.palette.colors.geometry, + 'line-width': 2, + }, + }); + map.addLayer({ + source: id, id: 'poi-title', type: 'symbol', layout: { @@ -58,6 +67,9 @@ const PoiMap = () => { if (map.getLayer('poi-point')) { map.removeLayer('poi-point'); } + if (map.getLayer('poi-line')) { + map.removeLayer('poi-line'); + } if (map.getLayer('poi-title')) { map.removeLayer('poi-title'); } |