templateUrl property
Defines the structure to create the URLs for the tiles.
{s}
means one of the available subdomains (can be omitted)
{z}
zoom level
{x}
and {y}
— tile coordinates
{r}
can be used to add "@2x" to the URL to load retina tiles (can be omitted)
Example:
https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
It will translate to this:
Implementation
final String? templateUrl;