Constructor

String template for the tile URL,
or a function that generates the tile URL.
For the string template, the following substitutions are supported:

%c is replaced with x=number[0]&y=number[1]&z=zoom level.

%x is replaced with number[0].

%y is replaced with number[1].

%z is replaced with the zoom level.

%l is replaced with lang=language.

%d or %d|n is replaced with a number from 1 to n, depending on the tile number; n is the number of domains.
Used for distributing the load over multiple domains.
For n, specify a factor of two (2, 4, 16, and so on).
If the template has %d, then n=4.

Option that specifies the URL for downloading an image if the tile image didn't load.
If the value is null, a standard tile is displayed with a text message.
For transparent tiles, the notFoundTile option is not applied, and nothing is shown in place of tiles that didn't load.

String template for the tile URL,
or a function that generates the tile URL.
For the string template, the following substitutions are supported:

%c is replaced with x=number[0]&y=number[1]&z=zoom level.

%x is replaced with number[0].

%y is replaced with number[1].

%z is replaced with the zoom level.

%l is replaced with lang=language.

%d or %d|n is replaced with a number from 1 to n, depending on the tile number; n is the number of domains.
Used for distributing the load over multiple domains.
For n, specify a factor of two (2, 4, 16, and so on).
If the template has %d, then n=4.

Option that specifies the URL for downloading an image if the tile image didn't load.
If the value is null, a standard tile is displayed with a text message.
For transparent tiles, the notFoundTile option is not applied, and nothing is shown in place of tiles that didn't load.

Optional method.
Checks the available range of zoom levels at the specified point.
If there is data, the returned promise object will be resolved and will pass
as a result an array of two numbers - the minimum and maximum
zoom level available at the point.
If there is no data, the promise is rejected with an error.

Optional method.
Checks the available range of zoom levels at the specified point.
If there is data, the returned promise object will be resolved and will pass
as a result an array of two numbers - the minimum and maximum
zoom level available at the point.
If there is no data, the promise is rejected with an error.