MapFragment
A Fragment for displaying a general-purpose map.
It provides a variety of controllers for UI, camera, markers, routes, location, and gestures, which are integrated with the map's lifecycle.
Functions
Adds a marker to the map.
Adds a new route line to the map.
Initializes the basic UI elements of the map.
Enables the location tracking feature.
Removes all markers displayed on the map.
Removes all route lines displayed on the map.
Removes a specific marker from the map.
Sets the visibility of the compass button.
Sets the map's center coordinates and camera state.
Sets a listener for map click events.
Sets a listener for map long-click events.
Sets a listener for map movement events.
Sets the map camera padding.
Sets the map's tracking mode.
Updates the current vehicle's location and bearing.
Updates the guidance instructions (e.g., arrows) for a specific route.
Updates the progress of a displayed route line.