高德地图 路线规划 进来白屏 地图显示不出来
不知道定位在哪
查代码发现
naviRouteForPath:(AMapPath *)path withNaviType:(MANaviAnnotationType)type showTraffic:(BOOL)showTraffic startPoint:(AMapGeoPoint *)start endPoint:(AMapGeoPoint *)end
naviRoute.routePolylines 是空
image.jpeg
解决方案
//设置
navi.showFieldType =AMapDrivingRouteShowFieldTypePolyline|AMapDrivingRouteShowFieldTypeCost
///设置需要返回的扩展信息,默认为AMapDrivingRouteShowFieldTypeNone,只返回基础信息字段
@property (nonatomic, assign) AMapDrivingRouteShowFieldType showFieldType;
image.png