MapSettings class
Data class holding all map display settings.
Constructors
- MapSettings({bool showLocalPlaces = true, bool showEncryptedPlaces = false, bool hideAllMarkers = false, Color userPlacesColor = defaultUserColor, Color localPlacesColor = defaultLocalColor, Color encryptedPlacesColor = defaultEncryptedColor, bool rememberViewport = true, double initialLat = defaultInitialLat, double initialLng = defaultInitialLng, double initialZoom = defaultInitialZoom, MapSource? mapSource})
-
const
Properties
- encryptedPlacesColor → Color
-
Color for encrypted places.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideAllMarkers → bool
-
Whether to hide all markers on the map.
When true, no place markers will be displayed.
final
- initialLat → double
-
Initial viewport latitude (used when rememberViewport is off).
final
- initialLng → double
-
Initial viewport longitude (used when rememberViewport is off).
final
- initialZoom → double
-
Initial viewport zoom level (used when rememberViewport is off).
final
- localPlacesColor → Color
-
Color for local canned example places.
final
- mapSource → MapSource
-
Current map tile source.
final
- rememberViewport → bool
-
Whether to remember the last viewed viewport on restart.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showEncryptedPlaces → bool
-
Whether to show encrypted places on the map.
Encrypted places require security key to decrypt.
final
- showLocalPlaces → bool
-
Whether to show local (canned example) places on the map.
final
- userPlacesColor → Color
-
Color for user's saved places (from Pod).
final
Methods
-
copyWith(
{bool? showLocalPlaces, bool? showEncryptedPlaces, bool? hideAllMarkers, Color? userPlacesColor, Color? localPlacesColor, Color? encryptedPlacesColor, MapSource? mapSource, bool? rememberViewport, double? initialLat, double? initialLng, double? initialZoom}) → MapSettings - Creates a copy with optional overrides.
-
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
Static Methods
-
getDefaultMapSource(
) → MapSource - Time-based default map source. Always defaults to OpenStreetMap. Night mode styling is handled by app theme + color filter.