> For the complete documentation index, see [llms.txt](https://docs.mapsindoors.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mapsindoors.com/products/fast-track-maptemplate/2d-3d-visibility-switch.md).

# 2D/3D Visibility Switch

This article is intended to present the new map visualisation options to switch between 2D and 3D maps, allowing you to deliver performant solutions based on the device or use case.

<figure><img src="https://2554025873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYZLXDaaclvaSK6Q7eigW%2Fuploads%2Fgit-blob-0061d5fc38c74a143a02a0cab47be140861a9d1e%2F2d3dswitch.gif?alt=media" alt=""><figcaption></figcaption></figure>

The Map Template allows you to seamlessly switch between the two different view modes (2D / 3D), based on your use case.

**This feature allows you to:**

* **Transition effortlessly** - switch between detailed 3D views and streamlined 2D layouts with a simple click. (Calling the SDK functions) + link to the SDK implementation page
* **Optimise performance** - enabling the 2D view which is tailored for speed and clarity, providing a fast and responsive mapping experience on older devices.
* **Adjust camera** - enjoy the best viewing angle automatically, as the feature adjusts the camera position to suit the selected map mode (top-down for 2D maps and a 45-degree angle for 3D — the camera position is not locked, just adjusted).

**Enabling the 2D/3D Visibility Switch on your own Map Template**

In order to view the 2D/3D Visibility Switch in your own app, you need to have the following modules enabled: `Mapbox`, `3D Walls` and `2D Walls` in the CMS.

Below you can find a step by step guide to how you can enable the previously mentioned modules:

1. Go to the [CMS](https://cms.mapsindoors.com/map) and select your own solution (the API Key used in the Map Template)
2. Go to the Deployment tab -> Solutions tab
3. In the search field placed at the top right of the page, search for the name of your solution
4. When you found your solution, click on the pen icon placed at the beginning of the row
5. Scroll down to the `Modules` section and enable the `Mapbox`, `3D Walls` and `2D Walls` modules
6. When having them enabled, press `Save and close` and refresh the Map Template. The expected behaviour is to see the 2D/3D Visibility Switch on the top left corner.

**Note!** This feature is only available on Mapbox.

Read more about the SDK methods that enable this implementation [here](/sdks-and-frameworks/web/map-visualization/managing-features-visibility-for-mapbox-v3.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mapsindoors.com/products/fast-track-maptemplate/2d-3d-visibility-switch.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
