示例#1
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     ARView = arView = SetContentView();
     arView.GeoViewTapped         += ARView_GeoViewTapped;
     ARView.PlanesDetectedChanged += ARView_PlanesDetectedChanged;
 }
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.Initialize();
     SetContentView(Resource.Layout.main);
     trackingStatus                     = FindViewById <TextView>(Resource.Id.trackingStatus);
     arSceneView                        = FindViewById <Esri.ArcGISRuntime.ARToolkit.ARSceneView>(Resource.Id.sceneView1);
     arSceneView.OriginCamera           = new Camera(27.988056, 86.925278, 0, 0, 90, 0);
     arSceneView.TranslationFactor      = 10000; //1m device movement == 10km
     arSceneView.PlanesDetectedChanged += ArSceneView_PlanesDetectedChanged;
     arSceneView.GeoViewDoubleTapped   += ArSceneView_GeoViewDoubleTapped;
 }