Marker location changes on zoom out
I have the same problem with many others that marker changes its place when its zoomed out. I know that its in documentation and already had plenty of research in issues that suggests following way around on outer div : transform:(translate -50%,-50%); position: absolute;
While I find it almost impossible to understand what this css styles helps for current problem, it produces another problem that marker position dramatically changes when drag and drop made inside of the map. Any real solution on how to set marker to one point and let it stay there?
I have figured out the problem on my own. Therefore wanted to share it here so that others don't waste too much time to figure out the problem. In my situation the problem was that I was using svg as a react component so doing <IconMaps style={{transform: (translate -50%,-100%)}} /> didn't work. If you give this styles to svg itself than the problem is solved. Hope it helps others.