# Individual Map

To localize a user on a specific Map, provide the Map Code where the user is located. Retrieve the Map Code by logging into the Developer Portal or using our REST API.

<figure><img src="https://3163433004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTDI7QVY04Zvb1pQ8Ry%2Fuploads%2FjNgd6CRZziHWh2OuctIH%2FScreenshot%202024-11-29%20at%2012.07.57%E2%80%AFPM.png?alt=media&#x26;token=1771f2be-195c-47a5-90cd-7a7a87107050" alt=""><figcaption></figcaption></figure>

IN the Map Localization Manager in Unity SDK, select Localization Type as "Map" and then past your Map Code

<figure><img src="https://3163433004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FokTDI7QVY04Zvb1pQ8Ry%2Fuploads%2F1XDSE5U8x4zMjhCAU7DO%2FScreenshot%202024-12-10%20at%2011.02.40%E2%80%AFAM.png?alt=media&#x26;token=d38d6dbb-9f84-4f58-8455-b55813cd1a1c" alt=""><figcaption></figcaption></figure>

### Update Map Code in Runtime

\
To dynamically change the mapOrMapsetId at runtime in our existing script, you can create a UI input field or a method that updates the mapOrMapsetId in the MapLocalizationManager. Below is an example script showcasing how to do this via a simple button press or direct method call.

```csharp
using MultiSet;
using UnityEngine;
using UnityEngine.UI;

public class MapCodeUpdater : MonoBehaviour
{
    // Reference to the Map Localization Manager
    private MapLocalizationManager mapLocalizationManager;

    // Input field to get the new Map ID from the user
    [SerializeField]
    private InputField mapCodeInputField;

    void Start()
    {
        // Find the Map Localization Manager component in the scene
        mapLocalizationManager = FindObjectOfType<MapLocalizationManager>();

        if (mapLocalizationManager == null)
        {
            Debug.LogError("MapLocalizationManager not found! Please ensure it is added to the scene.");
        }

        if (mapCodeInputField == null)
        {
            Debug.LogError("InputField reference is missing! Please assign it in the inspector.");
        }
        
        mapLocalizationManager.localizationType = LocalizationType.Map;
    }

    // Method to update the Map ID
    public void UpdateMapId()
    {
        if (mapLocalizationManager != null && mapCodeInputField != null)
        {
            string newMapCode = mapCodeInputField.text;

            if (!string.IsNullOrWhiteSpace(newMapCode))
            {
                mapLocalizationManager.mapOrMapsetCode = newMapCode;
                Debug.Log($"Map Code updated to: {newMapCode}");
            }
            else
            {
                Debug.LogWarning("Map Code cannot be empty! Please enter a valid Code.");
            }
        }
    }
}
```


---

# 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.multiset.ai/unity-sdk/on-cloud-localization/individual-map.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.
