MapOptions Class
Contains the map rendering options used with the RenderServiceSoap.GetMap method. Specifies the image format, whether the image or a URL to a cached image should be returned, panning and zooming factors, identification of the requested map as an overview map, route highlight colors, font size, and map style.
Public Class MapOptions
Member of [Namespace]
[C#]
public class MapOptions : System.Object
Member of [Namespace]
Public Properties
ConstructionClosureHighlightColor | The highlight color (RouteHighlightColor enumeration) to use for parts of a route that are closed due to construction. Default is Red. |
ConstructionDelayHighlightColor | The highlight color (RouteHighlightColor enumeration) to use for parts of a route where delays due to construction can be expected. Default is DefaultColor. |
FontSize | The relative font size (MapFontSize enumeration) to use for map labeling. Default is Medium. |
Format | The format (ImageFormat object) of the map image to return. |
IsOverviewMap | Identifies whether the requested map should be rendered as an overview map. Boolean. |
PanHorizontal | A positive or negative number reflecting the percentage of the map image to pan west (negative) or east (positive). Double. |
PanVertical | A positive or negative number reflecting the percentage of the map image to pan south (negative) or north (positive). Double. |
ReturnType | Identifies whether the RenderServiceSoap.GetMap method should return a map image or a standard or secure URL to a cached map image. MapReturnType enumeration. Optional. |
RouteHighlightColor | The highlight color (RouteHighlightColor enumeration) to use for a route (other than construction areas). Default is Green. |
Style | The map style (MapStyle enumeration) to use. |
Zoom | Identifies the factor by which the map image is magnified; a fractional percentage. Double. |
Remarks
- The MapOptions class is passed in the MapSpecification.Options property.
- If both pan (PanHorizontal and/or PanVertical) and zoom (Zoom) navigation properties are sent in the same call, the order of implementation is pan and then zoom.
See Also
RenderServiceSoap.GetMap Method | RouteHighlightColor Enumeration | MapFontSize Enumeration | ImageFormat Class | MapReturnType Enumeration | MapStyle Enumeration | MapSpecification.Options Property