}
}
}
};
mapModeListener = new MapModeChangeListener() {
@Override
public void mapModeChange(MapMode oldMapMode, MapMode newMapMode) {
if (newMapMode == null || isSupportedMapMode(newMapMode)) {
Main.map.mapView.addMouseListener(mouseAdapter);
} else {