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.
|
|||||||||||||||||||||||||||
PanFactor | Optional Double. Amount to pan, expressed as a fraction of the screen width or height. |
Example
Sub PanTheMapEast()
Dim objApp As New MapPoint.Application
'Set up the application
objApp.Visible = True
objApp.UserControl = True
'Pan the map east
objApp.ActiveMap.Pan geoEast
End Sub