From 1ee4354b9e9cabb5cb1a66ada9372a2057031e5a Mon Sep 17 00:00:00 2001 From: Basile Bruneau Date: Sat, 12 Feb 2022 20:53:50 +0100 Subject: [PATCH] fix: release 2.2.2 --- package.json | 2 +- src/without-countries.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; },