---
title: "RequestUriForOverlayViewHelper"
manual: "maps2 (Maps2)"
version: "12.2"
permalink: "https://docs.typo3.org/permalink/jweiland/maps2:requesturiforoverlayviewhelper@12.2"
source: "AdministratorManual/Templates/ViewHelpers/RequestUriForOverlayViewHelper.rst"
rendered: "2026-11-03T10:14:27+00:00"
---

# RequestUriForOverlayViewHelper {#requesturiforoverlayviewhelper}

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

## Examples {#examples}

### Basic example {#basic-example}

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

### Scroll to content element {#scroll-to-content-element}

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>
```
