# How to create and configure your first map in unity?

After importing the SDK, to add a map to the scene...

1. Create a new **GameObject.**
2. Add a **MapRenderer** component to the GameObject: `Add component` -> `Scripts` -> `Microsoft.Maps.Unity` -> `MapRenderer`
3. In the MapRenderer component, provide the **Bing Maps developer key**.

For the sample scenes, a Bing Maps developer key will also need to be provided in the MapRenderer.

Once the a valid key is provided, the map will render at runtime and in the editor as well.

![Map Renderer API settings.](/files/-M3if5wht_EeWx4LYlcK)

&#x20;Once a valid key has been provided, the map will render in the editor as well, unless the `Show Map Data in Editor` option has been disabled.

### How to change Location and Zoom Level?

The view of the map can be configured in the **Location** foldout.

![Location settings.](/files/-M3ifoIcMteaNZNS0PRp)

The `Center` is the **geolocation** where the map is currently focused, represented as a latitude and longitude in degrees.

The `ZoomLevel` is the **area of the map** that is visible. **Lower zoom levels** correspond to **zooming out**, **higher zoom levels** correspond to **zooming in.**

The map uses a web [**Mercator projection**](https://en.wikipedia.org/wiki/Mercator_projection).


---

# 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://www.xrdev.app/mixed-reality-docs/lessons/lesson-5/project/how-to-create-and-configure-your-first-map-in-unity.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.
