简体   繁体   中英

Google static maps API with no labels?

I am using Google static maps to get a image (to display in a ImageView) in Android. 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" .

You can remove all labels with style=feature:all|element:labels|visibility:off like this:

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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