Commit 8741b25
Avoid crashing with some zoom events
In certains ocasions we see a crash in the app while changing zoom.
The error is:
Cannot read properties of undefined (reading '_zoom')
The problem comes from that while, iterating through the visibleLayer
parents until it hits one undefined and then crashed trying to read
'_zoom'.1 parent 053999d commit 8741b25
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
730 | 734 | | |
731 | 735 | | |
732 | 736 | | |
733 | | - | |
| 737 | + | |
734 | 738 | | |
735 | 739 | | |
736 | 740 | | |
| |||
0 commit comments