alkingson Posted July 30, 2008 Report Share Posted July 30, 2008 Why this doesnt draw a line on a map? AnnotationArrow arrow = new AnnotationArrow(); //arrow.Color = System.Drawing.Color.AntiqueWhite;arrow.Height = 10; arrow.Width = 0;arrow.Border.Color = System.Drawing.Color.Red; arrow.Attach(20, 10);arrow.Visible = true; arrow.Link.Url = "Default.aspx?Server=Europe1";Map1.AnnotationObjectsList.Add(arrow); Quote Link to comment Share on other sites More sharing options...
Frank Posted July 30, 2008 Report Share Posted July 30, 2008 arrow.Attach(20, 10); Won't work on maps because the Map doesn't have logical X and Y axes. You need to specify a pixel location instead by setting Left and Top. Quote Link to comment Share on other sites More sharing options...
alkingson Posted July 30, 2008 Author Report Share Posted July 30, 2008 Thanks for the help. It worked. One more quesiton how do i draw arrow from one postion to another at particular angle. Left and Top will only set the the place the arrow start from. But how to i specify the end and angle of it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.