コード例 #1
0
  protected void initMap(int mapViewId, Bundle state) {
    mMapView = (MapView) findViewById(mapViewId);
    MapView map = mMapView;
    map.setFocusableInTouchMode(true);
    map.setClickable(true);
    map.setBuiltInZoomControls(true);

    map.getOverlays().clear();
    map.getOverlays().add(new MyLocationOverlay(this, map));

    if (state != null) {
      onRestoreInstanceState(state);
    }
  }