Browse Source

Fixing marker offset in map

master
GabrielTrettel 3 years ago
parent
commit
ce3f3b1a9c
  1. 2
      src/app/components/map/LeafLetMap.js

2
src/app/components/map/LeafLetMap.js

@ -78,7 +78,7 @@ async function insertMarker(mapRef, ID, coordinate, icon) {
var customIcon = L.divIcon({ var customIcon = L.divIcon({
className: 'marker-class', className: 'marker-class',
html: \`<body>${icon}</body>\`, html: \`<body>${icon}</body>\`,
iconSize: 70
iconAnchor: [30, 78],
}); });
// Check if there is no other marker with same ID already in map // Check if there is no other marker with same ID already in map
if (!(${ID} in markers)) { if (!(${ID} in markers)) {

Loading…
Cancel
Save