Announcement

Collapse
No announcement yet.

How Do You Remove Previously Drawn Measure Tool Layer

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How Do You Remove Previously Drawn Measure Tool Layer

    Hi,

    I've searched around and can't seem to find the answer to my question.

    I've created a program that allows a user to draw on the map using Measure Tool. When the user draws on the map the coordinates of the path are saved to a list. When the user opens the map a new instance of WorldWindowGLCanvas is created and populated with the saved list. Everything works great besides the fact that for some reason the map is not clearing the previously drawn example. In addition, the drawings get connected. In the example below I drew a line on the east coast followed by one on the west coast. The lines get joined.

    I'm guessing it's something as simple as clearing a layer. I've tried clearing Measure Tool and Globe layers and it doesn't remove the drawing. I've attached pictures of what is occurring. Can someone please help me?

    Thank you in advance!
    Last edited by notorious200164; 02-19-2018, 10:07 PM.

  • #2
    I figured it out. Forgot to clear list of lat and lon points. Thanks for all the replies though.

    Cheers.

    Comment

    Working...
    X