# LAYERS & SORTING

<figure><img src="/files/2CECKCWFEUgZXSQUC7kl" alt=""><figcaption></figcaption></figure>

In several tools, you will see the **Layer** option. That dropdown menu allows you to sort your assets on specific layers, which will be above or below some others.&#x20;

{% hint style="warning" %}
*Layer management is only available for Patterns, Materials, Path and Objects.*\
\
*The other tools will have their specific layers, which are greyed out in the dropdown menu.*
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdz7jR0Pff74O-a_n2p_9cvlBG2yjMqY8nowtvm1n0bpkTLGoZvtQa_ReCWG2ckjIuCVB6Fq5GZVxxE_PQJwscAtBjyr2dMFZr7M_8BWCJB9hvoZhphv5hGFjzrOySMiSd7T6jSeQ?key=yb7pPfKqh-ggF4DAtKAOvkMp" alt=""><figcaption></figcaption></figure>

By default, assets are placed on **100: User Layer 1,** unless they use a specific layer as mentioned abov&#x65;**.** The higher the number is, the higher the asset will be appear vertically. For example, assets placed on **100: User Layer 1** will be under **200: User Layer 2.**

{% hint style="info" %}
***Dungeondraft 1.2.0.0** adds* [*keyboard shortcuts*](/guide/general-info/mouse-and-keyboard-shortcuts.md#docs-internal-guid-738aba63-7fff-4988-be07-1a373d0792b9) *for fast layer change.*
{% endhint %}

### **REORDER AFTER PLACING**

You will be able to select the **layer** of most assets **before placing them**. If you're not satisfied, you can always set the asset to **another layer** in the [**Selection Tool**](/guide/all-the-tools/select-tool.md). \
\
If two assets are on the **same layer**, you can also choose to bring one to the **front** or to send it to the **back** using the [**Selection Tool**](/guide/all-the-tools/select-tool.md).

<figure><img src="/files/kzpJStAgfT0WHj4funtH" alt=""><figcaption><p>Use this in the Selection Tool for assets that are on the same layer</p></figcaption></figure>

<figure><img src="/files/of7vDMV6mJ9tKUPICtXl" alt=""><figcaption><p>How layers work</p></figcaption></figure>

{% hint style="danger" %}
**Layers** and **Levels** are two different things:

* **Layers** allow you to manage assets **relative to each other.**
* **Levels** allow you to create several maps **on top of each other**, mostly used for adding **floors** to a building or **overlays** to a map.
  {% endhint %}

***

### ADDING MORE LAYERS (WORKAROUND)

It is possible to **add more layers** to a map by **editing** the **map file** with a **text editor**.&#x20;

* Make sure Dungeondraft is closed
* Open your `[name].dungeondraft_map` file with any text editor
* Find the "layers" section
* Add another layer with a different number where you need (make sure to follow the same text pattern as for other layers)
* Save the file and Open it in Dungeondraft to see your new layer appear

{% hint style="warning" %}
***Make sure to have a backup of your map before modifying the file.***
{% endhint %}

<figure><img src="/files/5j14ZPFDR26bSG09AnN9" alt=""><figcaption><p>That layer was added manually in the .dungeondraft_map file</p></figcaption></figure>

{% hint style="info" %}
Layers related to tools can not be edited. They are greyed out in the list screenshot below and won't appear in the map text file.
{% endhint %}

<figure><img src="/files/LSCH3k1PcMVxCNjGDF6y" alt=""><figcaption></figcaption></figure>

***

{% hint style="info" %}

## Related Mods

* [\_Lib](/guide/custom-assets-and-mods/some-useful-mods/_lib.md) allows you to see **custom layers** in the [Selection Tool's Layer filter](/guide/all-the-tools/select-tool/left-tab.md#layers).
* [Minor Utils](/guide/custom-assets-and-mods/some-useful-mods/minor-utils.md) adds keyboard shortcuts for **sorting** and **layer management**.
* [Manage Layers](/guide/custom-assets-and-mods/some-useful-mods/manage-layers.md) allows you to add, remove, reorder and rename layers.
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dungeondraft-encyclopaedia.gitbook.io/guide/general-info/layers-and-sorting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
