@Override
    public void itemStateChanged(ItemEvent e) {
        Object source = e.getItemSelectable();
        if (source == view.enableRelative) {
            if (centerZoom) {
                centerZoom = false;
            } else {
                centerZoom = true;
            }
        }
        else if (source == view.enableRoad) {
            map.roadSwitch();
        }
        else if (source == view.enableNavigation) {
            if (view.eastPanel.isVisible()) {
                view.eastPanel.setVisible(false);
                view.repaint();
                map.updateMap();
            }
            else {
                view.eastPanel.setVisible(true);
                view.repaint();
                map.updateMap();
            }
        }
    }