react-native-leaflet icon indicating copy to clipboard operation
react-native-leaflet copied to clipboard

How to disable cluster.

Open kuzarandom opened this issue 2 years ago • 4 comments

pls. someone can help me disable the cluster on map

kuzarandom avatar Apr 19 '23 06:04 kuzarandom

I don't think this is supported right now - in the original (unmaintained) repo from which the html in this fork generated the useMarkerClustering is by default set to true, but this prop is not forwarded anywhere.

Right now in my company we are drastically simplifying this library and throwing things like the marker clustering out, because we don't need it and it caused us issues anyways... @orangecms or I can ping you once we have it in a working shape and published it if you want.

miallo avatar Apr 20 '23 06:04 miallo

oh really? Im currently working on a project that needs a leaflet map with clustering. Will I able to use the clustering when its thrown out?

johnsan96 avatar Apr 28 '23 15:04 johnsan96

@johnsan96 So far the idea was not to change this project, but to create another one that is drastically stripped down (also concerning features) to make the maintenance easier. So if this library works fine for you, there is absolutely no reason to change it and you can continue using it ;)

miallo avatar Apr 28 '23 16:04 miallo

If your looking for a quick "hacky" fix, what I done was modified android/src/main/assets/leaflet.html by replacing maxClusterRadius:80 with maxClusterRadius:-1

caydey avatar Mar 03 '24 13:03 caydey