Problem Description
When we need to use some external things in the process of developing the uniapp project in the front end, we need to explore how to obtain the values we need. The problem I have encountered is that when using uniapp
the development h5
application, when using the map component ( <map></map>
), an error is reportedMap key not configured.
Cause Analysis
In your uniapp
project, the third-party map that needs to be used is not configured key
.
Solution
- Check a map service provider. I chose Tencent Maps. Of course, you can choose according to your needs.
- Enter Tencent map
key
(applicationkey
method: application method of Tencent positioning service key )
- run successfully