# PMTilesOverlay

class in `3d-tiles-renderer/three/plugins`, extends `MVTOverlay`

```js
import { PMTilesOverlay } from '3d-tiles-renderer/three/plugins';
```

Overlay that renders PMTiles vector or raster data on top of 3D tile geometry.
Projection and zoom levels are read automatically from the PMTiles archive header.

> **Note:** Direct use of PMTiles requires range requests, which are not automatically cached
by the browser. It's recommended to implement a service worker to cache response content
to save bandwidth.

## Constructor

```js
new PMTilesOverlay( options?: Object )
```

- `options`, `Object`, optional
  - `url`, `string`, optional: URL to the `.pmtiles` archive.
  - `resolution`, `number`, optional, default `512`: Canvas resolution for generated tile textures.
  - `getStyle`, `MVTGetStyleCallback`, optional: Per-feature style callback. Only applies to vector archives.
