最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to fixed the mapbox navigation puck's position and direction in Navigation View Drop-in - Stack Overflow

programmeradmin2浏览0评论

In Navigation SDK Mapbox v2, I'm having trouble finding the documentation to help me change the puck's position on the screen.

Currently, I use this package for Flutter: /packages/flutter_mapbox_navigation

I am providing a poor user experience when the navigation makes turns, because the puck doesn't stay pointing to the top and not centered at the bottom of the screen.

enter image description here

How to fixed the mapbox navigation puck's position and direction

I have the same problem as the topic above. The creator of the topic solved the issue with maximizeViewableGeometryWhenPitchZero and viewportDataSource.options.followingFrameOptions.bearingSmoothing.

However, when I tried this, I was unsuccessful, and I believe it's because I am using dropin.navigationView, as you can see below:

/

I tried using ViewportDataSource and NavigationCamera in the TurnByTurn.kt class, but without success; it had no effect.

发布评论

评论列表(0)

  1. 暂无评论