Click or drag to resize

MapCenter Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets or sets the current center point of the map.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public LatLon Center { get; set; }

Property Value

Type: LatLon

Implements

IMapCenter
Remarks
This LatLon represents the current center of the map. A call to GetMap will return an image of the map, centered on this point.

Defaults to 40, -99.

Examples
C#
// Create a Map object
Telogis.GeoBase.Map myMap = new Telogis.GeoBase.Map();

// Set the map center location
myMap.Center = new LatLon(33.694165, -117.956236);

Console.WriteLine("The center of the map is {0}", myMap.Center);
// 'The center of the map is 33.694165,-117.956236'
See Also