MapThemeConfig.jawg constructor

MapThemeConfig.jawg({
  1. required String accessToken,
  2. String style = 'jawg-sunny',
  3. String userAgent = 'com.risto.library',
})

Jawg Maps (Generous Free Tier: 50,000 mapviews/month) Extremely fast and designed specifically for Leaflet/flutter_map. Get a key at: https://www.jawg.io/

Implementation

factory MapThemeConfig.jawg({
  required String accessToken,
  String style = 'jawg-sunny', // Try: jawg-streets, jawg-dark, jawg-light
  String userAgent = 'com.risto.library',
}) {
  return MapThemeConfig(
    tileUrl:
        'https://tile.jawg.io/$style/{z}/{x}/{y}{r}.png?access-token=$accessToken',
    userAgent: userAgent,
  );
}