Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server-side map clustering #565

Closed
1 task
jmensch1 opened this issue Apr 26, 2020 · 0 comments · Fixed by #575
Closed
1 task

server-side map clustering #565

jmensch1 opened this issue Apr 26, 2020 · 0 comments · Fixed by #575
Assignees
Labels
v1 The first version of the site

Comments

@jmensch1
Copy link
Contributor

jmensch1 commented Apr 26, 2020

Description

Map clustering is one of our biggest performance issues right now, because (a) we need to transfer all of the pin data to the client in order to create the clusters, and (b) once the data is on the client, it takes a long time for the browser to create the clusters.

Action Items

  • Attempt to transfer clustering to the server.

Resources

This article contains a demo showing 6 million points clustered with leaflet using the supercluster library.

It also says the clusters can be created server-side using Node. Unfortunately it doesn't explain how to do that, except that you need to use the vt-pbf package to convert the clusters to Mapbox tiles.

The supercluster repo contains a demo that uses a webworker for clustering. Maybe the code in the webworker, which makes the api calls, could be transfered to the server.

Supercluster is written in javascript, but here's a python port of the package that claims to be super-fast.

And here's a demo for using supercluster without a webworker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1 The first version of the site
Projects
Development

Successfully merging a pull request may close this issue.

2 participants