title: Turn off auto-recenter feature in MyLocationOverlay component
body: <p>I have a problem with GoogleMap API for Android component MyLocationOverlay. I want to <strong>turn off MyLocationOverlay auto-recenter feature</strong> (to current user location) every time device location changes (and user location goes out of the visible part or the map).</p>
  
  <p>It seems there is no flag to turn off the undesired maps auto-center feature when user location goes out of the screen </p>
  
  <p>e.g.</p>
  
  <pre><code>public class LocationTest extends MapActivity{
  
    private MapView map;
    private MapController controller;
  
    public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      map = (MapView) findViewById(R.id.map);
      final MyLocationOverlayUpdate overlay = new MyLocationOverlayUpdate(this, map);
      overlay.enableMyLocation();
      map.getOverlays().add(overlay);
    }
  
    @Override
    protected boolean isRouteDisplayed() {
      return false;
    }
  }
  
  public class MyLocationOverlayUpdate extends MyLocationOverlay {
  
    public MyLocationOverlayUpdate(Context context, MapView mapView) {
      super(context, mapView);
    }
  
    public void drawMyLocation(Canvas canvas, MapView mapView, 
                Location location, GeoPoint geoPoint, long when) {}
  }
  </code></pre>
  
  <p>I looked through the net for this problem but didn't found the solution provided.</p>
  
  <p><em>Additional info found:</em></p>
  
  <ul>
  <li><p>I guess that documentation is faulty, buggy, or just outdated saying:</p>
  
  <p>Optionally, the constructor can also take a MapController and use it to keep 
  the "my location" dot visible by panning the map when it would go offscreen</p></li>
  </ul>
  
  <p>because there is no constructor accepting MapController as an argument, and it seems that I have no choice over <code>keeping the "my location" dot visible</code> or not.</p>
  
  <ul>
  <li>I accidentaly <strong>found a workaround</strong> by overriding method drawMyLocation() with no call to super.drawMyLocation() solves the problem of recentering the map (undesired "feature" turns off). However i have to reimplement drawMyLocation() method, therefore changing default appearence (and spending time...)</li>
  </ul>
  
  <p><em>Maybe there is a more clear solution?</em></p>