Flutter Google Maps-根据行驶方向旋转标记
任何人都可以共享Flutter google maps插件的文档/代码示例,在这里我可以根据行驶方向旋转标记(例如:汽车图标)。我看到可以通过旋转标记在本地库上实现。但是无法找到在Flutter中旋转标记的任何选择。
Can anyone share a documentation / code sample for Flutter google maps plugin where I can rotate the marker ( ex: a car icon ) according to the driving direction. I saw this can be achieved on native library by rotating the marker. But couldn't fjnd any option to rotate the marker in Flutter.
我想我们在旋转标记时需要考虑以下几点。
I guess we need to consider below points while rotating the marker. Please add your thoughts on this as well.
地图北向。
设备从罗盘旋转。
Map North Direction. Devices rotation from compass.
谢谢
https://pub.dev/packages/location 插件:
Marker(
旋转:currentLocation.heading
)
Marker( rotation: currentLocation.heading )