Class LocationComponent
RenderMode.NORMAL simply shows the users location on the map
represented as a dot. RenderMode.COMPASS mode allows you to display an arrow icon
(by default) that points in the direction the device is pointing in.
RenderMode.GPS can be used in conjunction with our Navigation SDK to
display a larger icon (customized with LocationComponentOptions.gpsDrawable()) we call the user puck.
This component also offers the ability to set a map camera behavior for tracking the user
location. These different CameraModes will track, stop tracking the location based on the
mode set with setCameraMode(int).
To get the component object use TrimbleMapsMap.getLocationComponent() and activate it with
activateLocationComponent(LocationComponentActivationOptions).
Then, manage its visibility with setLocationComponentEnabled(boolean).
The component will not process location updates right after activation, but only after being enabled.
Using this component requires you to request permission beforehand manually or using
PermissionsManager. Either
ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permissions can be requested for
this component to work as expected.
This component offers a default, built-in LocationEngine called
TrimbleMapsFusedLocationEngineImpl.
If you'd like to utilize the previously available Google Play Services for more precise location updates,
refer to the migration guide of 10.0.0 in the changelog.
After a custom engine is passed to the component, or the built-in is initialized,
the location updates are going to be requested with the LocationEngineRequest, either a default one,
or the one passed during the activation.
When using any engine, requesting/removing the location updates is going to be managed internally.
You can also push location updates to the component without any internal engine management.
To achieve that, set `useDefaultLocationEngine` in LocationComponentActivationOptions to false.
No engine is going to be initialized and you can push location updates with forceLocationUpdate(Location).
For location puck animation purposes, like navigation, we recommend limiting the maximum zoom level of the map for the best user experience.
Location Component doesn't support state saving out-of-the-box.
-
Constructor Summary
ConstructorsConstructorDescriptionLocationComponent(TrimbleMapsMap trimbleMapsMap, Transform transform, List<TrimbleMapsMap.OnDeveloperAnimationListener> developerAnimationListeners) Internal use. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateLocationComponent(LocationComponentActivationOptions activationOptions) This method initializes the component and needs to be called before any other operations are performed.voidAdds a listener that gets invoked when camera tracking state changes.voidAdds a listener that gets invoked when indicator position changes.voidAdds a listener that gets invoked when the user clicks the displayed location.voidAdds a listener that gets invoked when the user long clicks the displayed location.voidAdds the passed listener that gets invoked when user updates have stopped long enough for the last update to be considered stale.voidAdds a listener that gets invoked when render mode changes.voidapplyStyle(android.content.Context context, int styleRes) Apply a new component style with a style resource.voidapplyStyle(LocationComponentOptions options) Apply a new component style with location component options.voidCancels animation started bypaddingWhileTracking(double[], long, TrimbleMapsMap.CancelableCallback).voidCancels animation started bytiltWhileTracking(double, long, TrimbleMapsMap.CancelableCallback).voidCancels animation started byzoomWhileTracking(double, long, TrimbleMapsMap.CancelableCallback).voidforceLocationUpdate(android.location.Location location) Use to either force a location update or to manually control when the user location gets updated.voidforceLocationUpdate(LocationUpdate locationUpdate) voidforceLocationUpdate(List<android.location.Location> locations, boolean lookAheadUpdate) Use to either force a location update or to manually control when the user location gets updated.intProvides the current camera mode being used to track the location or compass updates.Returns the compass engine used to provide compass heading values.android.location.LocationGet the last know location of the location component.Returns the current location options being used.com.trimblemaps.android.core.location.LocationEngineReturns the currentLocationEnginebeing used for updating the user location.com.trimblemaps.android.core.location.LocationEngineRequestGet the location request that's going to be used when requesting location updates.intProvides the current render mode being used to show the location and/or compass updates on the map.booleanReturns whether the location component is activated.booleanReturns whether the plugin is enabled, meaning that location can be displayed and camera modes can be used.voidInternal use.voidInternal use.voidonStart()Internal use.voidInternal use.voidonStop()Internal use.voidpaddingWhileTracking(double[] padding) Sets the padding.voidpaddingWhileTracking(double[] padding, long animationDuration) Sets the padding.voidpaddingWhileTracking(double[] padding, long animationDuration, TrimbleMapsMap.CancelableCallback callback) Sets the padding.voidRemoves a listener that gets invoked when camera tracking state changes.voidRemoves a listener that gets invoked when indicator position changes.voidRemoves the passed listener from the current list of location click listeners.voidRemoves the passed listener from the current list of location long click listeners.voidRemoves the passed listener from the current list of stale listeners.voidRemoves a listener that gets invoked when render mode changes.voidsetCameraMode(int cameraMode) Sets the camera mode, which determines how the map camera will track the rendered location.voidsetCameraMode(int cameraMode, long transitionDuration, Double zoom, Double bearing, Double tilt, OnLocationCameraTransitionListener transitionListener) Sets the camera mode, which determines how the map camera will track the rendered location.voidsetCameraMode(int cameraMode, OnLocationCameraTransitionListener transitionListener) Sets the camera mode, which determines how the map camera will track the rendered location.voidsetCompassEngine(CompassEngine compassEngine) Sets the compass engine used to provide compass heading values.voidsetLocationComponentEnabled(boolean isEnabled) Manage component's visibility after activation.voidsetLocationEngine(com.trimblemaps.android.core.location.LocationEngine locationEngine) Set the location engine to update the current user location.voidsetLocationEngineRequest(com.trimblemaps.android.core.location.LocationEngineRequest locationEngineRequest) Set the location request that's going to be used when requesting location updates.voidsetMaxAnimationFps(int maxAnimationFps) Set max FPS at which location animators can output updates.voidsetRenderMode(int renderMode) Sets the render mode, which determines how the location updates will be rendered on the map.voidtiltWhileTracking(double tilt) Tilts the camera.voidtiltWhileTracking(double tilt, long animationDuration) Tilts the camera.voidtiltWhileTracking(double tilt, long animationDuration, TrimbleMapsMap.CancelableCallback callback) Tilts the camera.voidzoomWhileTracking(double zoomLevel) Zooms to the desired zoom level.voidzoomWhileTracking(double zoomLevel, long animationDuration) Zooms to the desired zoom level.voidzoomWhileTracking(double zoomLevel, long animationDuration, TrimbleMapsMap.CancelableCallback callback) Zooms to the desired zoom level.
-
Constructor Details
-
LocationComponent
public LocationComponent(@NonNull TrimbleMapsMap trimbleMapsMap, @NonNull Transform transform, @NonNull List<TrimbleMapsMap.OnDeveloperAnimationListener> developerAnimationListeners) Internal use.To get the component object use
TrimbleMapsMap.getLocationComponent().
-
-
Method Details
-
activateLocationComponent
public void activateLocationComponent(@NonNull LocationComponentActivationOptions activationOptions) This method initializes the component and needs to be called before any other operations are performed. Afterwards, you can manage component's visibility bysetLocationComponentEnabled(boolean).- Parameters:
activationOptions- a fully builtLocationComponentActivationOptionsobject
-
setLocationComponentEnabled
@RequiresPermission(anyOf={"android.permission.ACCESS_FINE_LOCATION","android.permission.ACCESS_COARSE_LOCATION"}) public void setLocationComponentEnabled(boolean isEnabled) Manage component's visibility after activation.- Parameters:
isEnabled- true if the plugin should be visible and listen for location updates, false otherwise.
-
isLocationComponentEnabled
public boolean isLocationComponentEnabled()Returns whether the plugin is enabled, meaning that location can be displayed and camera modes can be used.- Returns:
- true if the plugin is enabled, false otherwise
-
setCameraMode
public void setCameraMode(int cameraMode) Sets the camera mode, which determines how the map camera will track the rendered location.When camera is transitioning to a new mode, it will reject inputs like
zoomWhileTracking(double)ortiltWhileTracking(double). UseOnLocationCameraTransitionListenerto listen for the transition state.CameraMode.NONE: No camera trackingCameraMode.NONE_COMPASS: Camera does not track location, but does track compass bearingCameraMode.NONE_GPS: Camera does not track location, but does track GPS bearingCameraMode.TRACKING: Camera tracks the user locationCameraMode.TRACKING_COMPASS: Camera tracks the user location, with bearing provided by a compassCameraMode.TRACKING_GPS: Camera tracks the user location, with normalized bearingCameraMode.TRACKING_GPS_NORTH: Camera tracks the user location, with bearing always set to north
- Parameters:
cameraMode- one of the modes found inCameraMode
-
setCameraMode
public void setCameraMode(int cameraMode, @Nullable OnLocationCameraTransitionListener transitionListener) Sets the camera mode, which determines how the map camera will track the rendered location.When camera is transitioning to a new mode, it will reject inputs like
zoomWhileTracking(double)ortiltWhileTracking(double). UseOnLocationCameraTransitionListenerto listen for the transition state.CameraMode.NONE: No camera trackingCameraMode.NONE_COMPASS: Camera does not track location, but does track compass bearingCameraMode.NONE_GPS: Camera does not track location, but does track GPS bearingCameraMode.TRACKING: Camera tracks the user locationCameraMode.TRACKING_COMPASS: Camera tracks the user location, with bearing provided by a compassCameraMode.TRACKING_GPS: Camera tracks the user location, with normalized bearingCameraMode.TRACKING_GPS_NORTH: Camera tracks the user location, with bearing always set to north
- Parameters:
cameraMode- one of the modes found inCameraModetransitionListener- callback that's going to be invoked when the transition animation finishes
-
setCameraMode
public void setCameraMode(int cameraMode, long transitionDuration, @Nullable Double zoom, @Nullable Double bearing, @Nullable Double tilt, @Nullable OnLocationCameraTransitionListener transitionListener) Sets the camera mode, which determines how the map camera will track the rendered location.When camera is transitioning to a new mode, it will reject inputs like
zoomWhileTracking(double)ortiltWhileTracking(double). UseOnLocationCameraTransitionListenerto listen for the transition state.Set values of zoom, bearing and tilt that the camera will transition to. If null is passed to any of those, current value will be used for that parameter instead. If the camera is already tracking, provided values are ignored.
CameraMode.NONE: No camera trackingCameraMode.NONE_COMPASS: Camera does not track location, but does track compass bearingCameraMode.NONE_GPS: Camera does not track location, but does track GPS bearingCameraMode.TRACKING: Camera tracks the user locationCameraMode.TRACKING_COMPASS: Camera tracks the user location, with bearing provided by a compassCameraMode.TRACKING_GPS: Camera tracks the user location, with normalized bearingCameraMode.TRACKING_GPS_NORTH: Camera tracks the user location, with bearing always set to north
- Parameters:
cameraMode- one of the modes found inCameraModetransitionDuration- duration of the transition in millisecondszoom- target zoom, set to null to use current camera positionbearing- target bearing, set to null to use current camera positiontilt- target tilt, set to null to use current camera positiontransitionListener- callback that's going to be invoked when the transition animation finishes
-
getCameraMode
public int getCameraMode()Provides the current camera mode being used to track the location or compass updates.- Returns:
- the current camera mode
-
setRenderMode
public void setRenderMode(int renderMode) Sets the render mode, which determines how the location updates will be rendered on the map.RenderMode.NORMAL: Shows user location, bearing ignoredRenderMode.COMPASS: Shows user location with bearing considered from compassRenderMode.GPS: Shows user location with bearing considered from location
- Parameters:
renderMode- one of the modes found inRenderMode
-
getRenderMode
public int getRenderMode()Provides the current render mode being used to show the location and/or compass updates on the map.- Returns:
- the current render mode
-
getLocationComponentOptions
Returns the current location options being used.- Returns:
- the current
LocationComponentOptions
-
applyStyle
public void applyStyle(@NonNull android.content.Context context, @StyleRes int styleRes) Apply a new component style with a style resource.- Parameters:
styleRes- a XML style overriding some or all the options
-
applyStyle
Apply a new component style with location component options.- Parameters:
options- to update the current style
-
zoomWhileTracking
public void zoomWhileTracking(double zoomLevel, long animationDuration, @Nullable TrimbleMapsMap.CancelableCallback callback) Zooms to the desired zoom level. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the zoom change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the zoom as a camera change argument.- Parameters:
zoomLevel- The desired zoom level.animationDuration- The zoom animation duration.callback- The callback with finish/cancel information
-
zoomWhileTracking
public void zoomWhileTracking(double zoomLevel, long animationDuration) Zooms to the desired zoom level. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the zoom change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the zoom as a camera change argument.- Parameters:
zoomLevel- The desired zoom level.animationDuration- The zoom animation duration.
-
zoomWhileTracking
public void zoomWhileTracking(double zoomLevel) Zooms to the desired zoom level. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the zoom change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the zoom as a camera change argument.- Parameters:
zoomLevel- The desired zoom level.
-
cancelZoomWhileTrackingAnimation
public void cancelZoomWhileTrackingAnimation()Cancels animation started byzoomWhileTracking(double, long, TrimbleMapsMap.CancelableCallback). -
paddingWhileTracking
public void paddingWhileTracking(double[] padding) Sets the padding. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the padding change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the padding as a camera change argument.- Parameters:
padding- The desired padding.
-
paddingWhileTracking
public void paddingWhileTracking(double[] padding, long animationDuration) Sets the padding. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the padding change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the padding as a camera change argument.- Parameters:
padding- The desired padding.animationDuration- The padding animation duration.
-
paddingWhileTracking
public void paddingWhileTracking(double[] padding, long animationDuration, @Nullable TrimbleMapsMap.CancelableCallback callback) Sets the padding. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the padding change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the padding as a camera change argument.- Parameters:
padding- The desired padding.animationDuration- The padding animation duration.callback- The callback with finish/cancel information
-
cancelPaddingWhileTrackingAnimation
public void cancelPaddingWhileTrackingAnimation()Cancels animation started bypaddingWhileTracking(double[], long, TrimbleMapsMap.CancelableCallback). -
tiltWhileTracking
public void tiltWhileTracking(double tilt, long animationDuration, @Nullable TrimbleMapsMap.CancelableCallback callback) Tilts the camera. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the tilt change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the tilt as a camera change argument.- Parameters:
tilt- The desired camera tilt.animationDuration- The tilt animation duration.callback- The callback with finish/cancel information
-
tiltWhileTracking
public void tiltWhileTracking(double tilt, long animationDuration) Tilts the camera. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the tilt change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the tilt as a camera change argument.- Parameters:
tilt- The desired camera tilt.animationDuration- The tilt animation duration.
-
tiltWhileTracking
public void tiltWhileTracking(double tilt) Tilts the camera. This API can only be used in pair with camera modes other thanCameraMode.NONE. If you are not using any ofCameraModemodes, use one ofTrimbleMapsMap.moveCamera(CameraUpdate),TrimbleMapsMap.easeCamera(CameraUpdate)orTrimbleMapsMap.animateCamera(CameraUpdate)instead.If the camera is transitioning when the tilt change is requested, the call is going to be ignored. Use
LocationComponent.CameraTransitionListenerto chain the animations, or provide the tilt as a camera change argument.- Parameters:
tilt- The desired camera tilt.
-
cancelTiltWhileTrackingAnimation
public void cancelTiltWhileTrackingAnimation()Cancels animation started bytiltWhileTracking(double, long, TrimbleMapsMap.CancelableCallback). -
forceLocationUpdate
public void forceLocationUpdate(@Nullable android.location.Location location) Use to either force a location update or to manually control when the user location gets updated.- Parameters:
location- where the location icon is placed on the map
-
forceLocationUpdate
-
forceLocationUpdate
public void forceLocationUpdate(@Nullable List<android.location.Location> locations, boolean lookAheadUpdate) Use to either force a location update or to manually control when the user location gets updated.This method can be used to provide the list of locations where the last one is the target location and the rest are intermediate points used as the animation path. The puck and the camera will be animated between each of the points linearly until reaching the target.
- Parameters:
locations- where the location icon is placed on the maplookAheadUpdate- If set to true, the last location's timestamp has to be greater than current timestamp and should represent the time at which the animation should actually reach this position, cutting out the time interpolation delay.
-
setMaxAnimationFps
public void setMaxAnimationFps(int maxAnimationFps) Set max FPS at which location animators can output updates. The throttling will only impact the location puck and camera tracking smooth animations.Setting this will not impact any other animations schedule with
TrimbleMapsMap, gesture animations orzoomWhileTracking(double)/tiltWhileTracking(double).Use this setting to limit animation rate of the location puck on higher zoom levels to decrease the stress on the device's CPU which can directly improve battery life, without sacrificing UX.
Example usage:
TrimbleMapsMap.addOnCameraIdleListener(new TrimbleMapsMap.OnCameraIdleListener() { {@literal @}Override public void onCameraIdle() { double zoom = TrimbleMapsMap.getCameraPosition().zoom; int maxAnimationFps; if (zoom < 5) { maxAnimationFps = 3; } else if (zoom < 10) { maxAnimationFps = 5; } else if (zoom < 15) { maxAnimationFps = 7; } else if (zoom < 18) { maxAnimationFps = 15; } else { maxAnimationFps = Integer.MAX_VALUE; } locationComponent.setMaxAnimationFps(maxAnimationFps); } });If you're looking for a way to throttle the FPS of the whole map, including other animations and gestures, see
MapView.setMaximumFps(int).- Parameters:
maxAnimationFps- max location animation FPS
-
setLocationEngine
public void setLocationEngine(@Nullable com.trimblemaps.android.core.location.LocationEngine locationEngine) Set the location engine to update the current user location.If
nullis passed in, all updates will have to occur through theforceLocationUpdate(Location)method.- Parameters:
locationEngine- aLocationEnginethis component should use to handle updates
-
setLocationEngineRequest
public void setLocationEngineRequest(@NonNull com.trimblemaps.android.core.location.LocationEngineRequest locationEngineRequest) Set the location request that's going to be used when requesting location updates.- Parameters:
locationEngineRequest- the location request
-
getLocationEngineRequest
@NonNull public com.trimblemaps.android.core.location.LocationEngineRequest getLocationEngineRequest()Get the location request that's going to be used when requesting location updates. -
getLocationEngine
@Nullable public com.trimblemaps.android.core.location.LocationEngine getLocationEngine()Returns the currentLocationEnginebeing used for updating the user location.- Returns:
- the
LocationEnginebeing used to update the user location
-
setCompassEngine
Sets the compass engine used to provide compass heading values.- Parameters:
compassEngine- to be used
-
getCompassEngine
Returns the compass engine used to provide compass heading values.- Returns:
- compass engine currently being used
-
getLastKnownLocation
@Nullable public android.location.Location getLastKnownLocation()Get the last know location of the location component.- Returns:
- the last known location
-
addOnLocationClickListener
Adds a listener that gets invoked when the user clicks the displayed location.If there are registered location click listeners and the location is clicked, only
OnLocationClickListener.onLocationComponentClick()is going to be delivered,TrimbleMapsMap.OnMapClickListener.onMapClick(LatLng)is going to be consumed and not pushed to the listeners registered after the component's activation.- Parameters:
listener- The location click listener that is invoked when the location is clicked
-
removeOnLocationClickListener
Removes the passed listener from the current list of location click listeners.- Parameters:
listener- to be removed
-
addOnLocationLongClickListener
Adds a listener that gets invoked when the user long clicks the displayed location.If there are registered location long click listeners and the location is long clicked, only
OnLocationLongClickListener.onLocationComponentLongClick()is going to be delivered,TrimbleMapsMap.OnMapLongClickListener.onMapLongClick(LatLng)is going to be consumed and not pushed to the listeners registered after the component's activation.- Parameters:
listener- The location click listener that is invoked when the location is clicked
-
removeOnLocationLongClickListener
Removes the passed listener from the current list of location long click listeners.- Parameters:
listener- to be removed
-
addOnCameraTrackingChangedListener
Adds a listener that gets invoked when camera tracking state changes.- Parameters:
listener- Listener that gets invoked when camera tracking state changes.
-
removeOnCameraTrackingChangedListener
public void removeOnCameraTrackingChangedListener(@NonNull OnCameraTrackingChangedListener listener) Removes a listener that gets invoked when camera tracking state changes.- Parameters:
listener- Listener that gets invoked when camera tracking state changes.
-
addOnRenderModeChangedListener
Adds a listener that gets invoked when render mode changes.- Parameters:
listener- Listener that gets invoked when render mode changes.
-
removeRenderModeChangedListener
Removes a listener that gets invoked when render mode changes.- Parameters:
listener- Listener that gets invoked when render mode changes.
-
addOnLocationStaleListener
Adds the passed listener that gets invoked when user updates have stopped long enough for the last update to be considered stale.This timeout is set by
LocationComponentOptions.staleStateTimeout().- Parameters:
listener- invoked when last update is considered stale
-
removeOnLocationStaleListener
Removes the passed listener from the current list of stale listeners.- Parameters:
listener- to be removed from the list
-
addOnIndicatorPositionChangedListener
public void addOnIndicatorPositionChangedListener(@NonNull OnIndicatorPositionChangedListener listener) Adds a listener that gets invoked when indicator position changes.- Parameters:
listener- Listener that gets invoked when indicator position changes
-
removeOnIndicatorPositionChangedListener
public void removeOnIndicatorPositionChangedListener(@NonNull OnIndicatorPositionChangedListener listener) Removes a listener that gets invoked when indicator position changes.- Parameters:
listener- Listener that gets invoked when indicator position changes.
-
onStart
public void onStart()Internal use. -
onStop
public void onStop()Internal use. -
onDestroy
public void onDestroy()Internal use. -
onStartLoadingMap
public void onStartLoadingMap()Internal use. -
onFinishLoadingStyle
public void onFinishLoadingStyle()Internal use. -
isLocationComponentActivated
public boolean isLocationComponentActivated()Returns whether the location component is activated.- Returns:
- true if the component is activated, false otherwise
-