Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

MAP SCHEMES

You can set up the way the map will be rendered on screen using NMMapView's loadMapScheme: method which takes the name of a map color colour scheme as the parameter. To get full list of all available map color colour schemes use availableMapSchemes readonly property.

Code Block
languagecpp
themeEclipse
//logs out all available map schemes names
NSArray <NSString *> *mapSchemes = [mapView availableMapSchemes];
for (NSString *scheme in mapSchemes) {
	NSLog(@"%@", scheme);
}
//set current map color scheme to "Day-Pedesrian@2x"
[mapView loadMapScheme:@"Day-Pedestrian@2x"];


DAY/NIGHT MAP VIEW

NavmiiSDK automatically detect day/night changes using current coordinates and time. You can implement NMDayNightChangeListener to be able to react to these changes. Use availableMapSchemes property and loadMapScheme: method of NMMapView to set the appropriate map colour scheme. Use isInDayMode property of NMMapView to get the current value of day/night detector.


ROUTE LINE COLOR

You also can set up the color the route line will be rendered with using routeLineColor property.

Code Block
languagecpp
themeEclipse
//sets route line color to red
mapView.routeLineColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:1.f];