---
title: "RequestUriForOverlayViewHelper"
manual: "maps2 (Maps2)"
version: "13.1"
source: "AdministratorManual/Template/ViewHelpers/RequestUriForOverlayViewHelper.rst"
rendered: "2026-10-01T12:50:05+00:00"
---

# RequestUriForOverlayViewHelper {#viewhelper-request-uri-for-overlay}

This ViewHelper creates an URI with a special parameter which allows the map to
be visible for the user.

## Examples {#viewhelper-request-uri-for-overlay-examples}

### Basic example {#viewhelper-request-uri-for-overlay-basic-example}

```html
<a href="{m:requestUriForOverlay()}">
  Link to current page. Map will be shown somewhere on that page.
</a>
```

### Scroll to content element {#viewhelper-request-uri-for-overlay-scroll-to-content}

If you add `ttContentUid` to ViewHelper it will add a link section (#174)
to the end of the URI. If all of your content elements contain an `id` attribute
like `c174` the target page will scroll to this specific content element
directly.

```html
<a href="{m:requestUriForOverlay(ttContentUid: ttContentUid)}">
  Link to current page and scroll to content element with map.
</a>
```
