nswamy14 / visual-heatmap

Heatmap : Open source javascript module for high performance, large scale heatmap rendering.
BSD 3-Clause "New" or "Revised" License
55 stars 10 forks source link

Heatmap disappears when translate in XY directions #20

Closed bartbutenaers closed 8 months ago

bartbutenaers commented 8 months ago

Hi @nswamy14,

When I translate the heatmap (in X/Y directions), the heatmap disappears. I.e. the whole dive beomes white again.

It looks to me that the values arrive correctly:

image

Do you have any idea what could cause this?

Thanks! Bart

nswamy14 commented 8 months ago

Hi @bartbutenaers,

Is it possible to share an env instance to reproduce the issue? It will help in debugging. Or share the snapshot of values configured for params: - height, width, devicePixel ratio, size, intensity, zoom, angle, opacity, max, min.

Thanks, Nswamy

bartbutenaers commented 8 months ago

Hi @nswamy14,

Did some further debugging myself, and at the end it appeared that the issue was in my own code: Seems I had forgotten to add a break in the "setTranslate" switch-case:

image

So immediately afterwards, the heatmap was zoomed (away). Sorry for the noise!!!

Bart