Map series and included shapes
Posted: Wed Sep 12, 2007 3:37 pm
I'm trying to figure out how to draw shapes/polygons in the map series. I've looked at the example (TeeSHP.cs), but that isn't getting me anywhere. The API documentation is fine, but it doesn't help at all when I am trying to understand the general approach. Is there not any documentation other than the API documentation?
Here's the general approach I am trying. I have created a chart and a map series in the GUI designer. When my plotting window is created and shown, I read data from a file. The data consists of a list of polygon vertex points. I add those to the Map series, but when the chart is displayed, no shapes are shown.
What am I missing here?
Jon
Here's the general approach I am trying. I have created a chart and a map series in the GUI designer. When my plotting window is created and shown, I read data from a file. The data consists of a list of polygon vertex points. I add those to the Map series, but when the chart is displayed, no shapes are shown.
Code: Select all
Steema.TeeChart.Styles.Polygon poly = new Steema.TeeChart.Styles.Polygon(map1.Chart);
poly.Add(data[0], data[1]);
poly.Add(data[2], data[3]);
poly.Add(data[4], data[5]);
poly.Add(data[6], data[7]);
poly.Color = Color.FromArgb(128, 128, 128);
map1.Shapes.Add(poly);
Jon