diff --git a/src/Map.js b/src/Map.js index 63c8ed5..789fe80 100644 --- a/src/Map.js +++ b/src/Map.js @@ -67,9 +67,9 @@ export default class Map { /** *************************** static *************************** */ static formatClusterText(count) { - if (count > 1000000) { + if (count >= 1000000) { return `${(count / 1000000).toFixed(1)}M` - } else if (count > 1000) { + } else if (count >= 1000) { return `${Math.floor(count / 1000)}K` } return count