From 78f5edfd423732d9449a21510a22e7879ca2e514 Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Mon, 6 May 2024 11:21:06 +0200 Subject: [PATCH] remove not needed --- .../Projekte/Karte/layers/BeobNichtBeurteilt/Marker.jsx | 1 - .../Projekte/Karte/layers/BeobNichtZuzuordnen/Marker.jsx | 1 - .../Projekte/Karte/layers/BeobZugeordnet/Marker.jsx | 1 - src/components/Projekte/Karte/layers/Pop/Marker.jsx | 5 +---- src/components/Projekte/Karte/layers/Tpop/Marker.jsx | 5 +---- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/Projekte/Karte/layers/BeobNichtBeurteilt/Marker.jsx b/src/components/Projekte/Karte/layers/BeobNichtBeurteilt/Marker.jsx index eedde9b51..ee8398a00 100644 --- a/src/components/Projekte/Karte/layers/BeobNichtBeurteilt/Marker.jsx +++ b/src/components/Projekte/Karte/layers/BeobNichtBeurteilt/Marker.jsx @@ -45,7 +45,6 @@ const BeobNichtBeurteiltMarker = ({ beob }) => { const icon = window.L.divIcon({ html: isHighlighted ? beobIconHighlightedString : beobIconString, className: isHighlighted ? 'beobIconHighlighted' : 'beobIcon', - bgPos: [-12, -12], }) // some dates are not valid // need to account for that diff --git a/src/components/Projekte/Karte/layers/BeobNichtZuzuordnen/Marker.jsx b/src/components/Projekte/Karte/layers/BeobNichtZuzuordnen/Marker.jsx index a7e6e7028..8aa171b50 100644 --- a/src/components/Projekte/Karte/layers/BeobNichtZuzuordnen/Marker.jsx +++ b/src/components/Projekte/Karte/layers/BeobNichtZuzuordnen/Marker.jsx @@ -38,7 +38,6 @@ const BeobNichtZuzuordnenMarker = ({ beob }) => { const icon = window.L.divIcon({ html: isHighlighted ? beobIconHighlightedString : beobIconString, className: isHighlighted ? 'beobIconHighlighted' : 'beobIcon', - bgPos: [-12, -12], }) // some dates are not valid // need to account for that diff --git a/src/components/Projekte/Karte/layers/BeobZugeordnet/Marker.jsx b/src/components/Projekte/Karte/layers/BeobZugeordnet/Marker.jsx index d63361bdf..2e54727ea 100644 --- a/src/components/Projekte/Karte/layers/BeobZugeordnet/Marker.jsx +++ b/src/components/Projekte/Karte/layers/BeobZugeordnet/Marker.jsx @@ -46,7 +46,6 @@ const BeobZugeordnetMarker = ({ beob }) => { const icon = window.L.divIcon({ html: isHighlighted ? beobHighlightedIconString : beobIconString, className: isHighlighted ? 'beobIconHighlighted' : 'beobIcon', - bgPos: [-12, -12], }) // some dates are not valid // need to account for that diff --git a/src/components/Projekte/Karte/layers/Pop/Marker.jsx b/src/components/Projekte/Karte/layers/Pop/Marker.jsx index fc7edbffe..95f86049e 100644 --- a/src/components/Projekte/Karte/layers/Pop/Marker.jsx +++ b/src/components/Projekte/Karte/layers/Pop/Marker.jsx @@ -138,10 +138,7 @@ const PopMarker = ({ pop }) => { }, [apId, pop.id, projId]) const latLng = new window.L.LatLng(pop.wgs84Lat, pop.wgs84Long) - const icon = window.L.divIcon({ - html: iconHtml, - // bgPos: [-12, -12], - }) + const icon = window.L.divIcon({ html: iconHtml }) const zIndexOffset = -apfloraLayers.findIndex( (apfloraLayer) => apfloraLayer.value === 'pop', ) diff --git a/src/components/Projekte/Karte/layers/Tpop/Marker.jsx b/src/components/Projekte/Karte/layers/Tpop/Marker.jsx index dbb3808b7..ccae94563 100644 --- a/src/components/Projekte/Karte/layers/Tpop/Marker.jsx +++ b/src/components/Projekte/Karte/layers/Tpop/Marker.jsx @@ -140,10 +140,7 @@ const TpopMarker = ({ tpop }) => { }, [apId, popId, projId, tpop.id]) const latLng = new window.L.LatLng(tpop.wgs84Lat, tpop.wgs84Long) - const icon = window.L.divIcon({ - html: iconHtml, - bgPos: [-12, -12], - }) + const icon = window.L.divIcon({ html: iconHtml }) let title = nrLabel if (tpopLabelName === 'name') title = tpop.flurname if (tpopLabelName === 'none') title = ''