@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.form_mapview);

    mapView = (AdvancedMapView) findViewById(R.id.advancedMapView);

    ImageButton buttonLocation = (ImageButton) findViewById(R.id.ButtonLocation);

    // mapView = new AdvancedMapView(this);

    initMap(savedInstanceState);

    MultiSourceOverlayManager o = new MultiSourceOverlayManager(mapView);
    o.setMarkerOverlay(new MarkerOverlay());
    o.setMarkerVisible();
    mapView.setOverlayManger(o);

    if (getIntent() != null
        && getIntent().getExtras() != null
        && getIntent().getExtras().containsKey(MapsActivity.MSM_MAP)) {
      o.loadMap((MSMMap) getIntent().getExtras().getSerializable(MapsActivity.MSM_MAP));
    }

    mapView.setLayoutParams(
        new LayoutParams(
            RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT));

    mapView.setClickable(true);
    mapView.setBuiltInZoomControls(true);

    // add coordinates control
    mapView.addControl(new CoordinateControl(mapView, true));

    // add "location" control connected to the button
    LocationControl lc = new LocationControl(mapView);
    lc.setActivationButton(buttonLocation);
    mapView.addControl(lc);

    centerMapFileAndAddMarkers();
  }