MapOptions.FontSize Property
The relative font size (MapFontSize enumeration) to use for map labeling. Default is Smaller.
Public Dim FontSize As [Namespace].MapFontSize
Member of [Namespace].MapOptions
[C#]
public [Namespace].MapFontSize FontSize
Member of [Namespace].MapOptions
Remarks
- The actual size of the font used in a map label depends on the object labeled. For example, the font size for a country/region label is always larger than the font size for a city label.
Example
[Visual Basic]
'This example assumes that the service instance
''renderService' has already been created and that
'the MapPoint Web Service namespace has been imported
'Get a map with the font as large as possible
Dim myViews(0) As ViewByScale
myViews(0) = New ViewByScale()
myViews(0).CenterPoint = New LatLong()
myViews(0).CenterPoint.Latitude = 40
myViews(0).CenterPoint.Longitude = -120
myViews(0).MapScale = 5000
Dim mapSpec As New MapSpecification()
mapSpec.DataSourceName = "MapPoint.NA"
mapSpec.Views = myViews
mapSpec.Options = New MapOptions()
mapSpec.Options.FontSize = MapFontSize.Largest
Dim mapImages() As MapImage
mapImages = renderService.GetMap(mapSpec)
[C#]
//This example assumes that the service instance
//'renderService' has already been created and that
//the MapPoint Web Service namespace has been imported
//Get a map with the font as large as possible
ViewByScale[] myViews = new ViewByScale[1];
myViews[0] = new ViewByScale();
myViews[0].CenterPoint = new LatLong();
myViews[0].CenterPoint.Latitude = 40;
myViews[0].CenterPoint.Longitude = -120;
myViews[0].MapScale = 5000;
MapSpecification mapSpec = new MapSpecification();
mapSpec.DataSourceName = "MapPoint.NA";
mapSpec.Views = myViews;
mapSpec.Options = new MapOptions();
mapSpec.Options.FontSize = MapFontSize.Largest;
MapImage[] mapImages;
mapImages = renderService.GetMap(mapSpec);
See Also
MapOptions Class | MapFontSize Enumeration