vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.97k stars 293 forks source link

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

Open JorgeCapillo opened 8 months ago

JorgeCapillo commented 8 months ago

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):

vasturiano commented 8 months ago

@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 commented 8 months ago

I'm using 0.9, just like the example https://github.com/vasturiano/globe.gl/blob/master/example/population-heatmap/index.html