Share via


Location property (Map)

Returns or sets the Location object that represents the current map view. Read/write.

Applies to

Objects:  Map

Syntax

object.Location

Parameters

Part Description
object Required. An expression that returns a Map object.

Example

    Sub ZoomToLocation()

  Dim objApp As New MapPoint.Application   Dim objMap As MapPoint.Map
  'Set up the application   Set objMap = objApp.ActiveMap   objApp.Visible = True   objApp.UserControl = True
  'Zoom in on map by setting map location   Set objMap.Location = objMap.FindResults("Seattle, WA")(1)
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.