为 Android 10 自定义 Google 地图控件
Customising Google Maps control for Android 10
如何从 Android Google 地图中删除 方向和地图 图标。当我们点击地图中的图钉时,将显示此图标。我试图以编程方式在 Android 地图控件中隐藏此选项。谁能帮我找到解决办法。?
mMap.getUiSettings().setMapToolbarEnabled(false);
Sets the preference for whether the Map Toolbar should be enabled or
disabled. If enabled, and the Map Toolbar can be shown in the current
context, users will see a bar with various context-dependent actions,
including 'open this map in the Google Maps app' and 'find directions
to the highlighted marker in the Google Maps app'.
By default, the Map Toolbar is enabled.
如何从 Android Google 地图中删除 方向和地图 图标。当我们点击地图中的图钉时,将显示此图标。我试图以编程方式在 Android 地图控件中隐藏此选项。谁能帮我找到解决办法。?
mMap.getUiSettings().setMapToolbarEnabled(false);
Sets the preference for whether the Map Toolbar should be enabled or disabled. If enabled, and the Map Toolbar can be shown in the current context, users will see a bar with various context-dependent actions, including 'open this map in the Google Maps app' and 'find directions to the highlighted marker in the Google Maps app'.
By default, the Map Toolbar is enabled.