Frontmatter
| id | 461 |
| title | Neo.main.lib.OpenStreetMaps: center() => optional animation |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Apr 12, 2020, 2:42 PM |
| updatedAt | Apr 12, 2020, 3:01 PM |
| githubUrl | https://github.com/neomjs/neo/issues/461 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 12, 2020, 3:01 PM |
Neo.main.lib.OpenStreetMaps: center() => optional animation
tobiu assigned to @tobiu on Apr 12, 2020, 2:42 PM

tobiu
Apr 12, 2020, 3:01 PM
got a bit more complex.
Neo.component.wrapper.OpenStreetMap now has a private method centerMap.
Changing the center config OR calling flyTo will trigger this method and call center() inside the main thread (passing an animate param)
tobiu closed this issue on Apr 12, 2020, 3:01 PM
https://docs.mapbox.com/mapbox-gl-js/example/center-on-symbol/