Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove google places icons

How can i remove google places marks? As shown below, that are markers that i didn't placed on the map (marked in blue). BTW, it is possible to use google place's markers instead of my own custom marker (marked in red).

Thank you in advance

like image 435
Gabriel Brito Avatar asked Dec 28 '16 03:12

Gabriel Brito


1 Answers

How can i remove google places marks?

If you have added your custom marker, yes you can delete it. But if you are asking about google map default tiles(bus,restaurent etc), no you can't delete those. reference

Update after September 2016

yes now you can remove those icons, see this issue.

please check https://developers.google.com/maps/documentation/android-api/releases#september_21_2016

you need to set map style off GoogleMap

googleMap.setMapStyle(
                MapStyleOptions.loadRawResourceStyle(
                        this, R.raw.style_json));

your style_json will look like this

[
    {
        "featureType": "poi.business",
        "elementType": "all",
        "stylers": [
        {
            "visibility": "off"
        }
        ]
    }
]

Here is the full demo which explains everything

like image 107
Ravi Avatar answered Sep 27 '22 22:09

Ravi