Google static maps API with no labels?
Asked Answered
G

1

7

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

enter image description here

Is it even possible to remove them?

Gynandromorph answered 23/12, 2016 at 15:19 Comment(8)
Try feature:poi|element:labels|visibility:off..check maps.googleapis.com/maps/api/…Belfry
@Belfry Thanks, I just found out about that on their website and tried, but Is it possible to remove "Google" and "Maos data (at)2016 Google" ?Gynandromorph
No way..check this questionBelfry
Removing those marks violates the Google Maps API Terms of Service (Section 8.4.b.viii) developers.google.com/maps/termsOutclass
@Belfry Oh ok I see, thanks. You can "answer" with your comment if you would want me to thumbs up&accept your answer since it was the exact thing I was looking forGynandromorph
No, Google protect its ownMarris
@Outclass Oh ok thanks!Gynandromorph
@Marris Yeah Ill have to let it stay then! ThanksGynandromorph
B
13

Try

feature:poi|element:labels|visibility:off

Check 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:poi|element:labels|visibility:off

enter image description here

Belfry answered 23/12, 2016 at 15:34 Comment(2)
Thankyou..@CarltonBelfry
hi you did a great effort but i wants to do draw marker for the current place and get its static image view, kindly help meBackstroke

© 2022 - 2024 — McMap. All rights reserved.