Share via


Pan method

Shifts the map view in a given direction by a given amount; similar to using the Pan tool on the Navigation toolbar.

Applies to

Objects: Map

Syntax

object.Pan(PanDirection, [PanFactor])

Parameters

Part

Description

object

Required. An expression that returns a Map object.

PanDirection

Required GeoPanCmd. The direction to pan.

GeoPanCmdValueDirection
geoNorth8North (up)
geoNorthEast9Northeast (up and to the right)
geoEast6East (right)
geoSouthEast3Southeast (down and to the right)
geoSouth2South (down)
geoSouth1Southwest (down and to the left)
geoWest4West (left)
geoNorthWest7Northwest (up and to the left)

PanFactor

Optional Double. Amount to pan, expressed as a fraction of the screen width or height.

Example