new TileOverlay(imageForTile, options)
Creates a tile overlay with a URL template or image callback and style options.
Declaration
constructor(
imageForTile: TileOverlayUrlTemplate | TileOverlayImageCallback,
options?: TileOverlayConstructorOptions,
);Parameters
- imageForTile:
A Tileoverlayurltemplate string or URL callback, or a Tileoverlayimagecallback that returns image sources directly. MapKit JS requests new tiles when the map zooms or pans, the display changes, or the custom Data properties change.
- options:
An optional Tileoverlayconstructoroptions object literal of properties for initializing the tile overlay.