Exemplo n.º 1
0
 /// <summary>
 /// 定位查询获得的第一个图斑
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void _attributeForm_FeatureLocation(object sender, FeatureLocationEventArgs e)
 {
     SwitchView?.Invoke(new[] { EViewActionType.MainMap });
     if (e.LayerIndex < MapControl.LayerCount && e.LayerIndex > -1)
     {
         var layer = MapControl.get_Layer(e.LayerIndex);
         if (layer is IFeatureLayer featureLayer && featureLayer.Name == e.LayerName)
         {
             MapControl.MapZoomToAndSelectFirst(featureLayer, e.WhereClause);
         }
     }
 }
Exemplo n.º 2
0
 private void _attributeForm_FeatureLocation(object sender, FeatureLocationEventArgs e)//定位查询获得的第一个图斑
 {
     LocationFirstFeature(e.LocationLayer, e.WhereClause);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 定位查询获得的第一个图斑
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void _attributeForm_FeatureLocation(object sender, FeatureLocationEventArgs e)
 {
     SwitchView?.Invoke(new[] { EViewActionType.MainMap });
     MapControl.MapZoomToAndSelectFirst(e.LocationLayer, e.WhereClause);
 }