MapThemeConfig.mapbox constructor
MapThemeConfig.mapbox({})
Mapbox (Generous Free Tier: 50,000 loads/month) Get a key at: https://www.mapbox.com/
Implementation
factory MapThemeConfig.mapbox({
required String accessToken,
String styleId = 'streets-v12', // Try: light-v11, dark-v11, outdoors-v12
String userAgent = 'com.risto.library',
}) {
return MapThemeConfig(
tileUrl:
'https://api.mapbox.com/styles/v1/mapbox/$styleId/tiles/256/{z}/{x}/{y}@2x?access_token=$accessToken',
userAgent: userAgent,
);
}