is it possible to remove the default points of interest from Android google map

I am developing an android application that would show Points of interest google map, i have my own sources so I am trying to remove the default points of interest(like malls,bus stops,...) that the google map show. i have searched the documentation for a solution and was unsuccessful is there a way to do it on android?

check out the blue bus stops that google provide

Answers


You can hide them now!

New google maps update supports it: https://developers.google.com/maps/documentation/android-api/hiding-features

Here's how you can implement it:

@Override
public void onMapReady(GoogleMap googleMap) {
    mMap = googleMap;

    try {
        boolean success = mMap.setMapStyle(MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.map_style));
        if (!success) {
            Log.e("MapsActivityRaw", "Style parsing failed.");
        }
    } catch (Resources.NotFoundException e) {
        Log.e("MapsActivityRaw", "Can't find style.", e);
    }
}

In raw directory you have to create a json file with map style you want to use.

You don't have to write this yourself, you can use editor, which google created:

https://mapstyle.withgoogle.com

I don't know which version introduced this feature, but it works at least for 9.6.1.


It is not possible to disable them as of Google Maps Android API v2 version 4.3, but this has already been requested on gmaps-api-issues (#4841).


Need Your Help

Exporting from SQL Server to Excel with column headers?

sql-server excel sql-server-2005 export

I have a query that has approximately 20 columns and I would like to export this to an Excel file with the column headers.

How can I attach an Entity Framework object that isn't from the database?

c# entity-framework .net-3.5 linq-to-entities

I have a complete separation of my Entity Framework objects and my POCO objects, I just translate them back and forth...