MapThemeConfig class
Configuration for the map's visual theme and tile provider.
Constructors
-
MapThemeConfig({String tileUrl = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', String userAgent = 'com.risto.library', Color backgroundColor = const Color(0xFFE0E0E0), bool retinaMode = true, Map<
String, String> ? additionalHeaders}) -
const
- MapThemeConfig.jawg({required String accessToken, String style = 'jawg-sunny', 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/
factory
- MapThemeConfig.mapbox({required String accessToken, String styleId = 'streets-v12', String userAgent = 'com.risto.library'})
-
Mapbox (Generous Free Tier: 50,000 loads/month)
Get a key at: https://www.mapbox.com/
factory
- MapThemeConfig.stadia({String? apiKey, String style = 'alidade_smooth', String userAgent = 'com.risto.library'})
-
Stadia Maps (Free Tier: 2,500 mapviews/day for non-commercial use)
Great minimalist styles.
Get a key at: https://stadiamaps.com/
factory
Properties
-
additionalHeaders
→ Map<
String, String> ? -
final
- backgroundColor → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- retinaMode → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tileUrl → String
-
final
- userAgent → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited