MapViewRepresentations.ByScale Property
MapViewRepresentations.ByScale Property
The map view as a ViewByScale object. The ViewByScale object represents the geographic extent of the MapViewRepresentations object, expressed by the scale and latitude and longitude coordinates that represent the center point.
Public ByScale As ViewByHeightWidth
[C#]
public ViewByHeightWidth ByScale;
Remarks
- For more information about map views, see Working with Map Views.
Example
[Visual Basic]
'Get the ViewByScale object from an existing MapImage object
Dim myViews(0) As ViewByScale
myViews(0) = Map_Images(0).View.ByScale
Dim mapSpec As New MapSpecification
mapSpec.DataSourceName = "MapPoint.NA"
mapSpec.Views = myViews
Dim mapImages() As MapImage
mapImages = renderService.GetMap(mapSpec)
[C#]
//Get the ViewByScale object from an existing MapImage object
ViewByScale[] myViews = new ViewByScale[1];
myViews[0] = Map_Images[0].View.ByScale;
mapSpec = new MapSpecification();
mapSpec.DataSourceName = "MapPoint.NA";
mapSpec.Views = myViews;
MapImage[] mapImages;
mapImages = renderService.GetMap(mapSpec);
See Also
MapViewRepresentations Class | ViewByScale Class | Working with Map Views