> For the complete documentation index, see [llms.txt](https://dev.pointr.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.pointr.tech/v9/features/indoor-maps/map-configuration/map-view-configuration/map-tracking-modes.md).

# Map Tracking Modes

Pointr supports the following map tracking modes

#### Free mode `NoTracking`

* Users can browse the map freely. They can drag, zoom in/out, change levels on map and map will stay intact.

#### Tracking mode `LocationTracking`

* Map will track the user by locking the user position in the center. In this mode, the map stays static whilst the user position pin rotates as the device rotates. Note that if position calibration hasn’t happened and the initial compass is disabled, then the pin will show as a circle, without showing any orientation.

#### Rotational tracking mode `LocationTrackingWithRotation`

* Identical to tracking mode, except the map rotates while user position pin stays static (looking upward). Note if user position is not calibrated, it is not feasible to rotate the map (since device orientation is not determined accurately). Therefore, it will act as (2) until calibration. Once the position is calibrated, it will start rotating the map.

#### Route tracking mode `RouteTracking`

* The default option for wayfinding, regardless of user’s actual position or orientation, map is rotated to ensure route is always pointing upward.

## UX Clarifications

### Question: What happens to the "Tracking mode" button if the user’s location is not available?

"Tracking mode" button should go inactive / pale to indicate that it is not possible to locate the user at this time. If the user taps on the button, it should show an error message as below:

| Case                         | Message                                                                                                                        |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Location permission missing  | "Location cannot be found when authorization is not granted. Please grant location authorization from Settings and try again." |
| Location services turned off | "Location cannot be found when Location Services are turned off. Please enable Location Services from Settings and try again." |
| Other                        | "Position is not ready."                                                                                                       |

### What happens when the user taps on the "Tracking mode" button while in Free mode?

The button will change to tracking mode which will make map scroll to the user’s current position (changing level if needed).

### Can I drag the map while in Tracking / Rotational Tracking / Route Tracking mode? If so, what happens when I drag?

Yes, users can always drag the screen as they wish. When the mode is tracking or rotational tracking, if the user drags to any location, the map should automatically go to Free Mode. This should also be the case when the map highlights a POI or when the user manually changes the level / building. During way-finding it automatically switches back to route tracking (rotational tracking on Android) after 3 seconds of user inaction.

### By default, which modes are available when location is available, when it’s not available and when wayfinding is active?

**CASE 1:** Location not available Only free mode is available and the button should display a specific icon for location unavailable

**CASE 2:** Location available Free, tracking and rotational tracking. Tapping the button will make the current mode cycle between these 3.

**CASE 3:** Wayfinding active Route tracking mode only.

### Are there any auto switch modes by default?

Yes. By default we should auto switch modes on the following events:

1. When starting wayfinding we should auto switch to route tracking mode.
2. When cancelling or ending wayfinding we should auto switch to tracking in case location is available, or free mode in case it’s not.
3. First time position is detected we should set to tracking.

### Can I pinch to rotate? What happens to the mode?

Yes, you can always pinch to rotate the map while in Tracking / Rotational Tracking / Route Tracking modes and the current tracking mode will remain.

Users can always drag the screen as they wish. When the mode is tracking or rotational tracking, if the user drags to any location, the map should automatically go to Free Mode. This should also be the case when the map highlights a POI or when the user manually changes the level / building.&#x20;

During wayfinding it automatically switches back to route tracking (rotational tracking on Android) after 3 seconds of user inaction.


---

# 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://dev.pointr.tech/v9/features/indoor-maps/map-configuration/map-view-configuration/map-tracking-modes.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.
