ArcaneMap class

Unified map component supporting both world and USA maps.

Renders an SVG map image with location pins overlaid on top. The SVG should be served from /assets/map/world.svg or /assets/map/us.svg.

Inheritance

Constructors

ArcaneMap({MapType type = MapType.world, List<MapLocation> locations = const [], MapLocationCallback? onLocationTap, MapLocationCallback? onLocationHover, Widget tooltipBuilder(MapLocation)?, MapStyle style = const MapStyle(), bool showTooltips = true, String? height, bool debugMode = false, String? svgUrl, Key? key})
const

Properties

debugMode bool
Enable debug mode to show coordinates on hover.
final
hashCode int
The hash code for this object.
no setterinherited
height String?
Optional fixed height (CSS value).
final
key Key?
Controls how one component replaces another component in the tree.
finalinherited
locations List<MapLocation>
Location pins to display on the map.
final
onLocationHover MapLocationCallback?
Callback when hovering over a location pin.
final
onLocationTap MapLocationCallback?
Callback when a location pin is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTooltips bool
Whether to show tooltips on hover.
final
style MapStyle
Style configuration for the map.
final
svgUrl String?
Custom SVG URL (overrides default asset path).
final
tooltipBuilder Widget Function(MapLocation)?
Custom tooltip builder for location pins.
final
type MapType
The type of map to display.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited