Hi
I have noticed an issue when labeling using a textstyle.
The rendering of the page after moving around cuts off the text.
I am using the following style code
List<AssayAnalyteColourRange> colors = _colourRanges.OrderBy(i => i.Low).ToList();
var classBreakStyle =
new
ClassBreakStyle(
"ResultsData"
);
// Set up the first style
var firstStyles =
new
Collection<Style>();
firstStyles.Add(PointStyles.CreateSimpleCircleStyle(
new
GeoColor(100, GeoColor.SimpleColors.Black),
10));
if
(ShowNames) firstStyles.Add( TextStyles.CreateSimpleTextStyle(
"Name"
,
"Arial"
, 9, DrawingFontStyles.Regular, GeoColor.StandardColors.Black, GeoColor.StandardColors.White, 2, 0, 0));
// Must start at double.MinValue
classBreakStyle.ClassBreaks.Add(
new
ClassBreak(
double
.MinValue, firstStyles));
for
(
int
i = 0; i < colors.Count - 1; i++)
{
var styles =
new
Collection<Style>();
styles.Add(PointStyles.CreateSimpleCircleStyle(ConvertToGeoColor(colors<i>.Color), 10));
if
(ShowNames) styles.Add(TextStyles.CreateSimpleTextStyle(
"Name"
,
"Arial"
, 9, DrawingFontStyles.Regular, GeoColor.StandardColors.Black, GeoColor.StandardColors.White, 2, 0, 0));
classBreakStyle.ClassBreaks.Add(
new
ClassBreak(colors<i>.Low, styles));
}
_pointsLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Clear();
_pointsLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(classBreakStyle);
_pointsLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
and have attached a screen grab with the problems highlighted.
Is this a bug? or can I make some settings changes to make this go away
regards
Murray