Can My Location Function Be Used?
Congratulations! Now you have an understanding of how Mega works, its applicable scenarios, device support, etc., and have learned how to obtain and use an APIKey. Then your application has the foundation to implement high-precision spatial positioning.
Before You Start
Before you start writing the application logic, please ensure that:
- The correct map has been added to the location library
Check your location library to ensure that the maps of the areas your application needs to use have been correctly added. - The SDK is configured correctly
Confirm that the EasyAR SDK has been correctly initialized in your code, a valid SDK License has been configured, and a valid API Key for the Mega service has been passed in. - The map is correctly referenced
In your scene or code, ensure that the Mega location module (such as theMegaTrackercomponent) correctly points to the map resources you added.
If all the above steps are completed, then your location function should theoretically work properly.
Encountering Problems
If you encounter problems when checking the above steps, refer to the following articles to solve them:
You don't have a map yet
You need to create a Mega map for the target physical space first. This usually involves two steps: data collection and mapping. Refer to:You have a map but are not sure about its quality
The accuracy and coverage of the map directly affect the location effect. You can view the mapping results to help you judge. Refer to:Regarding map loading and management
Regarding how to load and manage the mapping results, refer to:SDK License and APIKey
If you encounter problems related to the License or APIKey, refer to:
When your project contains a valid and high-quality Mega map, your location function is truly ready. Please refer to the above documents to prepare and configure the map according to your specific situation, and then you can start writing exciting AR applications!