> For the complete documentation index, see [llms.txt](https://realisticnode.gitbook.io/rnsetups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://realisticnode.gitbook.io/rnsetups/rnpsmenu/guides/maps.md).

# Web maps

Show every protection on BlueMap and dynmap.

When **BlueMap** or **dynmap** is installed, rnPsMenu draws every protection on the web map: its area, filled and outlined, with a name and a popup. There is nothing to install or set up; the console says `Showing the protections on BlueMap.` (or dynmap, or both).

```yaml
map-markers:
  enabled: true
  refresh-seconds: 300
  layer: 'Protections'
  label: '{region}'
  detail: '<b>{region}</b><br>Owners: {owners}<br>Members: {members}<br>Block: {type}'
  fill-color: '#3FD0FF'
  fill-opacity: 0.2
  line-color: '#3FD0FF'
  line-opacity: 0.9
```

| Option                        | What it does                                                               |
| ----------------------------- | -------------------------------------------------------------------------- |
| `enabled`                     | Draw the protections (`false` removes them from the map)                   |
| `refresh-seconds`             | Seconds between two full redraws (at least 30)                             |
| `layer`                       | Name of the layer in the map's menu, where visitors of the map can hide it |
| `label`                       | Name of each area on the map                                               |
| `detail`                      | Popup of each area, in HTML                                                |
| `fill-color` / `fill-opacity` | Color (`#RRGGBB`) and opacity (0 to 1) of the inside                       |
| `line-color` / `line-opacity` | Color and opacity of the border                                            |

The texts of `layer` and `detail` are not in the language files: write them in your players' language if it is not English.

`label` and `detail` take the same placeholders: `{region}` (name, or id when it has no name), `{id}`, `{type}` (block type), `{world}`, `{owners}`, `{members}`.

* The map is redrawn a moment after a region is created, removed or renamed (from the menus or with `/ps name`, `/ps unclaim`...), after a merge (menu, `/ps merge` or `/ps unmerge`), and when its Map marker flag changes in the menus. Other changes (new members...) show at the next full redraw.
* `{owners}` and `{members}` show up to 10 names, then `+N`. `{world}` uses the names of `display.world-names`.
* Region names are made safe for HTML, so players can't add HTML to your map page.

## Hiding a region

Owners hide their region from the map with the **Map marker** flag set to **deny** in the flags menu. `map-marker` is in `flags.extra-allowed` by default; remove it from that list if players should not be able to hide their regions.

{% hint style="info" %}
If your BlueMap or dynmap version is not supported, the console says so and the markers stay off. The rest of rnPsMenu is not affected.
{% endhint %}
