GPS layer modes (online)

This sample shows how to set a GPS mode on a GPSLayer: GM_Navigation, GM_Autopan and GM_Off. GPS mode controls how the map moves in response to changes in GPS position. The default mode is GM_Autopan where the map pans to keep the map extent over the GPS position. You can set the auto-pan boundary distance to edges of the map. In GM_Navigation mode, the map rotates and pans to keep the GPS position near the center of the map and the direction of movement pointing up. You can set the point height factor, which determines how far along the center vertical axis your GPS symbol will appear stationary. With GM_Off, the map does not move in response to changes in the GPS position.