简体   繁体   English

谷歌静态地图API没有标签?

[英]Google static maps API with no labels?

I am using Google static maps to get a image (to display in a ImageView) in Android. 我正在使用Google静态地图来获取Android中的图像(在ImageView中显示)。 Here is how I get the Image: 以下是我获取图片的方法:

https://maps.googleapis.com/maps/api/staticmap?center=New+york,NY&zoom=13&size=300x200&maptype=roadmap%20&markers=color:red%7CNew+york,NY

Which generates this image: 哪个生成此图像:

However, I want to get rid of the "Google" and "Map data @2016 Google" , and also places like "Brookfield Place" and "New York Stock Exchange" . 但是,我想摆脱“谷歌”“地图数据@ 2016谷歌” ,以及像“布鲁克菲尔德广场”“纽约证券交易所”这样的地方

You can remove all labels with style=feature:all|element:labels|visibility:off like this: 您可以使用style=feature:all|element:labels|visibility:off删除所有标签style=feature:all|element:labels|visibility:off如下所示:

https://maps.googleapis.com/maps/api/staticmap?center=New+york,NY&zoom=13&size=300x200&maptype=roadmap%20&markers=color:red%7CNew+york,NY&format=png&style=feature:all|element:labels|visibility:off

But that removes everything except the labels at bottom of the photo. 但是除了照片底部的标签之外,它会删除所有内容。

EDIT: 编辑:

I found out how to get rid of so called "Point of interest(s)" but the two bottom labels are still there. 我发现了如何摆脱所谓的“兴趣点”,但两个底部标签仍然存在。

https://maps.googleapis.com/maps/api/staticmap?center=New+york,NY&zoom=13&size=300x200&maptype=roadmap%20&markers=color:red%7CNew+york,NY&format=png&style=feature:poi|element:labels|visibility:off

在此输入图像描述

Is it even possible to remove them? 甚至可以删除它们吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM