Location:

Real 3D Module View

[Navinfo Navigation SDK for iOS] provides Real 3D data view function. In the navigation process, when encountering multi-vehicle road port selection, simulate real road condition information, so that users can select the lane accurately. The view provides mainly the ExpendView3 method, and the engine has a JunctionView on it. Refer to the example of how to use it:

                    // declare Real3dView in xml, it is recommended to be placed on the top of the 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"/>
                    
// use 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 view is already displayed break; case Real3d.Real3dEvent.DID_DISAPPEAR: //Real3d view has disappeared break; case Real3d.Real3dEvent.NEEDS_DISPLAY: //Refresh break; case Real3d.Real3dEvent.WILL_APPEAR: //Real3d view will appear in a gradual way break; case Real3d.Real3dEvent.WILL_DISAPPEAR: //Real3d view is about to leave in a lossless way break; } } });

Real 3d view effect:

Real 3d视图效果
TOP