question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement a solution to retrieve the cluster leaves of a cluster

See original GitHub issue

I think this would benefit a lot of devs trying to handle some action happening when a user clicks on one of the clusters on a map. An example can be to move to a page displaying all the information contained within a cluster. I might be oversimplifying this in my head but the code required mostly already exists in RN code. Since you can click on a cluster and get information from the cluster. The only thing that might need to be ported would be a method that is defined as such in the Android SDK:

features = mMapboxMap.queryRenderedFeatures(pixel, layers); GeoJsonSource source = mMapboxMap.getStyle().getSourceAs(ROUTE_SOURCE_ID);

Then we could use the following methods (using Android in this example) to retrieve all the children.

for (Feature feature : features) { FeatureCollection collection = source.getClusterLeaves(feature, 100,0); }

Again I might be oversimplifying this in my head but as far as I can imagine (with a little native experience) everything except for the last method #getClusterLeaves is already there.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
itzsagacommented, Sep 12, 2019

While this is being worked on, for anyone who needs this functionality now I recently implemented Supercluster to do just this. I documented it to hopefully help others: Supercluster with @react-native-mapbox-gl/maps.

0reactions
stale[bot]commented, Nov 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implement a solution to retrieve the cluster leaves of a cluster
An example can be to move to a page displaying all the information contained within a cluster. I might be oversimplifying this in...
Read more >
How to get the leaves from a cluster using react native mapbox?
The first solution uses the Supercluster npm package and this solution is entirely based on the information found on this page.
Read more >
How to Use Four-Leaf Sigils and Clusterleaves of Cultivation
Create Four-Leaf Sigils with Clusterleaves of Cultivation​​ When Dendro abilities connect with Clusterleaves of Cultivation, these plants create ...
Read more >
Configure and manage the quorum in a failover cluster
You can configure the cluster quorum settings by using Failover Cluster Manager or the FailoverClusters Windows PowerShell cmdlets. Important.
Read more >
Trusted Clusters - Teleport
To re-establish the Trusted Cluster relationship, the Trusted Cluster has to be created again from the leaf cluster.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found