The AerisMap.framework component of the SDK supports the use of Mapbox tiles with your weather maps in place of the default Apple Map tiles in MapKit. Mapbox support does not use the complete Mapbox iOS SDK, but instead relies on their small, easy-to-use MBXMapKit that works on top of Apple’s MapKit. Once custom raster overlays are fully supported with their new vector-based iOS SDK, we plan on transitioning to supporting their new mapping framework.
AWFWeatherMapTypeMapBox, then it will fall back to using Apple's MapKit by default on iOS 6.
There are additional steps required to prepare your project to use Mapbox tiles within your weather maps:
mapboxMapIdvalue. This must be done before passing your configuration object to a weather map at instantiation. Changing the
mapboxMapIdvalue after a weather map has been initialized will not change the base tile layer:
AWFWeatherMapConfig *mapConfig = [AWFWeatherMapConfig config]; mapConfig.mapboxMapId = @"__MAP_ID__"; AWFWeatherMap *weatherMap = [AWFWeatherMap alloc] initWithMapType:AWFWeatherMapTypeMapBox config:mapConfig];
let mapConfig = AWFWeatherMapConfig() mapConfig.mapboxMapId = "__MAP_ID__" let weatherMap = AWFWeatherMap(mapType: .mapbox, config: mapConfig)
Everything else regarding how data layers, overlays and annotations are handled for MapBox-based maps will function the same as the default Apple Maps implementation.
Last modified: November 02, 2017