LocationController
Controls location-specific features and properties of the map related to the location provided by the LocationEngine abstraction.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Registers OnLocationMarkerClickListener that will be notified about the click (aka tap) gesture recognized on the location marker. Both, the clicked position on the screen and the underlying location on the map, become parameters of the OnLocationMarkerClickListener.onLocationMarkerClick callback.
Disables the location marker so it becomes inactive and invisible.
Enables the location marker based on the supplied LocationMarkerOptions, replacing any existing location marker already visible. The location marker visualizes the users location on the map and can be of three types: CHEVRON: A vehicle position indicator primarily for use in turn-by-turn guidance. POINTER: A user location pointer, primarily for use in browsing or pedestrian modes. CUSTOM: A customizable model supplied by the developer.
Gets the currently set LocationEngine or returns null if none is set.
Removes the OnLocationMarkerClickListener.
Sets new LocationEngine. Location marker position is then set based on updates that are received from that engine.
Properties
Describes the latest available (last known) GeoLocation of the device. The value may be null when the LocationEngine has never updated the current location. For example, it may be be caused by invalid GPS Fix being deliver to the device.