Change icon mylocation

1

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

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

  

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

Thank you.

    
asked by anonymous 19.11.2015 / 14:17

1 answer

3

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

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

Preferably use FusedLocationProvider to know the location of the user.

    
19.11.2015 / 14:28