VDS Technologies

 

How To Use EditShape

10/13/2014 9:30:29 PM
Total Posts 6

How To Use EditShape

Hello,

I try using EditShape Polygon where can produce vertex to do editing task.

My problem is I not able to see a vertex, do my coding are error?

  • Private Sub map_InfoTool(sender As Object, e As InfoToolEventArgs) Handles map.InfoTool
  • Dim rs As AspMap.Recordset = map.Identify(e.InfoPoint, 0.1)
  • If rs.Layer.LayerType = LayerType.Polygon Then
  • map.CancelEdit()
    map.MapTool = MapTool.EditShape
    map.EditShape(rs)
  • end if
  • End Sub

Anybody found a rights solutions to this matter?

Thanks you.

 

Yours Sincerely

Zack

10/14/2014 10:27:49 AM
MVP
Total Posts 323

Re: How To Use EditShape

Yes, you have to check the rs.EOF value and pass rs.Shape into EditShape as demonstrated in the ShapeEditorApp sample:

void map_InfoTool(object sender, InfoToolEventArgs e)

{

Recordset rs = map.Identify(e.InfoPoint, 10);

if (rs.EOF || rs.Layer.LayerType != LayerType.Polygon) return;

map.EditShape(rs.Shape);

}

10/14/2014 1:50:45 PM
Total Posts 6

Re: How To Use EditShape

Hello,

Thanks for your reply.

It's working perfectly as suggestions.

BTW there is any new feature tools come out for next release?

Thanks you.

Yours Sincerely

Zack