Jump to content
Software FX Community
alkingson

Maps line drawing

Recommended Posts

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);

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...