MapOptions.PanVertical Property

A positive or negative number reflecting the percentage of the map image to pan south (negative) or north (positive). Double. Default is 0. Optional.

Public Dim PanVertical As Double = 0
    Member of [Namespace].MapOptions
[C#]
public System.Double PanVertical
    Member of [Namespace].MapOptions

Remarks

  • For example, a PanVertical property of 0.5 pans 50% north.
  • If both pan (PanVertical and/or PanHorizontal) and zoom (Zoom) navigation properties are sent in the same call, the order of implementation is pan and then zoom.

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 

'Take an existing view and pan south
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.PanVertical = -0.5

Dim mapImages() As MapImage
mapImages = renderService.GetMap(mapSpec)

'Set the map view to the returned view
myViews(0) = mapImages(0).View.ByScale

 
[C#]
//This example assumes that the service instance 
//'renderService' has already been created and that 
//the MapPoint Web Service namespace has been imported 

//Take an existing view and pan south
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.PanVertical = -0.5;

MapImage[] mapImages;
mapImages = renderService.GetMap(mapSpec);

//Set the map view to the returned view
myViews[0] = mapImages[0].View.ByScale;

 

See Also

MapOptions Class | MapOptions.PanHorizontal Property | MapOptions.Zoom Property