Arthur Leonard Andersen

Results 34 comments of Arthur Leonard Andersen

I am having the same problem. Were you able to fix the issue by playing with the icon anchoring or did you find another solution?

![Peek 2022-03-17 16-59](https://user-images.githubusercontent.com/184696/158841687-cf8003f1-7099-46d3-a39f-ed0e8126714f.gif) Thank you for the swift reply! The marker should stay in the map center. Maybe you could give a hint about how I can pass marker anchors...

Maybe it's this line: https://github.com/ishaan6395/react-leaflet-enhanced-marker/blob/57236aab2fe296dbe2ed9b2a0009c4c6778c34f1/src/components/Marker/Utilities/IconUtils.js#L6 The width of the leaflet div seems to be fixed. Also the `divIcon` should get some `popupAnchor` and `iconAnchor` properties or do you set them...

I fixed the problem by replacing the enhanced marker with this component: Marker.jsx: ```js import { Marker } from "react-leaflet"; import L from "leaflet"; import React from "react"; import ReactDOMServer...