I am displaying a vehicle moving on a map and am having display issues with the feature text of the vehicle. I am using the code below to generate a custom text style but as the map refreshes, which is done via and open layers redraw method the text seems to get cutoff randomly, etc. I have attached some screen shots as well. The vehicle layers are the top level layers so I don't believe that is what is causing it. Any ideas on this one?
AreaStyle areaStyle = new AreaStyle(new GeoPen(GeoColor.StandardColors.Black), new GeoSolidBrush(GeoColor.StandardColors.White));
layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(TextStyles.CreateMaskTextStyle("[NAME]\nHeading: [HEADING]\nSpeed: [SPEED]", new GeoFont("Arial", 8), new GeoSolidBrush(GeoColor.StandardColors.Black), areaStyle, -40, -40));
Thanks.
Curtis