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

Add guard around zero width or height #34

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

Bengreen
Copy link

in my usage of this via leaflet.heat I have a lifecycle where the canvas can be 0 width or 0 height which is causing getImageData to throw an error.
I placed a guard around the relevant section so this case is covered.
If you can accept this request I will contact the leaflet.heat upstream and ask for them to propagate the update to their release.

@Bengreen
Copy link
Author

Bengreen commented Feb 6, 2018

Any feedback if this can be included ?

@Dumbaz
Copy link

Dumbaz commented Jun 18, 2020

This has been open for a long time, was it just an oversight?

@corrigancd
Copy link

Hello, great plugin. Wondering if this is something that can be merged?

corrigancd added a commit to sirensolutions/Leaflet.heat that referenced this pull request Nov 30, 2020
corrigancd added a commit to sirensolutions/Leaflet.heat that referenced this pull request Nov 30, 2020
@victorperezpiqueras
Copy link

Same issue here, is it going to be merged anytime soon?

victorperezpiqueras added a commit to victorperezpiqueras/simpleheat that referenced this pull request May 10, 2023
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

Successfully merging this pull request may close these issues.

5 participants