Package 

Class TnClusterMapView

  • 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.

    • Constructor Detail

      • TnClusterMapView

        TnClusterMapView()
    • Method Detail

      • initialize

         Unit initialize(ClusterMapViewParams clusterMapViewParams)

        Initialize the map view with the given parameters

        Parameters:
        clusterMapViewParams - ClusterMapViewParams
      • 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

      • onPause

         Unit onPause()

        Lifecycle hooks, call to pause the cluster view rendering

      • onResume

         Unit onResume()

        Lifecycle hooks, call to resume the cluster view rendering

      • onDestroy

         Unit onDestroy()

        Lifecycle hooks, call to destroy the cluster view instance

      • 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
      • 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