Using Stadia Maps
Pre-made Styles
Custom Styles
Usage
Normal (raster)
FlutterMap(
options: MapOptions(
center: LatLng(51.5, -0.09),
zoom: 13.0,
),
nonRotatedChildren: [
AttributionWidget.defaultWidget(
source: 'Stadia Maps © OpenMapTiles © OpenStreetMap contributors',
onSourceTapped: () async {
// Requires 'url_launcher'
if (!await launchUrl(Uri.parse("https://stadiamaps.com/attribution"))) {
if (kDebugMode) print('Could not launch URL');
}
},
)
],
children: [
TileLayer(
urlTemplate: "https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.png?api_key={api_key}",
additionalOptions: {
"api_key": "<API-KEY>",
},
userAgentPackageName: 'com.example.app',
maxNativeZoom: 20,
),
],
);Vector Usage
Last updated
Was this helpful?