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));
Some labels will be cut off if the “SuppressPartialLabels” is not set as “true”, please use the code below:
AreaStyle areaStyle = new AreaStyle(new GeoPen(GeoColor.StandardColors.Black), new GeoSolidBrush(GeoColor.StandardColors.White)); TextStyle textStyle = TextStyles.CreateMaskTextStyle("[NAME]\nHeading: [HEADING]\nSpeed: [SPEED]", new GeoFont("Arial", 8), new GeoSolidBrush(GeoColor.StandardColors.Black), areaStyle, -40, -40); textStyle.SuppressPartialLabels = true; layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(textStyle);
I think it will be better if the vehicle are rendered with “Markers”, which also can show the text. We have release a new “Starter kit”, maybe which is very simmilar to your scenario, and you can get it from gis.thinkgeo.com/Products/Ex...fault.aspx