Dela via


MapScene.CreateFromCamera(MapCamera) Method

Definition

Creates a scene to appear in a map based on the position of the specified MapCamera.

public:
 static MapScene ^ CreateFromCamera(MapCamera ^ camera);
 static MapScene CreateFromCamera(MapCamera const& camera);
public static MapScene CreateFromCamera(MapCamera camera);
function createFromCamera(camera)
Public Shared Function CreateFromCamera (camera As MapCamera) As MapScene

Parameters

camera
MapCamera

The current position of the specified camera.

Returns

Represents a view of a map in the MapControl.

Remarks

The following image demonstrates the location of the map's camera relative to the scene.

The relationship between MapCamera location and MapScene location relative to the map.

Applies to