Package com.example.breeze_seas
Class GeoMap
java.lang.Object
com.example.breeze_seas.GeoMap
Manages the retrieval and mapping of participant locations for a specific event.
It converts Firestore GeoPoints into OSMDroid GeoPoints and associates them with
participant details; username and status; for map markers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface to communicate the results of location fetching back to the UI (e.g., MapsFragment). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfetchLocation(GeoMap.FetchedLocationListener listener) Fetches participant documents from the event's sub-collection and resolves their usernames to create a map of locations.
-
Constructor Details
-
GeoMap
Constructor for the Map manager.- Parameters:
event- TheEventobject whose participants' locations need to be fetched.
-
-
Method Details
-
fetchLocation
Fetches participant documents from the event's sub-collection and resolves their usernames to create a map of locations.- Parameters:
listener- The listener to notify once the data set is complete.
-