ml.setOffset(layerUndo.getBounds().x,layerUndo.getBounds().y);
    public void undo() throws CannotUndoException {        MapLayer ml = myMap.getLayer(layerUndo.getId());        if (ml == null) {            throw new CannotUndoException();        }        layerUndo.copyTo(ml);        ml.setOffset(layerUndo.getBounds().x,layerUndo.getBounds().y);    }