# 2D Models

2D models are images placed directly onto the surface of your map. Unlike icons, which float at a fixed size above the map, 2D models scale with the map as you zoom in and out — making them feel like part of the physical space rather than a marker on top of it.

Common uses include store logos in a shopping centre, exhibitor branding at a trade show, or floor markings like directional arrows and zone labels.

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

> **Note:** 2D models must be enabled for your solution before they're available as an option in the CMS.

***

### Supported formats

2D models support `.svg`, `.png`, and `.jpg` files — the same formats as icons. The choice of format matters less here than for icons, since 2D models are typically photos or detailed graphics rather than simple symbols. That said, SVG is still a good choice if your image is logo-style or vector-based.

***

### Preparing your files

Keep file sizes as small as possible. Large images increase load times and can make your map feel slow, especially on mobile. Before uploading, compress your images using a tool like [TinyPNG](https://tinypng.com/) and aim to stay under **800px** in width and height.

***

### Sizing on the map

When you apply a 2D model through a Display Rule, you set its **width and height in meters** — so the image is sized relative to the real-world space it sits in. You can adjust these values to make the model larger or smaller on the map.

The **Fit to Location** option is a quick way to size the model to fill as much of the location's polygon as possible. It calculates the size based on the location's anchor point, so if the anchor is near the center of the room, the model will fit neatly inside it.

The model's original aspect ratio is always maintained — width and height cannot be set independently.

***

### Elevation with 3D

If a location has both a 2D model and a 3D extrusion applied, the 2D model will automatically rise to sit on top of the extrusion rather than appearing at floor level. This means logos and floor graphics remain visible even when 3D walls and rooms are enabled.


---

# 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://docs.mapsindoors.com/cms/interface/media-library/2d-models.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.
