Skip to content

Commit

Permalink
remove not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed May 6, 2024
1 parent 782015d commit 78f5edf
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions src/components/Projekte/Karte/layers/Pop/Marker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
Expand Down
5 changes: 1 addition & 4 deletions src/components/Projekte/Karte/layers/Tpop/Marker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 78f5edf

Please sign in to comment.