> 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/customizations-and-branding/map-style/pointr-style.json-structure.md).

# Pointr style.json Structure

This page explains the structure of Pointr's style.json file and what each section controls.

### Overview

The `style.json` is a configuration file that defines the complete visual appearance of your map. It controls:

* Map colors, fonts, and transparency
* Label and icon appearance
* Zoom-level visibility rules
* Building and POI visuals
* Outdoor map details

The file follows the [Mapbox Style Specification](https://docs.mapbox.com/mapbox-gl-js/style-spec/) and is compatible with both **Mapbox GL** and **MapLibre**.

### Top-Level Sections

#### Metadata

The `metadata` section stores supplementary information about the style, such as version details, internal notes, and SDK-related flags. This section is primarily used by Pointr's system and developers — you generally do not need to modify it.

The `light` section controls the global 3D lighting applied across the map.

```json
"light": {
  "color": "rgba(255, 255, 255, 1)",
  "position": [1, 240, 60],
  "intensity": 0.1
}
```

| Property    | Description                                    |
| ----------- | ---------------------------------------------- |
| `color`     | The color of the light source                  |
| `position`  | The position of the light in 3D space          |
| `intensity` | The strength of the light (0 = none, 1 = full) |

This primarily affects 3D buildings, shadows, and extruded geometry on your map.

#### Sources

The `sources` section defines where the map's data comes from — for example, indoor polygons, POIs, buildings, and outdoor map content.

> ⚠️ **Important:** Pointr-specific sources (used internally by the SDK) must not be modified or removed. Doing so can cause rendering issues, missing map objects, or broken SDK interactions.

#### Sprite

The `sprite` section points to the icon library used by the map. All map icons — such as restrooms, elevators, parking areas, and restaurants — are loaded from this sprite sheet. The style references icons from the sprite by name.

#### Glyphs

The `glyphs` section defines the font source used to render text on the map, including POI labels and other map text. Without a valid glyphs source, text cannot be displayed correctly.

### Layers

Layers are the core of the `style.json`. Each layer controls how a specific type of map object is displayed visually.

#### Layer Ordering

Layers are rendered in the order they appear in the file — layers listed first are drawn at the bottom of the visual stack, and layers listed later appear on top.

A typical rendering order looks like this:

1. Background
2. Water
3. Roads
4. Buildings
5. Indoor map object structure
6. Icons and labels

This ordering matters: upper layers will visually cover lower ones.

***

#### Outdoor (Basemap) Layers

The first layers in the file typically represent the outdoor basemap , the world map that surrounds your indoor venue. These include elements such as roads, water, parks, land areas, and buildings.

Pointr supports two outdoor map providers:

**OpenMapTiles / OpenStreetMap** , An open-source world map built and maintained by contributors worldwide. It provides roads, water, parks, land areas, and buildings.

**Esri** , A professional geographic data service offering roads, green areas, land usage, buildings, and satellite imagery.

Your `style.json` will use one of these providers (or neither, for purely indoor deployments).

#### Pointr Indoor Layers (`_ptr` Layers)

After the outdoor layers, you'll find Pointr's indoor mapping layers. These are identifiable by the `_ptr` suffix in their names. There are two main types:<br>

**Fill Layers (`fill_{typeCode}_ptr`)**

Fill layers render polygon-based map objects -- ,any area with a visible fill color on the map. Examples include rooms, shops, meeting rooms, corridors, and facilities.

**Key properties:**

| Property                | Description                                                                                 |
| ----------------------- | ------------------------------------------------------------------------------------------- |
| `type`                  | `fill` or `fill-extrusion` draws filled polygons                                            |
| `source`                | Always `source_ptr` — data comes from Pointr content                                        |
| `source-layer`          | Identifies the object type (typeCode) this layer represents                                 |
| `minzoom`               | The minimum zoom level at which this layer becomes visible                                  |
| `maxzoom`               | The maximum zoom level at which this layer is visible                                       |
| `fill-extrusion-height` | Can only be used with fill-extrusion type layers and sets the height of the extrusion.      |
| `fill-extrusion-base`   | Can only be used with fill-extrusion type layers and sets the starting height of extrusion. |

**Fill color logic** — Colors are applied in this priority order:

1. If the object has a custom color set → use that color
2. If the object is being hovered → use the hover color
3. Otherwise → use the default style color

**Other notable fill layers:**

| Layer Name                  | Purpose                                                |
| --------------------------- | ------------------------------------------------------ |
| `route_default_ptr`         | Displays the navigation route during wayfinding        |
| `fill_level-geofence_ptr`   | Renders geofence fill areas at the floor level         |
| `fill_building-outline_ptr` | Renders building outlines from Pointr Cloud            |
| `fill_site-outline_ptr`     | Renders site boundaries from Pointr Cloud              |
| `fill_global-geofence_ptr`  | Renders global geofence fill areas                     |
| `fill_blueprint_ptr`        | Renders the building footprint visible in Pointr Cloud |
| `fill_selected_ptr`         | Highlights the currently selected object               |

> ⚠️ **Important :** Do not modify the filters on `_ptr` fill layers. These filters are required by the SDK and changing them may break functionality.

**Symbol Layers (`symbol_{typeCode}_ptr`)**

Symbol layers render icons, labels, and markers on the map. They are used for POIs, transitions, and other point-based map elements. Not every object type has a symbol layer.

Common examples: restrooms, elevators, stairs, and floor transitions.

**Layout properties:**

| Property             | Description                                     |
| -------------------- | ----------------------------------------------- |
| `text-field`         | The label text shown on the map                 |
| `text-font`          | The font used for the label                     |
| `text-size`          | The size of the label text                      |
| `text-anchor`        | Where the text is anchored relative to the icon |
| `text-offset`        | Offset of the label from its anchor point       |
| `icon-image`         | Which icon from the sprite to display           |
| `icon-size`          | The scale of the icon                           |
| `icon-allow-overlap` | Whether icons can render on top of each other   |
| `visibility`         | Whether the layer is shown or hidden            |

**Icon logic** — Icons are selected in this priority order:

1. If the object has a custom icon set → use that icon
2. Otherwise, try to match an icon by `typeCode`
3. If no matching icon exists → fall back to the generic marker icon

**Paint properties:**

| Property          | Description                       |
| ----------------- | --------------------------------- |
| `text-color`      | The color of the label text       |
| `text-halo-color` | The outline color around the text |
| `text-halo-width` | The thickness of the text outline |
| `text-halo-blur`  | The softness of the text outline  |
| `icon-opacity`    | The transparency of the icon      |

**Other notable symbol layers:**

| Layer Name                         | Purpose                                                             |
| ---------------------------------- | ------------------------------------------------------------------- |
| `symbol_level-geofence_ptr`        | Geofence symbols — do not remove (system-required)                  |
| `symbol_building-outline_ptr`      | Building symbols from Pointr Cloud                                  |
| `symbol_site-outline_ptr`          | Site symbols from Pointr Cloud                                      |
| `symbol_global-geofence_ptr`       | Global geofence symbols                                             |
| `symbol_selected_ptr`              | Icon for the currently selected object                              |
| `symbol_transitions_ptr`           | Transition toolbox visuals between buildings/floors — do not modify |
| `symbol_quick-access_ptr`          | Quick Access item icons — do not modify                             |
| `symbol_quick-access-selected_ptr` | Selected Quick Access item icons — do not modify                    |

> ⚠️ **Important:** Do not modify the filters on `_ptr` symbol layers. These are system-dependent SDK filters.
>
> **Mobile SDK note:** Changes to `symbol_selected_ptr` may only be reflected in the Web SDK, not in the Mobile SDK.

If you would like a custom map style created for your deployment, please reach out to the Pointr team — see [How Can I Get a Map Stylesheet](https://dev.pointr.tech/v9/features/indoor-maps/customizations-and-branding/map-style.md#how-can-i-get-a-map-stylesheet)? for more information.


---

# 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/customizations-and-branding/map-style/pointr-style.json-structure.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.
