I am having the same issue. Below is my code:
IconValueStyle iconValueStyle = new IconValueStyle("PRE_TYPE");
IconValueItem item1 = new IconValueItem("HIGHWAY",
currentdirectory + "\Support\bitmaps\ushwy-1.gif",
new TextStyle("NAME", new GeoFont("Arial", 8, DrawingFontStyles.Bold),
new GeoSolidBrush(GeoColor.StandardColors.Blue)));
item1.TextValueLengthMin = 1;
item1.TextValueLengthMax = 8;
iconValueStyle.IconValueItems.Add(item1);
iconValueStyle.GridSize = 150;
iconValueStyle.TextLineSegmentRatio = 10;
iconValueStyle.DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels;
iconValueStyle.OverlappingRule = LabelOverlappingRule.NoOverlapping;
ShapeFileFeatureLayer hwys = new ShapeFileFeatureLayer(shapedir + "\TEST-roads.shp",shapedir + "\TEST-highways1.idx");
hwys.ZoomLevelSet.ZoomLevel08.CustomStyles.Add(LineStyles.CreateSimpleLineStyle(GeoColor.StandardColors.Black, 2, false));
hwys.ZoomLevelSet.ZoomLevel08.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level12;
hwys.ZoomLevelSet.ZoomLevel12.CustomStyles.Add(LineStyles.CreateSimpleLineStyle(GeoColor.StandardColors.Black, 2, false));
hwys.ZoomLevelSet.ZoomLevel12.CustomStyles.Add(iconValueStyle);
hwys.ZoomLevelSet.ZoomLevel12.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
The graphic is a shield, white background, black outline, with the rest of the graphic transparent.
I have verified that the white part is NOT transparent.
I need the icon to be displayed on top of the line, not the line on top of the graphic.
Thanks.
Elisa