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

查看:88
本文介绍了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?

推荐答案

您要说的是Google地方标记,如果是,那么我们不能. 删除添加的标记 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天全站免登陆