Tile Layer
CARTO/XYZ/Slippy Map Only
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.flutter_map supports WMS Usage, but most map tiles are accessed through the CARTO/XYZ/Slippy Map standard, where the mapping library (flutter_map) fills in XYZ placeholders in a URL.

TileLayer class - flutter_map.plugin_api library - Dart API
Read the API documentation to find out all the available options
TileLayer(
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
userAgentPackageName: 'dev.fleaflet.flutter_map.example',
),
You must comply to your tile server's ToS. Failure to do so may result in you being banned from their services.
The OpenStreetMap Tile Server (as used above) can be found here. Other servers may have different terms.
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.
The
children
list works like the children of a Stack
: last is on top.Last modified 1mo ago