UIKit components | Mobile SDK | 2GIS Documentation
iOS SDK

UIKit components

All SDK distributions include a standard set of UI elements for map control, which you can add to the hierarchy and use to manage map parameters.

The process of creating and adding Map is described in detail in the section Creating a Map.

All the elements listed below are conveniently combined in IMapControlFactory and IRoadEventCardViewFactory.

The standard set includes:

  

  1. IndoorControl for switching floors.
  2. TrafficControl for managing traffic visibility on the map.
  3. ZoomControl for zooming in and out.
  4. CreateRoadEventControl for adding a road event.
  5. CompassControl for displaying the current map rotation angle relative to the north.
  6. CurrentLocationControl for flying to the user's current location.
  7. CreateRoadEventView for describing a new road event.
  8. RoadEventCardView for viewing road event information.

The full SDK distribution includes a set of UI elements for displaying and managing navigation. For convenience, all elements are divided into INavigationMapControlsFactory and INavigationViewControlsFactory. The method of use and addition is described in the section Turn-by-turn navigation.

The set of navigation UI elements consists of:

 

  1. ThermometerControl for displaying the traffic level on the route.
  2. NextManeuverControl for displaying information about the next maneuver.
  3. SpeedControl for displaying current speed and speed limit.
  4. TrafficAndParkingMapControl for managing the visibility of traffic and parking on the map.
  5. ZoomControl for scaling the map.
  6. CompassControl for displaying the current map rotation angle relative to the north.
  7. NavigationFollowingControl for managing tracking of the location marker.
  8. RemainingRouteInfoControl for displaying information in the Turn-by-turn mode.

  

  1. RemainingRouteInfoControl for displaying information in the Free-drive mode.
  2. RemainingRouteInfoControl for displaying information in the indoor navigation mode.
  3. IndoorControl for highlighting the floors through which the route passes.