How to change google map default Current Location Marker color

Viewed 5105

I want to change the default current location marker color from blue to other. Any body help me out how to do that.

Below is the icon color which I want to change:

image is here

1 Answers

EDIT:
YOU CAN'T CHANGE THE DEFAULT ONE, YOU HAVE TO MAKE YOU OWN AND HIDE THE DEFAULT

You can use your own markers by adding them to the map.

MarkerOptions markerOptions = new MarkerOptions();
markerOptions.position(currentLocationMarker.getPosition());
markerOptions.title(getString(R.string.start));
markerOptions.icon(BitmapDescriptorFactory.fromBitmap(mapPin));
originMarker = map.addMarker(markerOptions);

Additionally you can change the theme of the map using map style JSON files.

googleMap.setMapStyle(MapStyleOptions.loadRawResourceStyle(getActivity(), R.raw.map_night_style));

You can easily create you own style with google at the following link:
Style with google.

And here is the full documentation on customizing your map:
Documentation

Related