};
MapFrame.addMapModeChangeListener(mapModeListener);
mapModeListener.mapModeChange(null, Main.map.mapMode);
MapView.addLayerChangeListener(new LayerChangeListener() {
@Override
public void activeLayerChange(Layer oldLayer, Layer newLayer) {
if (newLayer == GeoImageLayer.this) {
// only in select mode it is possible to click the images
Main.map.selectSelectTool(false);