Preface
To realize this function, please first look at the development guide of Tencent's location service .
achieve
This article uses method one (call via iframe inline):
Just refer to the example written in the document to use, the key is to see how you get the data:
The contents of the component:
Verification steps
Verification address: https://lbs.qq.com/dev/console/user/info
Before developer verification:
After developer verification:
Key acquisition address: https://lbs.qq.com/dev/console/key/manage
Component js part:
Author: yo wind
Link: https://segmentfault.com/a/1190000012664309
Source: SegmentFault
The copyright belongs to the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.