We are having issues with some World Mapkit Roads and labeling them. Users only get to see a label in the center of the line shape. This is typically fine in towns and some rural areas, but in multiple instance in Texas there are roads that are over 30 miles in length. In order to know what road you are looking at you have to scroll or zoom quite far. Is there a way to label the shapes in the center of the currently viewed portion of the road?
As you can see above, this road is extremely long, and only has 1 label for the entire portion. If I view this same road in OpenStreetMap.org (the source of my world mapkit data), they label this road several times in the screen, regardless of what portion of the road I am viewing:
Is it possible to label my roads like they do? What settings are needed for that? Here are my current label settings:
var txt =
new
TextStyle(
“name”
,
new
GeoFont(
“Verdana”
, fontSize),
new
GeoSolidBrush(
new
GeoColor(255, 102, 102, 102)))
{
HaloPen =
new
GeoPen(
new
GeoColor(200, 255, 255, 255), 3),
DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels,
ForceLineCarriage =
true
,
LabelAllLineParts =
true
,
LabelAllPolygonParts =
true
,
OverlappingRule = LabelOverlappingRule.AllowOverlapping,
PolygonLabelingLocationMode = PolygonLabelingLocationMode.Centroid,
GridSize = 5,
FittingPolygon =
false
,
SplineType = SplineType.StandardSplining
};