Code example for Marker

Methods: remove

0
        setProgressBarIndeterminateVisibility(true); 
    } 
 
    private void moveMarkerTo(LatLng position) {
        if (mMarker != null) {
            mMarker.remove();
        } 
        mMarker = mMap.addMarker(new MarkerOptions().position(position));
        mMarker.setPosition(position);
    } 
 
    private void startGeocodingService() { 
        ReverseGeocodingService.IntentBuilder intentBuilder = new ReverseGeocodingService.IntentBuilder();
        intentBuilder.setLatLng(mLastQueryLat, mLastQueryLng);
        Intent intent = intentBuilder.build(this);
        startService(intent);
    } 
 
    @Override 
    protected void onResume() { 
        super.onResume();