Change icon mylocation

Asked

Viewed 53 times

1

I created an xml with an Imageview informing the image I want to put in place of the icon.

I want to put this image in place of the blue ball of the image below.

Is it possible to change the mylocation icon ? If so, what is the process ?

Thank you.

mylocation

1 answer

3


Changing this icon is not possible, however you can disable it and insert a custom Marketer in the same position.

    googleMapObject.addMarker(new MarkerOptions()
            .position(new LatLng(lat, lng))
            .icon(BitmapDescriptorFactory.fromResource(R.drawable.minha_imagem))
    );

Use preferably the FusedLocationProvider to know the user’s location.

  • Your answer would be appreciated if you explained how to use this "custom Marker". The way it looks more like a comment than a response.

  • @ramaral made!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.