-
- All Implemented Interfaces:
-
com.telenav.map.api.ClusterMapView
public final class TnClusterMapView implements ClusterMapView
ClusterMapView is the interface for displaying map information on cluster device. It supports basic map/traffic functions, such as annotation rendering, vehicle rendering or traffic rendering.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TnClusterMapView.Companion
-
Constructor Summary
Constructors Constructor Description TnClusterMapView()
-
Method Summary
Modifier and Type Method Description Unit
initialize(ClusterMapViewParams clusterMapViewParams)
Initialize the map view with the given parameters Boolean
isFinishedLoading(Integer featureCategoryMask)
Check the engine initialization status for specified features Unit
onSurfaceCreated()
Lifecycle hooks, call this api when surface is first created. Unit
onSurfaceChanged(Integer width, Integer height)
Lifecycle hooks, call this api after any structural changes (format or size) have been made to the surface Unit
onSurfaceDestroyed()
Lifecycle hooks, call this api when a surface is being destroyed Unit
onPause()
Lifecycle hooks, call to pause the cluster view rendering Unit
onResume()
Lifecycle hooks, call to resume the cluster view rendering Unit
onDestroy()
Lifecycle hooks, call to destroy the cluster view instance Unit
setFPS(Integer fps)
Set the preferred frames-per-second for the cluster map view renderer. Unit
addMapViewListener(MapView.MapViewListener listener)
Register the mapView listener Unit
removeMapViewListener(MapView.MapViewListener listener)
Remove the mapView listener TnVehicleController
vehicleController()
TnRoutesController
routesController()
TnAnnotationsController
annotationsController()
TnCameraController
cameraController()
TnFeaturesController
featuresController()
Warning! TnShapesController
shapesController()
Warning! TnThemeController
themeController()
TnLayoutController
layoutController()
MapDiagnosis
mapDiagnosis()
-
-
Method Detail
-
initialize
Unit initialize(ClusterMapViewParams clusterMapViewParams)
Initialize the map view with the given parameters
- Parameters:
clusterMapViewParams
- ClusterMapViewParams
-
isFinishedLoading
Boolean isFinishedLoading(Integer featureCategoryMask)
Check the engine initialization status for specified features
- Parameters:
featureCategoryMask
- represents the features of the render engine that are required to be loaded(features are describe above)
-
onSurfaceCreated
Unit onSurfaceCreated()
Lifecycle hooks, call this api when surface is first created. The map will start drawing after this call
-
onSurfaceChanged
Unit onSurfaceChanged(Integer width, Integer height)
Lifecycle hooks, call this api after any structural changes (format or size) have been made to the surface
-
onSurfaceDestroyed
Unit onSurfaceDestroyed()
Lifecycle hooks, call this api when a surface is being destroyed
-
setFPS
Unit setFPS(Integer fps)
Set the preferred frames-per-second for the cluster map view renderer. Default fps is 30.
- Parameters:
fps
- the preferred frames-per-second
-
addMapViewListener
Unit addMapViewListener(MapView.MapViewListener listener)
Register the mapView listener
- Parameters:
listener
- The mapView listener {@link MapView.
-
removeMapViewListener
Unit removeMapViewListener(MapView.MapViewListener listener)
Remove the mapView listener
- Parameters:
listener
- The mapThe mapView listener {@link MapView.
-
vehicleController
TnVehicleController vehicleController()
Warning! Using Controllers before the {@link MapViewReadyListener} notification will result in a crash This method is used to return the object used to manipulate the vehicle representation for the ClusterMapView {@link VehicleController}
-
routesController
TnRoutesController routesController()
Warning! Using Controllers before the {@link MapViewReadyListener} notification will result in a crash This method is used to return the object used to manipulate routes for the ClusterMapView {@link RoutesController}
-
annotationsController
TnAnnotationsController annotationsController()
Warning! Using Controllers before the {@link MapViewReadyListener} notification will result in a crash This method is used to return the object used to manipulate annotations for the ClusterMapView {@link AnnotationsController}
-
cameraController
TnCameraController cameraController()
Warning! Using Controllers before the {@link MapViewReadyListener} notification will result in a crash This method is used to return the object used to manipulate the point of focus for the ClusterMapView {@link CameraController}
-
featuresController
TnFeaturesController featuresController()
Warning! Using Controllers before the {@link MapViewReadyListener} notification will result in a crash This method is used to return the object used to manipulate renderable features for the ClusterMapView {@link FeaturesController}
-
shapesController
TnShapesController shapesController()
Warning! Using Controllers before the {@link MapViewReadyListener} notification will result in a crash This method is used to return the object used to manipulate API-fed shape data for rendering on the ClusterMapView {@link ShapesController}
-
themeController
TnThemeController themeController()
Warning! Using Controllers before the {@link MapViewReadyListener} notification will result in a crash This method is used to return the object used to manipulate the ClusterMapView theme {@link ThemeController}
-
layoutController
TnLayoutController layoutController()
Warning! Using Controllers before the {@link MapViewReadyListener} notification will result in a crash This method is used to return the object used to manipulate the layout of the ClusterMapView {@link LayoutController}
-
mapDiagnosis
MapDiagnosis mapDiagnosis()
This method is used to return the object used to diagnose ClusterMapView
-
-
-
-