We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
calling getPosition(marker._icon) when marker._icon is null/undefined causes TypeError Cannot read property '_leaflet_pos' of undefined
The text was updated successfully, but these errors were encountered:
The problem is the function
function getPosition(el) { return el._leaflet_pos || new Point(0, 0); }
which unconditionally dereferences el, while the safe version would look like
el
function getPosition(el) { return el?._leaflet_pos || new Point(0, 0); }
This is fixed in commit 421654e12a2d - fix Cannot read property '_leaflet_pos' of undefined in spexigeo's fork.
Sorry, something went wrong.
No branches or pull requests
calling getPosition(marker._icon) when marker._icon is null/undefined causes TypeError Cannot read property '_leaflet_pos' of undefined
The text was updated successfully, but these errors were encountered: