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!
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!
Comment