Udostępnij za pośrednictwem


StreetsideExperience Constructors

Definition

Overloads

StreetsideExperience(StreetsidePanorama)

Creates a StreetsideExperience based on the specified panoramic view.

StreetsideExperience(StreetsidePanorama, Double, Double, Double)

Creates a StreetsideExperience based on the specified panoramic view and camera position.

StreetsideExperience(StreetsidePanorama)

Creates a StreetsideExperience based on the specified panoramic view.

public:
 StreetsideExperience(StreetsidePanorama ^ panorama);
 StreetsideExperience(StreetsidePanorama const& panorama);
public StreetsideExperience(StreetsidePanorama panorama);
function StreetsideExperience(panorama)
Public Sub New (panorama As StreetsidePanorama)

Parameters

panorama
StreetsidePanorama

The panoramic view to appear in the StreetsideExperience.

Remarks

This constructor is equivalent to calling StreetsideExperience(StreetsidePanorama, Double, Double, Double) with the following default parameter values: headingInDegrees = 0 (North), pitchInDegrees = 90 (looking at the horizon), and fieldOfViewInDegrees = 75.

See also

Applies to

StreetsideExperience(StreetsidePanorama, Double, Double, Double)

Creates a StreetsideExperience based on the specified panoramic view and camera position.

public:
 StreetsideExperience(StreetsidePanorama ^ panorama, double headingInDegrees, double pitchInDegrees, double fieldOfViewInDegrees);
 StreetsideExperience(StreetsidePanorama const& panorama, double const& headingInDegrees, double const& pitchInDegrees, double const& fieldOfViewInDegrees);
public StreetsideExperience(StreetsidePanorama panorama, double headingInDegrees, double pitchInDegrees, double fieldOfViewInDegrees);
function StreetsideExperience(panorama, headingInDegrees, pitchInDegrees, fieldOfViewInDegrees)
Public Sub New (panorama As StreetsidePanorama, headingInDegrees As Double, pitchInDegrees As Double, fieldOfViewInDegrees As Double)

Parameters

panorama
StreetsidePanorama

The panoramic view to appear in the StreetsideExperience.

headingInDegrees
Double

double

The directional heading of the map's camera in degrees, where 0 or 360 = North, 90 = East, 180 = South, and 270 = West. The default headingInDegrees value is 0.

pitchInDegrees
Double

double

The pitch of the map's camera in degrees, where 90 is looking out at the horizon (maximum) and 0 is looking straight down (minimum). The default pitchInDegrees value is 90.

fieldOfViewInDegrees
Double

double

The horizontal angle of view that appears in the map's camera, in degrees. The default fieldOfViewInDegrees value is 75.

Remarks

The valid range of pitch differs between 2D, 3D, and Streetside map views. When switching from 3D to 2D for example, values that are acceptable in the current view may be out of range in the next view. If that’s the case, the current pitch value will be truncated to the nearest acceptable value in the next view.

When leaving a Streetside view, the map returns to the previous view settings. The Streetside pitch is not maintained outside of the Streetside experience.

The maximum and minimum values of pitch/tilt depend on the type of map view: 2D, 3D, or Streetside. The range for field of view is the same in all views.

Property2D range3D rangeStreetside range
pitch/tilt0-750-900-180
field of view22-9022-9022-90

Heading values greater than 360 degrees are normalized to their equivalent 0-360 degree value.

See also

Applies to