Real 3D 模块视图
【Navinfo Navigation SDK for iOS】提供Real3D数据视图功能,在导航过程中,遇到多车道路口选择时,模拟真实的路况信息,使用户准确的选择车道。视图提供主要是ExpendView3方法,引擎有对其封装JunctionView。使用方法参照示例:
// xml中声明Real3dView,建议放在地图map上层, <com.navinfo.navi.Real3dView android:id="@+id/real3dView" android:layout_width="match_parent" android:layout_height=" match_parent " android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:visibility="gone"/>
// 使用 Real3dView real3dView= (Real3dView) findViewById(R.id.real3dView); real3dView.addEventHandler(new Real3d.Listener() { @Override public void onReal3dEvent(int event) { switch (event){ case Real3d.Real3dEvent.DID_APPEAR: //Real3d视图已经显示 break; case Real3d.Real3dEvent.DID_DISAPPEAR: //Real3d视图已经消失 break; case Real3d.Real3dEvent.NEEDS_DISPLAY: //刷新 break; case Real3d.Real3dEvent.WILL_APPEAR: //Real3d视图即将以渐现的方式显现 break; case Real3d.Real3dEvent.WILL_DISAPPEAR: //Real3d视图即将以渐失的方式离开 break; } } });
Real 3d视图效果: