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

Why does it take so long to set the heatmapsData? #183

Open
JorgeCapillo opened this issue Nov 3, 2023 · 2 comments
Open

Why does it take so long to set the heatmapsData? #183

JorgeCapillo opened this issue Nov 3, 2023 · 2 comments

Comments

@JorgeCapillo
Copy link

Describe the bug
I'm using a simple dataset, only 1 point per dataset, and it takes about 20 seconds to load, test in /example/population-heatmap/

To Reproduce
const dataSets = [[{lat: 41.3911056, lng: 2.1548483, pop: 0.5, dataSet: 0}], [{lat: 4.5652144, lng: -85.0193353, pop: 0.1, dataSet: 1}]];

Expected behavior
Short loading time (I only have 2 points)

Screenshots
image

Desktop (please complete the following information):

  • OS: OSX
  • Browser: Chrome
@vasturiano
Copy link
Owner

@JorgeCapillo what is the value of your heatmapBandwidth? The smaller this value the more complex are the heatmap layer objects, and the longer it will take to render. This is independent of the number of points that you have in your input data.

@JorgeCapillo
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants