AR Mapping (imobileARcontrol)
Introduction
Demonstrate turning on the proximity mode of AR map, infinite screen mode, and follow mode.
Operation effect
Figure: AR Mapping Operation Effect |
Location
Android Studio
- Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\imobileARcontrol
Data
Storage location
- Product package: Product package\SampleData\AR
Deployment Location: mobile device internal storage\SampleData\AR
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.services.jar, sceneform-sm-11.1.0.aar |
so |
libimb2d.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 |
---|---|
ArControl2 | beginAR(), setARState(), setDatasetName(), setTileName(), setRecordset(), showMapView(), setARCenter() |
Basic steps
- Select the Nearing Mode to check neighbor POI information.
- Select the Following Mode to view your map.
- Click on the Normal Map to browse your map in the normal mode.
- Click on the Infinite Mode. When you move your phone, your map will be panned together.
- Click Turn on Camera to turn on your camera.
- Click Turn off Camera to turn off your camera.
- Click Open Map to open your map.
- Click Close Map to close your map.