Hello alvin,
Thanks for your post, we did some test but does not recreate your problem, below is the code we use to test:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));
Map1.MapUnit = GeographyUnit.DecimalDegree;
InMemoryFeatureLayer inmLayer = new InMemoryFeatureLayer();
inmLayer.Open();
FeatureSourceColumn column1 = new FeatureSourceColumn("name", "string", 20);
inmLayer.Columns.Add(column1);
inmLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
inmLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(LineStyles.River1);
inmLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(TextStyles.LocalRoad1("name"));
Collection<Feature> features = new Collection<Feature>();
features.Add(new Feature("LINESTRING (30 10, 60 50,29 11)"));
features.Add(new Feature("LINESTRING (80 50, 80 55,90 48)"));
features.Add(new Feature("LINESTRING (76 22, 39 64,15 37)"));
features[0].ColumnValues["name"] = "GÄRDSVÄGEN";
features[1].ColumnValues["name"] = "RYTTARVÄGEN";
features[2].ColumnValues["name"] = "STORAFRÖSUNDA";
for (int i = 0; i < 3; i++)
{ inmLayer.InternalFeatures.Add(features[i]); }
LayerOverlay layerOverlay = new LayerOverlay();
layerOverlay.ServerCache.CacheId = "test";
layerOverlay.ServerCache.CacheDirectory = @".....";
layerOverlay.ClientCache.CacheId = "test";
layerOverlay.Layers.Add(inmLayer);
Map1.CurrentExtent = inmLayer.GetBoundingBox();
Map1.CustomOverlays.Add(layerOverlay);
}
}
I guess the problem you mean is the label display in the street corner, is that right?
If so I think it's a bug for our split which want the label looks better, can you check if you have set TextStyle.SplineType? If so could you please set it to SplineType.None and see the resut?
Also is that possible you can provide your data in this area to us and we can debug on it and fix the bug?
Regards,
Gary