flutter google_maps 无法进一步缩小
如下图所示,我一直在到处搜索这个问题,但仍然找不到任何解决方案。
关于我的代码,我使用 google_maps_flutter 中的默认示例,但它仍然不允许我进一步缩小默认纬度/经度。
(这与我的互联网连接无关,它保持不变)
GoogleMap(
initialCameraPosition: _kGooglePlex,
// circles: _circles,
markers: {
Marker(
markerId: MarkerId("123"),
icon: BitmapDescriptor.defaultMarker,
infoWindow: InfoWindow(title: "Carin"),
position: LatLng(-6.915601, 107.591446),
)
},
onMapCreated: (GoogleMapController controller) {
_controller = controller;
//_controller!.setMapStyle(MapStyle().dark);
},
)
我一直在尝试清理、清理缓存、重新启动模拟器,但问题仍然存在。主要问题是,地图容器在真实设备上显示空白/黑屏。
当我打开包含谷歌地图的页面时,每次我与地图交互(例如移动或放大/缩小)时,控制台都会给我超过 FrameTime 中的样本计数。
我真的很感激你的任何试图提供帮助的评论,因为如果我不觉得自己完全被困在任何地方,我通常不会问问题,非常感谢你。
As the picture below, I've been searching everywhere about this issue but still cant find any solution.
About my code, i use the very default sample from google_maps_flutter, but it still doesnt let me zoom out any further from my default latitude/longitude.
(It is not about my internet connection, it remains the same)
GoogleMap(
initialCameraPosition: _kGooglePlex,
// circles: _circles,
markers: {
Marker(
markerId: MarkerId("123"),
icon: BitmapDescriptor.defaultMarker,
infoWindow: InfoWindow(title: "Carin"),
position: LatLng(-6.915601, 107.591446),
)
},
onMapCreated: (GoogleMapController controller) {
_controller = controller;
//_controller!.setMapStyle(MapStyle().dark);
},
)
I've been trying to clean, clean cache, restart the emulator, but the problem still there. And the main problem is, the map container shows blank/black screen on real device.
When i opened the page which contains google maps, the console gives me exceeded sample count in FrameTime everytime i interact with the map, such as move or zoom in/out.
I really appreciate of any of your comments that trying to help, cuz i dont usually ask question if im not feeling totally stucked from everywhere, thank you so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论