Esempio n. 1
0
 /// <summary>
 /// 刷新
 /// </summary>
 public void Update()
 {
     globeGraphicsLayer.UpdateElementByIndex(this.index);
     if (this.BelongLayer != null)
     {
         this.BelongLayer.Refresh();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 刷新
 /// </summary>
 public void Update()
 {
     this.Dosomething((Action) delegate()
     {
         graphicsLayer.UpdateElementByIndex(index);
         layer.Refresh();
     }, true);
 }
Esempio n. 3
0
 /// <summary>
 /// 刷新
 /// </summary>
 public void Update()
 {
     this.Dosomething((Action) delegate()
     {
         graphicsLayer.UpdateElementByIndex(index);
         base.Update();
         if (this.layer != null)
         {
             this.layer.Refresh();
         }
     }, true);
 }
Esempio n. 4
0
        /// <summary>
        /// 更新位置
        /// </summary>
        /// <param name="lnglat">坐标</param>
        public void UpdatePosition(MapLngLat _lnglat)
        {
            this.Dosomething((Action) delegate()
            {
                IPoint point = new PointClass();
                point.PutCoords(_lnglat.Lng, _lnglat.Lat);
                point.Z = _lnglat.Alt;
                (point as IZAware).ZAware = true;
                base.Geometry             = point;
                graphicLayer.UpdateElementByIndex(index);   // 刷新图元
            }, true);

            this.lngLat = _lnglat;
        }
Esempio n. 5
0
 /// <summary>
 /// 刷新
 /// </summary>
 public void Update()
 {
     graphicsLayer.UpdateElementByIndex(index);
     layer.Refresh();
 }