HomeiOS DevelopmentReplace NavigationMapView for IOS SDK since NavigationMapView now not inherits from MGLMapView...

Replace NavigationMapView for IOS SDK since NavigationMapView now not inherits from MGLMapView in Swift


Making an attempt to replace Mapbox in an IOS app to SDK 2.0.0 and have found the NavigationMapView class that used to inherit from MGLMapView giving it many comfort strategies now inherits from UIView.

In consequence, numerous strategies and properties now not work together with:

 .model
 .annotations
 .addAnnotation
 .showsUserLocation
 .delegate
 .setUserTrackingMode
 .comply with
 .add
 .convert

The documentation says there’s now a NavigationMapView.mapView but it surely doesn’t have these properties both.

Does anybody know the place these properties/strategies now exist and/or how one can configure the brand new NavigationMapView that solely inherits from UIView to attract routes and so forth? Appears unlikely that the builders meant for these MGLMapView strategies to be created in NavigationMapView from scratch…

Thanks for any options.

references:

https://docs.mapbox.com/ios/navigation/api/2.0.0-beta.10/

https://docs.mapbox.com/ios/navigation/api/1.1.0/Lessons/NavigationMapView.html

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments