-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix(mapbox): guard against null viewport when canvas has zero dimensions #10076
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
Changes from 8 commits
daaeb0b
56991bf
de1c523
bac3a7d
00621e8
cae9e43
ffba80c
cc0974c
15d2540
c7aafd8
b03d72e
97cecef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,7 +136,11 @@ export default class Map extends Evented { | |
| } | ||
|
|
||
| _render() { | ||
| this.style.render(); | ||
| try { | ||
| this.style.render(); | ||
| } catch (e) { | ||
| this._renderError = e; | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stale
|
||
| this.fire(new Event('render')); | ||
| } | ||
|
|
||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.