From ce3f3b1a9c487604ceaaefc3d369e223cf7afdb7 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Fri, 19 Nov 2021 12:31:24 -0300 Subject: [PATCH] Fixing marker offset in map --- src/app/components/map/LeafLetMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/map/LeafLetMap.js b/src/app/components/map/LeafLetMap.js index e2307f2..647e89f 100644 --- a/src/app/components/map/LeafLetMap.js +++ b/src/app/components/map/LeafLetMap.js @@ -78,7 +78,7 @@ async function insertMarker(mapRef, ID, coordinate, icon) { var customIcon = L.divIcon({ className: 'marker-class', html: \`${icon}\`, - iconSize: 70 + iconAnchor: [30, 78], }); // Check if there is no other marker with same ID already in map if (!(${ID} in markers)) {