Hello,
i am facing problem on rendering both points and street labels, for the points view the labels are not consistent on zoom levels although the instruction is to display at all zoom levels. As for the street none of the names appear at all. below is the source code:
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
SilverlightMapConnector1.MapUnit = GeographyUnit.DecimalDegree;
ServerLayerOverlay layerOverlay = new ServerLayerOverlay("NativeServer");
ShapeFileFeatureLayer mainLayer = new ShapeFileFeatureLayer(MapPath("~/app_data/main.shp"));
mainLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.Highway1;
mainLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Highway1("name");
mainLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.SuppressPartialLabels = true;
mainLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels;
mainLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.OverlappingRule = LabelOverlappingRule.AllowOverlapping;
mainLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
layerOverlay.Layers.Add(mainLayer);
ShapeFileFeatureLayer poiLayer = new ShapeFileFeatureLayer(MapPath("~/app_data/airport.shp"));
poiLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.Capital1;
poiLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Utility1("name");
poiLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.SuppressPartialLabels = true;
poiLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels;
poiLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.OverlappingRule = LabelOverlappingRule.AllowOverlapping;
poiLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
layerOverlay.Layers.Add(poiLayer);
SilverlightMapConnector1.ServerLayerOverlays.Add(layerOverlay);
}
}
}
I have also attached some snapshots.
regards,
Rhandy
949-images.zip (112 KB)