Android Google Maps Marker禁用导航选项 [英] Android google maps marker disable navigation option
本文介绍了Android Google Maps Marker禁用导航选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个应用,其中用户需要步行到地图上的某个点.但是他们需要自己找到一条路线. 香港专业教育学院创建了带有标记的地图,但默认情况下,如果用户单击标记,则会显示开始导航"和在Google地图中查看"选项.是否可以禁用这些选项?
Im creating an app where users need to walk to a point on a map. But they need to find a route to the point by them selves. Ive created a map with markers but by default if a user clicks on the marker a "start navigation" and "view in google maps" option is shown. Is it possible to disable these options ?
标记点击显示的选项
推荐答案
这个东西叫做 UiSettings禁用它. setMapToolbarEnabled(false):
This thing is called Map Toolbar. You can disable it by calling UiSettings.setMapToolbarEnabled(false):
GoogleMap map;
....... //init map
map.getUiSettings().setMapToolbarEnabled(false);
这篇关于Android Google Maps Marker禁用导航选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文