store.setValue(UPDATE_MAP_CRS_KEY, updateMapCRS);
}else{
updateMapCRS=store.getBoolean(UPDATE_MAP_CRS_KEY);
}
if( updateMapCRS ){
commandList.add(new ChangeCRSCommand(crs));
commandList.add(new SetViewportBBoxCommand(layer.getBounds(new NullProgressMonitor(), crs)));
}
}
layer.getMap().sendCommandASync(commands);
}