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

leaflet heatmap - crash when zoom out #348

Open
luojinzhang opened this issue Jun 10, 2022 · 0 comments
Open

leaflet heatmap - crash when zoom out #348

luojinzhang opened this issue Jun 10, 2022 · 0 comments

Comments

@luojinzhang
Copy link

leaflet heatmap crashes when zoom out to level 3 of leaflet map. The error is from this line.
shadowCtx.drawImage(tpl, rectX, rectY);
Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
Current workaround is to set min zoom = 4 only.

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

1 participant