【问题标题】:Google Map new map renderer problem (play-services-maps:18.0.0)Google Map 新地图渲染器问题(play-services-maps:18.0.0)
【发布时间】:2021-12-13 10:00:58
【问题描述】:

我更新为“com.google.android.gms:play-services-maps:18.0.0”,现在自定义标记图像的行为很奇怪。

在下面的图片中,蓝色的东西和标签是两个带有自定义图标的独立标记。

如果没有太多标记(或 Renderer.LEGACY),则一切正常。像这样:

但是如果标记和 Renderer.LATEST 太多,那么标记会变成这样:

我从“com.google.android.gms:play-services-maps:17.0.0”更新为“com.google.android.gms:play-services-maps:18.0.0”

编辑:我更新到 18.0.2,现在底部的标记完全消失了

【问题讨论】:

  • 据我了解,目前,即使应用程序更新为使用谷歌地图的18.0.0,默认情况下仍然使用旧的渲染器。我们可以强制使用新的渲染器来确保它工作正常。希望地图团队的成员能发现您的问题并提供反馈。

标签: android google-maps-android-api-2


【解决方案1】:

我也更新到 com.google.android.gms:play-services-maps:18.0.0。 还将以下代码添加到我的地图活动中

MapsInitializer.initialize(getApplicationContext(), MapsInitializer.Renderer.LATEST, this);
setContentView(R.layout.activity_add_from_map);

但在 logcat 中,我收到以下消息 enter image description here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-19
    • 2020-08-18
    • 1970-01-01
    相关资源
    最近更新 更多