Can I connect shapes from different layers in draw.io?

I created a flowchart that includes shapes from different layers. I can connect shapes that are not located on the same layer, but how do they behave once I e. g. move connected shapes?

Hi there. Yes, shapes can be connected across layers. What is important to remember is that connectors always maintain their functionality. If you move one of the connected shapes, the connector will follow. If you click on the checkbox beside the layer name you will see that hiding shapes will also always hide the connector (to avoid confusion). There’s a dedicated video to your question and a Youtube playlist that covers all available layer features on our Youtube channel, so be sure to check it out.