diff --git a/package.json b/package.json index 5e355f9..e448291 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dotted-map", - "version": "2.2.1", + "version": "2.2.2", "description": "Create a SVG map filled with dots for the world or countries", "main": "./index.js", "exports": { diff --git a/src/without-countries.js b/src/without-countries.js index 063873d..b25ce5d 100644 --- a/src/without-countries.js +++ b/src/without-countries.js @@ -20,7 +20,7 @@ function DottedMapWithoutCountries({ map, avoidOuterPins = false }) { const pin = this.getPin({ lat, lng }); const point = { ...pin, data, svgOptions }; - points[[x, y].join(';')] = point; + points[[point.x, point.y].join(';')] = point; return point; },