The basis of any map is a
TileLayer, which displays square raster images in a continuous grid, sourced from the Internet or a local file system.
You must comply to your tile server's ToS. Failure to do so may result in you being banned from their services.
This package is not responsible for your misuse of any tile server.
It is possible to use more than one tile layer, and can be used with transparency/opacity.
childrenlist works like the children of a
Stack: last is on top.
Need more control over the source of tiles, or how tiles are fetched? You'll need to change the
Always specify the
userAgentPackageNameargument to avoid being blocked by your tile server.
It should be passed the application's package name, such as 'com.example.app'. This is important to avoid blocking by tile servers due to high-levels of unidentified traffic. If no value is passed, it defaults to 'unknown'.
This is all ignored on the web, where the 'User-Agent' header cannot be changed due to a limitation of Dart/browsers.