MapStyle Enumeration
MapStyle Enumeration
The possible map styles to use for rendering a map. The following table shows the data sources for which a MapStyle enumeration member is valid and the default map style for each data source.
Public Enum MapStyle
Member of [Namespace]
[C#]
public enum MapStyle : System.Enum
Member of [Namespace]
Remarks
The following table lists the values for the MapStyle enumeration.
Name |
Description |
---|---|
Characteristic climate for areas on the Earth, defined by long-term weather patterns. Color. |
|
For the MapPoint.World data source, contains several categories of information for purposes of general reference, including topographic, political, and geographic information. Color. For the MapPoint.Moon data source, contains views of the moon as a composite of satellite images, including identification of craters, landing sites, and lunar seas. Color. |
|
DefaultStyle |
Default map style for a data source. |
Idealized map of the Earth as it looks from space in daylight without clouds, as a composite of satellite images. Color. |
|
Idealized map of the Earth as it looks from space at night without clouds, as a composite of satellite images. Color. |
|
Landscapes, such as forests, woodlands, grasslands, deserts, and ice. Color. |
|
Maps drawn with a color scheme common in European maps. |
|
Language spoken by a majority of people in an area. Color. |
|
Roads and some political geographies, optimized for overview maps. Color. |
|
Roads and some political geographies, optimized for overview maps. High contrast for black and white printing. |
|
A map designed for viewing in low-light conditions. |
|
Current borders of the world's sovereign nations and their dependencies, and at higher resolutions, borders between states, provinces, or other internal subdivisions. Also indicated are names and locations of selected cities and towns; rivers, lakes, and seas; and mountains, plateaus, deserts, and other physical features. Color. |
|
Significant protected areas, such as World Heritage Sites; national, provincial, and state parks; other major reserves; and territories reserved for indigenous peoples in the Americas. Color. |
|
Shows roads and political geographies, optimized for small screens (size ranged from 101 x 80 pixels to 176 x 220 pixels). Color. |
|
Shows roads and political geographies, optimized for small screens (size ranged from 101 x 80 pixels to 176 x 220 pixels). High contrast for black and white printing. |
|
Landforms and water bodies. Color. |
|
Political geography; political entities are shown in contrasting colors for emphasis. Color. |
|
Political geography; political entities are shown in outline. High contrast for black and white printing. |
|
Number of people per square kilometer throughout the world. Color. |
|
Average accumulation of rain or snow over an entire year. Color. |
|
Average accumulation of rain or snow during the month of January. Color. |
|
Average accumulation of rain or snow during the month of July. Color. |
|
Distribution of the adherents of the world's major regions. Color. |
|
Roads, highways, towns, and cities. Color. |
|
Roads, highways, towns, and cities. High contrast for black and white printing. |
|
Roads and political geographies, optimized for low resolution maps. Color. |
|
Roads and political geographies, optimized for low resolution maps. High contrast for black and white printing. |
|
Distribution of plates that make up the Earth's crust, location of volcanoes and earthquakes, and age of the floor beneath the seas. Color. |
|
Average air temperature during the month of January. Color. |
|
Average air temperature during the month of July. Color. |
|
Roads, highways, towns, cities, and geographic terrain. Color. |
|
Roads, highways, towns, cities, and geographic terrain. High contrast for black and white printing. |
|
Zones of uniform time recognized by national agreement. Color. |
For more information about map styles and the data sources that support each style, see MapPoint Web Service Map Styles.
The MapStyle enumeration is used with the MapOptions.Style property.
MapPoint Web Service constrains the map view in terms of how far the map is zoomed out or zoomed in. The constraints vary per data source and map style. If the MapSpecification.Views or MapSpecification.Options properties are set such that these limits would be exceeded, the returned map image is modified to meet the limit and the MapImage.View property contains the returned view.
Example
[Visual Basic]
'Get a map using height and width
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 map using height and width
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.Style Property | MapSpecification.Views Property | MapSpecification.Options Property | MapImage.View Property | MapPoint Web Service Map Styles