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

  1. Select the Nearing Mode to check neighbor POI information.
  2. Select the Following Mode to view your map.
  3. Click on the Normal Map to browse your map in the normal mode.
  4. Click on the Infinite Mode. When you move your phone, your map will be panned together.
  5. Click Turn on Camera to turn on your camera.
  6. Click Turn off Camera to turn off your camera.
  7. Click Open Map to open your map.
  8. Click Close Map to close your map.