<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/TileOverlay/TileOverlayConstructor",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.TileOverlay/TileOverlayConstructor"
  },
  "title" : "new TileOverlay(imageForTile, options)"
}
-->

# new TileOverlay(imageForTile, options)

Creates a tile overlay with a URL template or image callback and style options.

```
constructor(
    imageForTile: TileOverlayUrlTemplate | TileOverlayImageCallback,
    options?: TileOverlayConstructorOptions,
);
```

## Parameters

`imageForTile`

A [`TileOverlayUrlTemplate`](/documentation/MapKitJS/TileOverlayUrlTemplate) string or URL callback, or a [`TileOverlayImageCallback`](/documentation/MapKitJS/TileOverlayImageCallback) that returns image sources directly. MapKit JS requests new tiles when the map zooms or pans, the display changes, or the custom [`data`](/documentation/MapKitJS/TileOverlay/data) properties change.

`options`

An optional [`TileOverlayConstructorOptions`](/documentation/MapKitJS/TileOverlayConstructorOptions) object literal of properties for initializing the tile overlay.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)