Dynamic layers
Dynamic layers are a special basemap layer type where instead of referencing a map signature, you add one or more tags. Any overlay (and its collection of layers) with the same tags will be displayed via the dynamic layer. The inner workings of dynamic layers and overlays is explained in the Maria GDK core documentation
In the overlay
To tag an overlay, click the Metadata pane. Type a in a tag in the Tags field, and press Enter to complete it. You can add multiple tags, and you can remove them by clicking the "x" on each tag. The Priority field is a number which is used to decide the drawing order if there are multiple overlays with the same tag which also overlap. The overlay with the lowest number will be drawn on top. Finally, Save to disk.
In the basemap
In a basemap, use Add Layer→ Dynamic layer. You can then add tags to the dynamic layer in the same way as in the overlay. The dynamic layer can be re-named and scale limited in the same way as other layer types. After clicking Save to disk, this basemap will display all overlays with the corresponding tag. If the overlays have multiple layers of their own, the internal drawing order and scale limits will be respected.