How can I lock layers in draw.io?

I created a draw.io diagram with five layers. Two of them contain the basic structure of my diagram. I like to lock them so the shapes can’t be moved or edited anymore. How do I achieve that?

Hi there. First, you need to make sure that the layer panel is visible (see Menu > View > Layers or Cmd+Shift+L ). When you have a look at the layers, you will recognize the grey lock icon at the left of the layer name (per default you always have one layer which is named Background ). Click on the icon to lock the layer. From now on, none of the shapes, connectors or texts on that layer can be edited. Click again to unlock the layer. There is a dedicated video to your question and a Youtube playlist that covers all available layer features, so always feel free to visit our Youtube channel. It is also possible to lock specific shapes instead of global layers.