Livemap
Livemap
Type: public
class
This class represents a Livemap and allows the developer to interact with it.
LatLngAlt latLngAlt, double zoom)
centerTo(Type: public
void
Center the map on the given position and set the zoom.
Parameter Name | Type | Description |
---|---|---|
latLngAlt | LatLngAlt | coordinates |
zoom | double | new zoom level |
openEvent(int eventId)
Type: public
void
Open an event on the map. This can only be used for maps which use events.
Parameter Name | Type | Description |
---|---|---|
eventId | int | eid Event ID |
openPinpoint(int pinpointId)
Type: public
void
Open a pinpoint on the map.
Parameter Name | Type | Description |
---|---|---|
pinpointId | int | id of the pinpoint to open |
closeEvent()
Type: public
void
Close the current opened event. Go to the search view.
closePinpoint()
Type: public
void
Close the current opened pinpoint. Go to the search view.
Filters filters)
setFilters(Type: public
void
Update search filters (dates, tags, text).
Parameter Name | Type | Description |
---|---|---|
filters | Filters | filters to set |
navigateToPinpoint(int pinpointId)
Type: public
void
Start navigation to a pinpoint. The navigation will start with the user location.
Parameter Name | Type | Description |
---|---|---|
pinpointId | int | id of the destination pinpoint. |
LatLngAlt startLocation, int startHeading)
navigateToPinpoint(int pinpointId,Type: @Deprecated
public
void
Start navigation to a pinpoint. Can be an absolute navigation (start location based on phone sensors) or a relative navigation (given start location & heading). If start location and initialHeading are not provided, the navigation will start with the user location.
Parameter Name | Type | Description |
---|---|---|
pinpointId | int | id of the destination pinpoint. |
startLocation | LatLngAlt | For relative navigation only. Navigation start location |
startHeading | int | For relative navigation only. Navigation start heading (in degrees). |
stopNavigation()
Type: public
void
Stop the currently running navigation.
PinpointOpenListener listener)
addPinpointOpenListener(Type: public
void
Register a listener for the event onPinPointOpen.
Parameter Name | Type | Description |
---|---|---|
listener | PinpointOpenListener | the listener to register. |
PinpointOpenListener listener)
removePinpointOpenListener(Type: public
void
Remove a listener for the event onPinPointOpen.
Parameter Name | Type | Description |
---|---|---|
listener | PinpointOpenListener | the listener to remove |
PinpointCloseListener listener)
addPinpointCloseListener(Type: public
void
Register a listener for the event onPinpointClose.
Parameter Name | Type | Description |
---|---|---|
listener | PinpointCloseListener | the listener to register. |
PinpointCloseListener listener)
removePinpointCloseListener(Type: public
void
Remove a listener for the event onPinpointOpen.
Parameter Name | Type | Description |
---|---|---|
listener | PinpointCloseListener | the listener to remove |
EventOpenListener listener)
addEventOpenListener(Type: public
void
Register a listener for the event onEventOpen.
Parameter Name | Type | Description |
---|---|---|
listener | EventOpenListener | the listener to register. |
EventOpenListener listener)
removeEventOpenListener(Type: public
void
Remove a listener for the event onEventOpen.
Parameter Name | Type | Description |
---|---|---|
listener | EventOpenListener | the listener to remove |
EventCloseListener listener)
addEventCloseListener(Type: public
void
Register a listener for the event onEventClose.
Parameter Name | Type | Description |
---|---|---|
listener | EventCloseListener | the listener to register. |
EventCloseListener listener)
removeEventCloseListener(Type: public
void
Remove a listener for the event onEventClose.
Parameter Name | Type | Description |
---|---|---|
listener | EventCloseListener | the listener to remove |
GuidingStartedListener listener)
addGuidingStartedListener(Type: public
void
Register a listener for the event onGuidingStarted.
Parameter Name | Type | Description |
---|---|---|
listener | GuidingStartedListener | the listener to register. |
GuidingStartedListener listener)
removeGuidingStartedListener(Type: public
void
Remove a listener for the event onGuidingStarted.
Parameter Name | Type | Description |
---|---|---|
listener | GuidingStartedListener | the listener to remove |
GuidingStoppedListener listener)
addGuidingStoppedListener(Type: public
void
Register a listener for the event onGuidingStopped.
Parameter Name | Type | Description |
---|---|---|
listener | GuidingStoppedListener | the listener to register. |
GuidingStoppedListener listener)
removeGuidingStoppedListener(Type: public
void
Remove a listener for the event onGuidingStopped.
Parameter Name | Type | Description |
---|---|---|
listener | GuidingStoppedListener | the listener to remove |