Track Record (track)
Introduction
Demonstrate the automatic recording trajectory, set the time interval, distance interval and other parameters, and view the recorded trajectory.
Operation effect
Figure: Track record Operation Effect |
Location
Android Studio
- Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\track
ADT
- Product package: Product package\SampleCode\SampleCode_ADT\Track
Data
Storage location
- Product package: Product package\SampleData\TrackData
Deployment Location: mobile device internal storage\SampleData\TrackData
License
Offline license, copy the license file to the "mobile device internal storage\SuperMap\License" folder.
Library
jar |
---|
com.supermap.data.jar, com.supermap.mapping.jar, com.supermap.navigation.jar, com.supermap.track.jar, TencentLocationSdk_v7.1.7.jar |
so |
libimb2d.so, libtencentloc.so, libgnustl_shared.so, libQt5Core.so, libQt5Gui.so, libQt5Svg.so, libQt5Widgets.so(Note: Starting from version 11.1, the last five so libraries need to be added.) |
Key types/members
Control/Class | Method |
---|---|
Track | createDataset(), setDataset(), setMatchDatasets(), setDistanceInternal(), startTrack(), stopTrack() |
Basic steps
- Tap button of record, set track name and start to record the track.
- Tap stop button, you could stop the track record.
- Tap view button, you could select the path need to be viewed.
- Tap collect button, you could set the name and description information of the current location.
- Tap button of set and you could set the parameter.