Frontmatter
| id | 471 |
| title | Covid.view.OpenStreetMapsComponent: sometimes does not initially show data |
| state | Closed |
| labels | bug |
| assignees | [] |
| createdAt | Apr 13, 2020, 6:24 PM |
| updatedAt | Apr 14, 2020, 8:19 PM |
| githubUrl | https://github.com/neomjs/neo/issues/471 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 14, 2020, 8:19 PM |
Covid.view.OpenStreetMapsComponent: sometimes does not initially show data
tobiu referenced in commit
baf24e9 - "https://github.com/neomjs/neo/issues/471" on Apr 14, 2020, 8:17 PM

tobiu
Apr 14, 2020, 8:19 PM
yikes, this one was tricky.
the counterpart to map.on => map.off did NOT remove the listener.
when adding map.on('load'), and checking for map.loaded() inside the handler, it can be false in case we add layers / sources.
tobiu closed this issue on Apr 14, 2020, 8:19 PM
unless you hit the reload data button.