Android Google Maps v2 删除默认标记 [英] Android Google Maps v2 remove default markers

查看:39
本文介绍了Android Google Maps v2 删除默认标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 Android 应用中实现了 Android Google Maps v2,没有任何问题.

I implemented Android Google Maps v2 in my Android app without any problem.

但是,地图包含一些我没有包含的默认标记".

However, the map includes some "default markers" that I haven't included.

我的意思是,一些私人营业地点.

I mean, some private business locations.

是否可以从地图上删除这些标记,以便我只获得城市名称和街道名称?

Is it possible to remove these markers from the map so that I only get the city names and the street names?

推荐答案

标记你的意思是说谷歌地点,如果是,那么我们不能.删除添加的标记googleMap.addMarker() 可以删除的方法

Markers you mean to say google places , If yes then we cant. to remove markers that are added by googleMap.addMarker() method that can be remove by

marker.remove()

或通过清除标记

or by clearing marker

googleMap.clear()

这篇关于Android Google Maps v2 删除默认标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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