@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_select_building);
    svc = new MappingService(PreferenceUtil.getAppPreferences(this, "IP"));
    FloorInit();
    buildingListView = (ListView) findViewById(R.id.activity_select_building_listview);
    adapter =
        new buildingListAdapter(
            this, this, R.layout.adapterview_selectbuilding_floor_list, FloorList);
    buildingListView.setAdapter(adapter);

    addButton = (Button) findViewById(R.id.activity_select_building_button_add_floor);
    addButton.setOnClickListener(l);
  }
  public void init() {
    drawInit();
    svc = new MappingService(PreferenceUtil.getAppPreferences(this, "IP"));

    setZorder();
    //
    ArrayList<BaseMeasurepoint> bmpList = new ArrayList<BaseMeasurepoint>();
    ArrayList<Measurepoint> mpList = new ArrayList<Measurepoint>();
    ArrayList<MeasurepointLink> mpLinkList = new ArrayList<MeasurepointLink>();
    ArrayList<Waypoint> wpList = new ArrayList<Waypoint>();
    ArrayList<WaypointLink> wpLinkList = new ArrayList<WaypointLink>();
    ArrayList<PointOfInterest> poiList = new ArrayList<PointOfInterest>();
    try {
      BaseMeasurepoint[] bmp = svc.getAllBaseMeasurepoints();
      Measurepoint[] mp = svc.getAllMeasurepoints();
      MeasurepointLink[] mpl = svc.getAllMeasurepointLinks();
      Waypoint[] wp = svc.getAllWaypoints();
      WaypointLink[] wpl = svc.getAllWaypointLinks();
      PointOfInterest[] poi = svc.getAllPointOfInterests();
      if (poi != null) {
        for (PointOfInterest temp : poi) {
          poiList.add(temp);
        }
        ((POIOverlayView) overlay[2]).setPointOfInterestList(poiList);
      }
      if (wpl != null) {
        for (WaypointLink temp : wpl) {
          wpLinkList.add(temp);
        }
        ((WayPointOverlayView) overlay[3]).setWaypointLinkList(wpLinkList);
      }
      if (wp != null) {
        for (Waypoint temp : wp) {
          wpList.add(temp);
        }
        ((WayPointOverlayView) overlay[3]).setWaypointList(wpList);
      }
      if (mpl != null) {
        for (MeasurepointLink temp : mpl) {
          mpLinkList.add(temp);
        }
        ((MeasurePointOverlayView) overlay[1]).setMeasurepointLinkList(mpLinkList);
      }
      if (mp != null) {
        for (Measurepoint temp : mp) {
          mpList.add(temp);
        }
        ((MeasurePointOverlayView) overlay[1]).setMeasurepointList(mpList);
      }
      if (bmp != null) {
        for (BaseMeasurepoint temp : bmp) {
          bmpList.add(temp);
        }
        ((MeasurePointOverlayView) overlay[1]).setBaseMeasurepointList(bmpList);
      }
      updateList();
    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    //

    menu_botton_init();
  }