diff --git a/src/bundles/peer-locations.js b/src/bundles/peer-locations.js index 0e4e0d1bd..2cb41a80f 100644 --- a/src/bundles/peer-locations.js +++ b/src/bundles/peer-locations.js @@ -173,7 +173,12 @@ export default function (opts) { 'selectPeerLocationsForSwarm', peers => { if (!peers) return [] - return peers.map(p => p.coordinates).filter(arr => !!arr) + const allCoord = peers + .map(p => p.coordinates) + .filter(arr => !!arr) + + const unique = new Set(allCoord.map(JSON.stringify)) + return Array.from(unique).map(JSON.parse) } ), diff --git a/src/peers/WorldMap/WorldMap.js b/src/peers/WorldMap/WorldMap.js index c43559b17..3de17c3d9 100644 --- a/src/peers/WorldMap/WorldMap.js +++ b/src/peers/WorldMap/WorldMap.js @@ -16,7 +16,7 @@ const WorldMap = ({ t, className }) => { let width = availableWidth * svgWidthOversizeFactor // if the map gets too big the dots get lost in the dot grid, also it just overloads the viewers brain. if (width > 3000) { - width = 3300 + width = 3000 } // if the map gets too small it becomes illegible. There will be some map cropping on mobile. if (width < 700) {