React-native-maps: Clustering map

Created on 6 May 2016  ·  55Comments  ·  Source: react-native-maps/react-native-maps

There are clustering support?

enhancement help wanted

Most helpful comment

This feature is a must.

All 55 comments

There's an open PR which adds marker clustering on iOS here: https://github.com/lelandrichardson/react-native-maps/pull/137

This feature is a must.

Any idea when will this be available? 👍

+1, important feature!

+1

+1

+1

+1

+1

We use https://github.com/mapbox/supercluster in combination with https://github.com/mapbox/geo-viewport to cluster 2000 locations. It works like a charm on iOS and Android.

@klaste Could you please make a simple example?

I want to add clustering feature in my app I am using "react-native-maps" but I don’t have “clusterMarkers” prop in my library which I have installed using "npm install react-native-maps --save” how can I use "react-native-maps" library to add clustering feature to my markers ?

+1

+1

If you want this feature, I'd suggest try taking over the PR
https://github.com/airbnb/react-native-maps/pull/137

+1

+1

+1

did you find any solution for clustering in Android : @thiagoterleski @raphaelsaunier

@klaste how can we it in react native ?

@sahir @Clcll I managed to add clusters to android & ios with supercluster and @i-tu 's gist. Here it is : https://gist.github.com/i-tu/05e79737adfe36935ec869125a686f82

It is easy to do if you wrap your mind around it. The major issue is performance, if you need to display hundreds or thousands of markers you're gonna have to optimize the hell out of it, and this is where it gets really hard.

This is a decent solution, but I think we still need a native implementation.

+1 :+1:

If someone come here and want something working right now, i made an example :
https://github.com/warka0/react-native-cluster-example

+1 native feature

+1 for clustering feature

+1 for clustering feature

+1 for clustering. it is a really must-have!

looks like PR about that just came in #1344

@Jazz747 - it looks promising! I hope we can manage to implement both PR for complete clustering solution!

Any news ?

+1 on this

+1

+1

Please!!!

Pretty please!!

+1 please!!

+1

+1

You can try this. It works for me :) https://github.com/venits/react-native-map-clustering
It is the simplest solution right now.

+1

+1

We are working on a supercluster-based version as well, it is performing (and behaving) correctly. It'll be mounted on a production application in late Dec 2017. Try it out: https://github.com/novalabio/react-native-maps-super-cluster

👾 Much love from team Plural.com if this would be added 👏

Seeing many issues in implementing clustering natively. https://github.com/novalabio/react-native-maps-super-cluster is the best alternative actually.

+1 for clustering feature

+1

+1

+1

+1

+1

+1

+1

+1

+1

Going to close and lock the issue because there is a "good enough" solution mentioned in the comments and the discussion only goes "+1" which doesn't bring value.

If anybody has a better solution please open a PR.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

priithaamer picture priithaamer  ·  53Comments

ghost picture ghost  ·  197Comments

henrikra picture henrikra  ·  44Comments

AzarouAmine picture AzarouAmine  ·  52Comments

rangav picture rangav  ·  43Comments