Map Layer
A map is made up of layers. A map can contain one or more layers. Each layer is composed of several tiles at each level, covering the entire surface of the Earth. For example, the map displayed by the user including the street, the point of interest, the school, the park, and the like is a layer. In addition, the real-time road condition is also realized through the layer.
Basemap
The basic map layer has a stepless zoom effect based on vector data, showing basic map information, including roads, streets, schools, parks, building roughs, and building models.
Live Status
[Navinfo Navigation SDK for iOS] supports real-time traffic data in sub-city, providing TMC real-time traffic data for 300+ cities, and supporting cities are constantly increasing. These real-time road conditions can also be used in navigation planning to avoid congestion, enabling real-time road-based navigation.
Show traffic information on the map, the main code is as follows:
See the MBOverlayerController.m of the SDKDemo project for the complete code. // initialize mapView @interface MBNaviController (){ // map view @property (nonatomic ,strong) MBMapView *mapView; - (void)viewDidLoad{ [super viewDidLoad]; // Real-time traffic overlay display self.mapView.enableTmc = YES; }
Real-time traffic map display effect: