Override public void onLocationChanged(Location location) { //show our own marker mLastLocation = location; if (mCurrLocationMarker != null) { mCurrLocationMarker.remove(); } //Place current location marker LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); MarkerOptions markerOptions = new MarkerOptions(); markerOptions.position(latLng); markerOptions.title("Current Position"); markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA)); mMap.clear(); mMap.addMarker(markerOptions);
mMap.clear();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)