谷歌地图API:如何禁用商业地点? [英] google maps api: how to disable commercial locations?

查看:135
本文介绍了谷歌地图API:如何禁用商业地点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用API​​v3创建了一个自定义地图,并且定位了我的标记(酒店和餐厅地址)。

但是在地图中也有默认情况下,一些酒店,餐馆和任何类型的商业地点的标签。其中一些与我的客户竞争......



有没有办法将它们从地图中删除,在地图的视图中只留下非商业名称?

解决方案

您可以通过styledmaptype禁用这些广告。 $ b


如果您希望Maps API应用程序不包含这些
图标,则可以在下周的发行版之前通过在poi.business的标签元素上设置
visibility:off来删除它们你的地图。

请参阅: http://googlegeodevelopers.blogspot.com/2011/08/business-icons-and-styling-across.html



但请记住,当您为poi.business指定visibility:off时,这些标签也会隐藏。否则,您可以禁用这些广告if您使用Google Maps API for Business许可。

I've created a custom map using the APIv3 and I've positioned my markers (hotel and restaurants addresses)

But in the map there are also, by default, some labels of hotels, restaurants, and any kind of commercial location. And some of them are in competition with my customers...

Is there a way to remove them from the map, leaving in the map's view only non-commercial names?

解决方案

You can disable these advertisements by styledmaptype.

If you would prefer that your Maps API application not include these icons, you can remove them ahead of next week’s release by setting visibility:off on the labels element of poi.business for your map.

See : http://googlegeodevelopers.blogspot.com/2011/08/business-icons-and-styling-across.html

But remember, these labels are also hidden when you specify "visibility:off" for poi.business.

Otherwise, you can disable these advertisements if you contract with Google Maps API for Business license.

这篇关于谷歌地图API:如何禁用商业地点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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