public abstract class MapAdapter extends Object
Constructor and Description |
---|
MapAdapter() |
Modifier and Type | Method and Description |
---|---|
abstract MapTrip |
addTrip(Trip trip)
Adds the trip to the map.
|
abstract void |
addTripFilter(Predicate<Trip> filter)
Adds condition for trips filtering.
|
abstract void |
destroy()
Destroys the adapter and clears all links.
|
abstract void |
moveToLocation(HTLatLng latLng)
Moves the camera from the current position to the position of latLng.
|
abstract void |
moveToTrip(Trip trip)
Moves the camera from the current position to object's coordinates defined in the trip,
by combining trip objects that transforms the camera such that the
specified latitude/longitude bounds are centered on screen at the greatest possible zoom level.
|
abstract void |
notifyDataSetChanged()
Notify any registered observers that the data set has changed.
|
abstract void |
setCameraFixedEnabled(boolean b)
Fix or reset camera on map objects.
|
abstract void |
setMyLocationEnabled(boolean b)
Enables and disables displaying and updating of my location.
|
abstract void |
updateMyLocation(android.location.Location location)
Updates the location on the map.
|
public abstract void setMyLocationEnabled(boolean b)
b
- true if should be enabled, false otherwise.public abstract void setCameraFixedEnabled(boolean b)
b
- true if camera should be fixed, false otherwise.public abstract void moveToLocation(HTLatLng latLng)
latLng
- HTLatLng
coordinates of new camera position.public abstract void moveToTrip(Trip trip)
trip
- data that includes trip objects with coordinates.public abstract void updateMyLocation(android.location.Location location)
location
- data that should be updated.public abstract void addTripFilter(Predicate<Trip> filter)
filter
- predicate with condition.public abstract MapTrip addTrip(Trip trip)
trip
- data that should be added.MapTrip
that linked with given trip.public abstract void notifyDataSetChanged()
public abstract void destroy()