react-native-map-clustering icon indicating copy to clipboard operation
react-native-map-clustering copied to clipboard

Markers disappear when zooming in on a cluster

Open RominHalltari opened this issue 4 years ago • 11 comments

Markers disappear when zooming in (latest library version). I'm using the Marker component from react-native-maps, with a bicycle icon inside. Please see the screen recording: https://streamable.com/mls23x

RominHalltari avatar Dec 16 '20 12:12 RominHalltari

Same behavior even with just the default Marker component, without the icon, if that helps. This basically makes the library unusable.

RominHalltari avatar Dec 16 '20 12:12 RominHalltari

I am having the same issue, zooming in on a cluster, or having a solo marker somewhere does not show it. It works a bit better with openstreetmaps as provider but not as expected. Is someone aware of this issue? Can it be fixed? If you need more info please let me know.

bobdepreziz avatar Jan 06 '21 15:01 bobdepreziz

I have found a similar issue on stack overflow:

https://stackoverflow.com/questions/53811877/react-native-maps-and-react-native-map-clustering

bobdepreziz avatar Jan 06 '21 15:01 bobdepreziz

I also faced the same problem. Try downgrading to v.3.3.3. I think, it better.

dy2-X avatar Jan 09 '21 14:01 dy2-X

Hi, @dy2-X

can you try again with version 3.4.2?

venits avatar Jan 09 '21 17:01 venits

I upgraded to 3.4.2 I don't think it fixed the issue. I have 4 markers on press it zooms in to show the markers. If I zoom out a bit so numbers 2 and 2 appear. Clicking on any of the 2s makes the camera zoom in on them. The right ones get shown but the left 2 just disappear. If I zoom back out it shows number 2 again on both locations, but by zooming back in at that point even without pressing the number I can see that the markers are not visible.

haris523 avatar Jan 12 '21 13:01 haris523

set Marker tracksViewChanges={true}

Although it's recommended to leave it on false in order to avoid bad performance. You could trigger it whenever you enter a cluster.

fipa98 avatar Jan 29 '21 21:01 fipa98

Any update on this? We may have to switch to a different solution, unfortunately.

DavidAPears avatar Jun 29 '21 09:06 DavidAPears

Up

AlixH avatar Dec 02 '21 10:12 AlixH

alo

mawlicious avatar Dec 12 '22 13:12 mawlicious

up

KHadham avatar May 05 '24 13:05 KHadham