hi
I am trying to get a clear understanding of how to approach this but the picture
isnt clear yet. This as far as I can tell is the list of shapes.
// MultipolygonShape // LineBaseShape // PolygonShape // EllipseShape // RectangleShape
// GetBoundingBoxCore // RingShape // AreaBaseShape // PointShape // PointBaseShape // MultipointShape
I can create these shapes and add them to a InMemoryFeatureLayer. In fact I already do this.
After I add the shapes to the InMemoryFeatureLayer I add them to a LayerOverlay which I can go through and adjust each shapes position and rotation over time. This is funtioning so far but in trying to complete the request I have hit another wall.
I have several groups of shapes when combined represent a vehicle. The groups I have isolated in seperate InMemoryFeatureLayer's but I need to have more control over each shapes color. I also need to be able to alter the color over time to indicate an item in the group is in a different state.
It seems like this would be a snap but there are no brushes available in the basic shape. So
I am at a loss on how to do this. Each layer seems to only have global definitions to control a shapes
color. What am I missing?
inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.FillSolidBrush.Color = GeoColor.StandardColors.Yellow;
// need to be trasparent sometimes.
//inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.FillSolidBrush.Color = GeoColor.StandardColors.Transparent;
inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.OutlinePen.Color = GeoColor.StandardColors.Yellow;
inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle.OuterPen = new GeoPen(GeoColor.FromArgb(255, GeoColor.StandardColors.Black), 3);
inMemoryLayer.ZoomLevelSet.ZoomLevel10.DefaultPointStyle.SymbolPen = new GeoPen(GeoColor.FromArgb(255, GeoColor.StandardColors.Green), 2);
I recall ValueStyle being mentioned but that is tied to a data column which is something I dont have. and how to attach each of these to a shape I have no idea and how to add these to a layer? In short I am a lost in how to combine these items outside of a shp file. The idea that I have to reference a column to an item to a style to a ?? Its not clear at all in how these work together to deliver an image to the screen. I dont even understand why there has to be a static layer then an InternalMemoryLayers added to that. To me layers are just that and usually represent Z order for drawing you add polygons at will to them then translate and rotate them. Help.. Thanks