Search code examples
androidandroid-maps-v2android-mapsandroid-maps-utils

Marker current location android google map?


How I can use from bellow marker for my map ?

I don't need to use mMap.setMyLocationEnabled(true);.I just need to this icon.

enter image description here


Solution

  • Try this :

    GoogleMapOptions options = new GoogleMapOptions();
    options.mapType(GoogleMap.MAP_TYPE_SATELLITE)
        .compassEnabled(true)
        .rotateGesturesEnabled(false)
        .tiltGesturesEnabled(false);
    

    for details check this link.

    https://developers.google.com/android/reference/com/google/android/gms/maps/UiSettings or https://developers.google.com/maps/documentation/android-api/controls

    I use from this link and good work :

    alazsbalazs