I am trying to replace blue dot (which shown current location on maps) with my own icon on Google maps v2. I have tried below, none worked.
- Android Maps API v2 Change MyLocation Icon
- Maps V2 myLocation blue dot callback
- Disable center button in MyLocation at Google Map API V2
Should look like this
Below did not work
Bitmap b = BitmapFactory.decodeResource(getResources(),
R.drawable.location_arrow1);
googleMap.addMarker(new MarkerOptions().position(myPosition)
.title(getIntent().getStringExtra("first_name"))
.icon(BitmapDescriptorFactory.fromBitmap(b)));
I think you pass your current location to LocationSource to be able to use the my-location button.
You have to do that on your own. - set to false
gmaps.getUiSettings().setMyLocationButtonEnabled(false);
You will have to stop using
GoogleMap.setMyLocationEnabled
and write a bit more code, includingreceiving location updates
on your own and addingCircle
for accuracy.