diff options
Diffstat (limited to 'modern/src/MainMap.js')
-rw-r--r-- | modern/src/MainMap.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modern/src/MainMap.js b/modern/src/MainMap.js index 72f718e7..f2ac1b7b 100644 --- a/modern/src/MainMap.js +++ b/modern/src/MainMap.js @@ -58,8 +58,7 @@ const MainMap = () => { 'type': 'geojson', 'data': positions, }); - mapManager.addLayer('device-background', 'positions', 'background', '{name}'); - mapManager.addLayer('device-icon', 'positions', 'icon-marker'); + mapManager.addLayer('device-icon', 'positions', 'icon-marker', '{name}'); const bounds = mapManager.calculateBounds(positions.features); if (bounds) { @@ -70,7 +69,6 @@ const MainMap = () => { } return () => { - mapManager.map.removeLayer('device-background'); mapManager.map.removeLayer('device-icon'); mapManager.map.removeSource('positions'); }; |