new TileOverlay(urlTemplate, options)
Creates a tile overlay with a URL template and style options.
Declaration
constructor(
urlTemplate: TileOverlayUrlTemplate,
options?: TileOverlayConstructorOptions,
);Parameters
- urlTemplate:
The Tileoverlayurltemplate value can be in the format of a template URL string or a function that returns a URL string from a set of tile parameters. 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.