Android Google Maps v2 remove default markers
Solution 1:
You can do it simply by modification of the map style: Adding a Styled Map
- Create JSON file src\main\res\raw\map_style.json like this:
[
{
featureType: "poi",
elementType: "labels",
stylers: [
{
visibility: "off"
}
]
}
]
- Add map style to your
GoogleMap
googleMap.setMapStyle(MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.map_style));
Solution 2:
Markers you mean to say google places , If yes then we cant.
to remove markers that are added by
googleMap.addMarker()
method that can be remove by
marker.remove()
or by clearing marker
googleMap.clear()