venits / react-native-map-clustering

React Native map clustering both for Android and iOS.
696 stars 220 forks source link

Markers disappear when zooming in on a cluster #200

Open RominHalltari opened 3 years ago

RominHalltari commented 3 years ago

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 commented 3 years ago

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

bobdepreziz commented 3 years ago

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 commented 3 years ago

I have found a similar issue on stack overflow:

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

dy2-X commented 3 years ago

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

venits commented 3 years ago

Hi, @dy2-X

can you try again with version 3.4.2?

haris523 commented 3 years ago

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.

fipa98 commented 3 years ago

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.

DavidAPears commented 3 years ago

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

AlixH commented 2 years ago

Up

mawlicious commented 1 year ago

alo

KHadham commented 4 months ago

up