Hi
In my application I displayed the labels on map, but the labels are not clear and they are overlapping on one another.Also I want to reduce the font size of the labels.
Plz help.
Bhagyashree
Hi
In my application I displayed the labels on map, but the labels are not clear and they are overlapping on one another.Also I want to reduce the font size of the labels.
Plz help.
Bhagyashree
Bhagyashree,
For avoiding overlapping, there is the property OverlappingRule that you can set the OverlappingRule.NoOverlapping. For the font size, that can be ajusted with the size property of GeoFont. See the code below to give you an idea. Of course, you will need to adapt that code to your case.
inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.OverlappingRule = LabelOverlappingRule.NoOverlapping;
inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.Font = new GeoFont("Arial", 8);
Hi
Thanx for the reply.I tried the OverLappingRule property by setting it to NoOverlapping ,but now all the labels are not displayed.Only few of them are displayed.What to do??
Plz help.
Bhagyashree
Hi Bhagyashree,
Other lablels are not displayed because they are overlapped by displayed labels, you can zoom in/out the map to check it.
You may need to set "GridSize" property (the default value is 100) in order to see more labels, the smaller "GridSize" is, the more labels will be displayed.
Thanks,
Ivan
Hi Ivan
Thanx for your reply.It worked.
Plz see my post "getting the feature clicked on map" and plz help me if you can…plz its urgent.
Thanx in advance.
Bhagyashree
Hi Bhagyashree,
You’re welcome. Please feel free to ask us if you have any questions while using MapSuite products.
Thanks,
Ivan