vue-tencent-geolocation

1.0.3 • Public • Published

vue-tencent-geolocation

在vue中使用的腾讯定位

How to use

npm i vue-tencent-geolocation -S
 
const key = '<申请的腾讯定位sdk>';
 
const app = '<申请的app名字>';
 
const geolocation = new Geolocation(key, app);
 
geolocation.getLocation(successCallback, errorCallback);
 
function successCallback(position) {
    console.log(position)
}
 
function errorCallback() {
    console.log('error')
}

Readme

Keywords

none

Package Sidebar

Install

npm i vue-tencent-geolocation

Weekly Downloads

0

Version

1.0.3

License

ISC

Last publish

Collaborators

  • davidhan