ViewByHeightWidth Class
ViewByHeightWidth Class
Contains the definition of the map view based on distance of the width and height in kilometers or miles on the Earth's surface and a center point. Derived from the abstract MapView class.
Public Class ViewByHeightWidth Inherits MapView
[C#]
public class ViewByHeightWidth : MapView
Public Properties
Name | Description |
---|---|
CenterPoint | The latitude and longitude coordinate (LatLong object) that represents the center point of the map view. |
Height | The distance, in distance units (DistanceUnit enumeration), for the height of the map view. Double. |
Width | The distance, in distance units (DistanceUnit enumeration), for the width of the map view. Double. |
Remarks
On input, the ViewByHeightWidth class is used with the MapSpecification.Views property, which is passed to the RenderServiceSoap.GetMap method.
On output, the ViewByHeightWidth class is used in the MapViewRepresentations.ByHeightWidth property:
Returned by the RenderServiceSoap.GetBestMapView method.
Used in the MapImage.View property returned by the RenderServiceSoap.GetMap method.
Used in the Direction.View, RouteItinerary.View, and Segment.View properties returned by the CalculateRoute and CalculateSimpleRoute methods of the RouteServiceSoap class.
Used in the Location.BestMapView property returned by the FindServiceSoap.GetLocationInfo method.
Used in the Location.BestMapView property, which is used in the FindResult.FoundLocation property returned by the Find and FindAddress methods of the FindServiceSoap class.
Used in the Location.BestMapView property, which is used in the Waypoint.CalculatedLocation property returned by the CalculateRoute and CalculateSimpleRoute methods of the RouteServiceSoap class.
For information about map views, including the relationship between map views and map image size, see Working with Map Views.
See Also
MapView Class | LatLong Class | MapSpecification.Views Property | MapViewRepresentations.ByHeightWidth | FindResult.FoundLocation Property