ShareMapSpriteService class

Service that fetches, parses, and caches the server Sprite Sheet (PNG + JSON) and provides decoded images for Flutter widgets.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

changeNotifier → ValueNotifier<int>
Listenable notifier that notifies UI widgets when the sprite is loaded/updated.
final
isReady → bool
no setter
spriteImage → Image?
no setter
spriteItems → Map<String, ShareMapSpriteItem>
no setter

Static Methods

findItem(String? iconName) → ShareMapSpriteItem?
Finds the sprite item for a given icon name or POI type code.
loadSprite(String spriteBaseUrl) → Future<void>
Loads the sprite atlas from spriteBaseUrl (e.g. https://map-dev.sharemap.live/styles/street/sprite).