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