Android版谷歌地图版本-2显示方向和谷歌地图的图标 [英] Android Google map version-2 show direction and Google map icon

查看:360
本文介绍了Android版谷歌地图版本-2显示方向和谷歌地图的图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid应用我的地图画面显示在地图上的方向和谷歌地图时,点击标记。我用我的应用程序如下。

In my Android application my map screen shows direction and Google map when click marker on the map. I use the following in my application.

XML:

<fragment
    android:id="@+id/map"
    android:name="com.google.android.gms.maps.MapFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

在code:

GoogleMap googleMap = ((MapFragment) getFragmentManager().findFragmentById(
        R.id.map)).getMap();

我已经打上标记为蓝色的方向和谷歌地图的图标。请参阅我的地图画面的形象。

I have marked the direction and Google map icon marked in blue color. please see the image of my map screen.

如何隐藏地图片段方向和谷歌地图的图标?

How to hide direction and Google map icon from map fragment?

推荐答案

TL; DR版本:

尝试重写<一个href=\"https://developer.android.com/reference/com/google/android/gms/maps/GoogleMap.OnMarkerClickListener.html\"相对=nofollow> OnMarkerClickListener 并返回真正

结果加长版:

当您返回真正的GoogleMap

我,开发商,处理上标记的点击。你的GoogleMap的,没有做任何事情。

I, the developer, handled a click on the Marker. You, the GoogleMap, don't have to do anything.

因此​​,作为一个结果的GoogleMap 不执行其默认操作在这种情况下应该是:显示这些按钮(你不想)

So as a result GoogleMap does not perform its default action which in this case would be: show those buttons (which you don't want).

这篇关于Android版谷歌地图版本-2显示方向和谷歌地图的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆