JiriHoffmann / react-native-clusterer

React Native clustering library using C++ Supercluster implementation
MIT License
159 stars 20 forks source link

MaxZoom not working as expected #16

Closed lukeinage closed 8 months ago

lukeinage commented 2 years ago

First off, excellent library @JiriHoffmann ! However I have found that that the maxZoom option does not work the same as the regular supercluster library. This could be my use of the extent tile size prop which I could be entering incorrectly. I've tried 256, 512 and 1024. This is both iOS + Android.

minZoom: 1, maxZoom: 18, extent: 1024, radius: 120

This configuration will show all markers without clustering but once zoom level 21 is reached not 18.

Extents of 256 and 512 always seem to show the clusters no matter the entered maxZoom

Expected Once the zoom level surpasses the number all markers should be shown within the viewport without clustering

RamonAmaro commented 1 year ago

Is it possible to get a change in the source code with package update to make maxZoom work?

JiriHoffmann commented 8 months ago

Sorry for the delay, finally got around to it and found the bug.