add draw 3dmodel

This commit is contained in:
lixiaopeng
2021-04-01 19:50:09 +08:00
parent 54feb71b4e
commit 618597d2bf
7 changed files with 133 additions and 80 deletions

View File

@@ -280,7 +280,7 @@ public class AMapWrapper implements IMogoMap {
public float getRoadWidth(double lon, double lat, float angle, boolean isGpsLocation, boolean isRTK) {
SinglePointRoadInfo singlePointRoadInfo = MapDataApi.INSTANCE.getSinglePointMatchRoad(lon, lat, angle, isGpsLocation, isRTK);
return singlePointRoadInfo.getLaneWidth();
return singlePointRoadInfo != null ? singlePointRoadInfo.getLaneWidth() : 0;
}
private Context getContext() {