How to remove the default Google Maps small marker when building a navigation app

I am using the below code to draw a marker on google maps in android navigation app.

Marker marker = mMap.addMarker(
  new MarkerOptions().position(current)
                     .anchor(0.5f, 0.3f)
                     .icon(BitmapDescriptorFactory.fromResource(
                             R.drawable.navigation_marker)));

      

This marker is displayed successfully, but the default small size is not removed. So in the end I have two markers at the same time. Could you please help on how to remove the default marker?

0


source to share


1 answer


Assuming you mean "blue dot" or "my location", you will have to completely remove it with GoogleMap.setMyLocationEnabled

and use your own LocationClient

to update the user's current position.



0


source







All Articles