Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

enter image description here

Is it even possible to remove them?

like image 268
Carlton Avatar asked Dec 23 '16 15:12

Carlton


People also ask

How do I get Google Maps without labels?

Find the “Layers” menu in the bottom left corner of the screen. Hover your cursor over the box and wait until more options appear. Click “More” to open the Map Details menu. Under “Map Type,” you'll see a checked box next to “Labels.” Uncheck it to remove all labels.

Is Google Maps API no longer free?

Note that the Maps Embed API, Maps SDK for Android, and Maps SDK for iOS currently have no usage limits and are at no charge (usage of the API or SDKs is not applied against your $200 monthly credit).

Does Google Static Maps API requires a Maps API key?

You must include an API key with every Maps Static API request.

Is Google static map API free?

The Maps Static API uses a pay-as-you-go pricing model. Requests for the Maps Static API are billed under the SKU for Static Maps. Along with the overall Google Terms of Use, there are usage limits specific to the Maps Static API.


1 Answers

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

like image 169
Lal Avatar answered Oct 02 '22 13:10

Lal