I'm drawing a trackoverlay and would like to set the color other than the default Blue, how do I go about that?
Thanks!!
bob
I'm drawing a trackoverlay and would like to set the color other than the default Blue, how do I go about that?
Thanks!!
bob
Bob,
There is no way to set the color of trackOverlay, the blue is the color of backgroundOverlay, you can set it by yourself, e.g. :
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.StandardColors.White);
Hope it helps,
Edgar
I set the background to:
MapControl.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.StandardColors.PaleGreen);
MapControl.Refresh();
It had no effect on the color of the trackoverlay.
Ideas?
bob
My fault Bob, I thought you wanted to set the background color, do you mean that you want to change the color of the track shape? If so, you can set the MapControl.TrackOverlay.TrackShapeLayer’s style, just like the shape file, e.g.
MapControl.TrackOverlay.TrackShapeLayer.ZoomLelveSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
MapControl.TrackOverlay.TrackShapeLayer.ZoomLelveSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Sorry for the misunderstanding.
Edgar