MapOptions.Style Property
MapOptions.Style Property
The map style (MapStyle enumeration) to use. Default is DefaultStyle.
Public Style As MapStyle
[C#]
public MapStyle Style;
Remarks
- The default map style depends on the data source referenced in the MapSpecification.DataSourceName property.
Example
[Visual Basic]
'Get a terrain style map
Dim myViews(0) As ViewByHeightWidth
myViews(0) = New ViewByHeightWidth()
myViews(0).CenterPoint = New LatLong()
myViews(0).CenterPoint.Latitude = 40
myViews(0).CenterPoint.Longitude = -120
myViews(0).Height = 200
myViews(0).Width = 300
Dim mapSpec As New MapSpecification()
mapSpec.DataSourceName = "MapPoint.NA"
mapSpec.Views = myViews
mapSpec.Options = New MapOptions()
mapSpec.Options.Style = MapStyle.Terrain
Dim mapImages() As MapImage
mapImages = renderService.GetMap(mapSpec)
[C#]
//Get a terrain style map
ViewByHeightWidth[] myViews = new ViewByHeightWidth[1];
myViews[0] = new ViewByHeightWidth();
myViews[0].CenterPoint = new LatLong();
myViews[0].CenterPoint.Latitude = 40;
myViews[0].CenterPoint.Longitude = -120;
myViews[0].Height = 200;
myViews[0].Width = 300;
MapSpecification mapSpec = new MapSpecification();
mapSpec.DataSourceName = "MapPoint.NA";
mapSpec.Views = myViews;
mapSpec.Options = new MapOptions();
mapSpec.Options.Style = MapStyle.Terrain;
MapImage[] mapImages;
mapImages = renderService.GetMap(mapSpec);
See Also
MapOptions Class | MapStyle Enumeration | MapSpecification Class | MapPoint Web Service Map Styles | MapImage.View Property