Mapsui
Mapsui copied to clipboard
Blazor map control crashes when AOT compiled
Mapsui Version 5 beta 1, 5 beta 2
Mapsui Platform Blazor
Device Windows 10, Microsoft Edge browser.
Describe the bug When publishing a blazor project with AOT disabled, mapsui map control works correctly. Publishing same project with AOT enabled, map control fails to render and throws an unhandled exception.
To Reproduce Steps to reproduce the behavior:
- Create a new blazor project using standard web app template, with wasm render mode configured.
- Add mapsui map control component to any wasm page, just attempting to render the basic component is all that is needed.
- Enable AOT option in project
- Publish and run app.
Expected behavior Map control renders on page.
Screenshots
Additional context Map control fails to render and I get the above exception in the browser developer console. Call stack is not particularly helpful, only thing that seems applicable are some references to skia canvas rendering, but don't really understand what I'm looking at.