---
id: gravityview-maps-viewport-loading-dataset-bounds-cache-context
title: "Filter - gravityview/maps/viewport-loading/dataset-bounds-cache-context"
sidebar_label: "gravityview/maps/viewport-loading/dataset-bounds-cache-context"
tags:
  - "3.10.0"
---

# Filter: gravityview/maps/viewport-loading/dataset-bounds-cache-context

The visibility context that segments the dataset-bounds cache. Defaults to logged-in vs public; return a more specific token (e.g. a user ID or role hash) for Views whose visible entries vary per user via Advanced Filters or capabilities.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $context | `string` | Default: 'auth' when logged in, 'anon' otherwise. |
| $view | `\View` | The View. |

### Since

- 3.10.0

### Source

Defined in `src/Rest_Infowindow.php` at line 354

