LineDriveMapOptions Class

LineDriveMapOptions Class

The map rendering options for rendering a LineDrive map.

Public Class LineDriveMapOptions Inherits System.Object

[C#]
public class LineDriveMapOptions : System.Object

Public Constructors

Name Description
public constructorLineDriveMapOptions Constructor Initializes a new instance of the LineDriveMapOptions class.

Public Properties

Name Description
public propertyFormat

The format (ImageFormat object) of the map image to return.

public propertyReturnType

Identifies whether the RenderServiceSoap.GetLineDriveMap method should return a map image or a standard or secure URL to a cached map image. MapReturnType enumeration. Optional.

public propertyFontSize

The relative font size (MapFontSize Enumeration enumeration) to use for map labeling. Default is Smaller. Optional.

public propertyPaletteType

The palette style (PaletteType enumeration) to use when rendering a LineDrive map.

public propertyDestinationIconDataSource

The data source that contains the icon you want to use for the destination icon. Optional.

public propertyDestinationIconName

The name of the icon in the specified DestinationIconDataSource.

Remarks

You can render a LineDrive map with any resolution between 160x160 pixels and 2000x2000 pixels; the default resolution is 296x240 pixels.

Example

[Visual Basic]

'Create a LineDriveMapSpecification object, 
'set the LineDriveMapOptions, and then call
'the GetLineDriveMap method to generate the map
Dim format As New ImageFormat

format.Height = imgSize
format.Width = imgSize

Dim ldmo As New LineDriveMapOptions
ldmo.Format = format
ldmo.FontSize = MapFontSize.Smallest
ldmo.ReturnType = MapReturnType.ReturnUrl
ldmo.PaletteType = PaletteType.Color

Dim spec As New LineDriveMapSpecification
spec.Route = myRoute
spec.Options = ldmo
Dim mi() As LineDriveMapImage
mi = render.GetLineDriveMap(spec)

'check for multiple maps returned by GetLineDriveMap()
Dim x As Int16
       
For x = 0 To mi.Length -1
   'add your code here to handle drawing multiple maps
   RenderMap(mi(x).Url, x)
Next



[C#]

//Create a LineDriveMapSpecification object, 
//set the LineDriveMapOptions, and then call
//the GetLineDriveMap method to generate the map
ImageFormat format = new ImageFormat();
format.Height=imgSize;
format.Width=imgSize;

LineDriveMapOptions ldmo = new LineDriveMapOptions();
ldmo.Format = format;
ldmo.FontSize = MapFontSize.Smallest;
ldmo.ReturnType = MapReturnType.ReturnUrl;
ldmo.PaletteType = PaletteType.Color;

LineDriveMapSpecification spec = new LineDriveMapSpecification();
spec.Route=myRoute;
spec.Options = ldmo;
LineDriveMapImage[] mi = render.GetLineDriveMap(spec);

//check for multiple maps returned by GetLineDriveMap()
for (int x=0; x<mi.Length; x++)
{
 //add your code here to handle drawing multiple maps
     RenderMap(mi[x].Url, x);
}



See Also

  Using LineDrive Maps   |   RenderServiceSoap.GetLineDriveMap Method