map series clear method
Posted: Thu Jun 04, 2009 11:00 am
I'm trying to clear my map series.
I've tested all this methods but noone works fine:
the map series seems to be clear when you take a look to the TChart1 properties. But when you add new polygons the old series on Map2 will appear again.
I've read this topic but it doesn't works
http://www.teechart.net/support/viewtop ... ries+clear
Here an simple example about what is happening in my application:
I have this Map1 series witch I represents a warehouse:
then I click on the first polygon and I can see this:
I've added only one polygon to the Map2 series, its color is yellow like you can see in the picture.
well, I go back to the first screen by using this code:
I do click on the second polygon and I see this:
How I can delete this old polygon?
Thanks in advance.
I've tested all this methods but noone works fine:
Code: Select all
Map2.Dispose()
TChart1.Series(1).Dispose()
Map2.SeriesData.Remove(0, 1)
TChart1.Series(1).Clear()
Map2.Shapes.Clear()
I've read this topic but it doesn't works
http://www.teechart.net/support/viewtop ... ries+clear
Here an simple example about what is happening in my application:
I have this Map1 series witch I represents a warehouse:
then I click on the first polygon and I can see this:
I've added only one polygon to the Map2 series, its color is yellow like you can see in the picture.
well, I go back to the first screen by using this code:
Code: Select all
map1.visible = true
map2.visible = false
' here I use the methods that I wrote at the begining of this topic
How I can delete this old polygon?
Thanks in advance.