There is no way of accessing the layer definition \pgfsetlayers{background,connectionlayers,main} to recover the required layers in a robust way in case they are changed manually. This causes conflicts with other packages and documents that set their own layer-order.
Maybe it would suffice to provide a command sequence
\def\pgfumlcdrecoverlayers{\pgfsetlayers{background,connectionlayers,main}}.
There is no way of accessing the layer definition
\pgfsetlayers{background,connectionlayers,main}
to recover the required layers in a robust way in case they are changed manually. This causes conflicts with other packages and documents that set their own layer-order.Maybe it would suffice to provide a command sequence
\def\pgfumlcdrecoverlayers{\pgfsetlayers{background,connectionlayers,main}}
.