Exemplo n.º 1
0
        /// <summary>
        /// 영역 구분선 Visibility 변경
        /// </summary>
        /// <param name="isVisible"></param>
        public void SetBordersVisibility(bool isVisible)
        {
            try
            {
                if (this.ge == null)
                {
                    FileLogManager.GetInstance().WriteLog("[GEController] SetBordersVisibility( GEPlugin is null. )");

                    throw new Exception("External Exception : GEPlugin is null.");
                }

                if (isVisible)
                {
                    ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, 1);
                }
                else
                {
                    ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, 0);
                }
            }
            catch (Exception ex)
            {
                System.Console.WriteLine("SetBordersVisibility Exception : " + ex.ToString());
                FileLogManager.GetInstance().WriteLog("[GEController] SetBordersVisibility( " + ex.ToString() + " )");
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create look at mode
        /// </summary>
        public void CreateLookAt()
        {
            KmlLookAtCoClass lookAt = ge.createLookAt("");

            lookAt.set(Latitude, Longitude, Altitude, ge.ALTITUDE_RELATIVE_TO_GROUND, 0, 0, Range);
            ge.getView().setAbstractView(lookAt);

            ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, 1);


            //create a point
            KmlPointCoClass point = ge.createPoint("");

            point.setLatitude(lookAt.getLatitude());
            point.setLongitude(lookAt.getLongitude());

            //create a placemark
            KmlPlacemarkCoClass placemark = ge.createPlacemark("");

            placemark.setName("Start Position");
            placemark.setGeometry(point);

            ge.getFeatures().appendChild(placemark);
        }
Exemplo n.º 3
0
 public void JSInitSuccessCallback_(object pluginInstance)
 {
     ge = (IGEPlugin)pluginInstance;
     ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW);
     ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, 1);
     //            ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, 1);
     panel1.Enabled = true;
 }
Exemplo n.º 4
0
        public void JSInitSuccessCallback_(object pluginInstance)
        {
            ge = (IGEPlugin)pluginInstance;
            ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW);
            btResetTilt.Visible = true;
            ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, 1);
            panel1.Enabled = true;
            Console.WriteLine("Google Earth GUI established");
            start = ge.createPlacemark("");
            finish = ge.createPlacemark("");
            t_pool = new TripPool(ge);

            loadSession();
        }