flutter google_maps 无法进一步缩小

发布于 2025-01-13 20:13:26 字数 1053 浏览 5 评论 0原文

如下图所示,我一直在到处搜索这个问题,但仍然找不到任何解决方案。

关于我的代码,我使用 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.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文