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.
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)));
You will have to stop using GoogleMap.setMyLocationEnabled
and write a bit more code, including receiving location updates
on your own and adding Circle
for accuracy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With