SetGPSMode

Sets the GPS mode.

Note:    Before setting the mode to GPS_MODE_SHOW_LOCATION_INDICATOR or GPS_MODE_FOLLOW, the client should call SetGPSPosition to update the true GPS position.

 

JavaScript

 

SetGPSMode(

       GPSMode)

 

C#

 

void SetGPSMode (

       GPSOperationMode GPSMode)

 

C++

 

HRESULT SetGPSMode (

       GPSOperationMode GPSMode)

 

Parameters

GPSMode

An enum that can use any of the following values:

·          GPS_MODE_OFF = 0,
Turn GPS mode off.

·          GPS_MODE_SHOW_LOCATION_INDICATOR = 2,
Indicate the current GPS location on the 3D Window (but don't follow the GPS position with the camera)

·          GPS_MODE_FOLLOW = 4,
Camera follows GPS position.

·          GPS_MODE_NONE = 999
Internal use only. Client should not call SetGPSMode with this flag.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.