Click to Rate and Give Feedback
MSDN
MSDN Library
VE Standard Map Control SDK, version 2.0
MapControl.SetCenter Method
MapControl.SetCenter Method

Centers the map to a specific latitude and longitude.

MapControl.SetCenter(latitude, longitude);

Parameters

latitude
The latitude of the point on which to center the map.
longitude
The longitude of the point on which to center the map.

Remarks

If you are setting both the center point and the zoom level, you should use the SetCenterAndZoom method, rather than the SetCenter and SetZoom methods.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker