ViewByScale.CenterPoint Property
ViewByScale.CenterPoint Property
The latitude and longitude coordinate (LatLong object) that represents the center point of the map view.
Public CenterPoint As LatLong
[C#]
public LatLong CenterPoint;
Remarks
- For information about map views, including the relationship between map views and map image size, see Working with Map Views.
Example
[Visual Basic]
'Get a map using scale
Dim myViews(0) As ViewByScale
myViews(0) = New ViewByScale()
myViews(0).CenterPoint = New LatLong()
myViews(0).CenterPoint.Latitude = 40
myViews(0).CenterPoint.Longitude = -120
myViews(0).MapScale = 5000
Dim mapSpec As New MapSpecification()
mapSpec.DataSourceName = "MapPoint.NA"
mapSpec.Views = myViews
Dim mapImages() As MapImage
mapImages = renderService.GetMap(mapSpec)
[C#]
//Get a map using scale
ViewByScale[] myViews = new ViewByScale[1];
myViews[0] = new ViewByScale();
myViews[0].CenterPoint = new LatLong();
myViews[0].CenterPoint.Latitude = 40;
myViews[0].CenterPoint.Longitude = -120;
myViews[0].MapScale = 5000;
MapSpecification mapSpec = new MapSpecification();
mapSpec.DataSourceName = "MapPoint.NA";
mapSpec.Views = myViews;
MapImage[] mapImages;
mapImages = renderService.GetMap(mapSpec);
See Also
ViewByScale Class | LatLong Class | Working with Map Views