Browse Source

测试百度地图

develop
nesxy 6 years ago
parent
commit
adb9f7f768
1 changed files with 2 additions and 1 deletions
  1. 3
      src/view/home.vue

3
src/view/home.vue

@ -464,7 +464,8 @@ export default {
let _this = this let _this = this
// if (!this.BMap) return false // if (!this.BMap) return false
// let BMap = this.BMap // let BMap = this.BMap
// alert(Bmap);
alert(Bmap);
alert(new Bmap)
var geolocation = new Bmap.Geolocation(); var geolocation = new Bmap.Geolocation();
geolocation.getCurrentPosition(function(r) { geolocation.getCurrentPosition(function(r) {
if (this.getStatus() == BMAP_STATUS_SUCCESS) { if (this.getStatus() == BMAP_STATUS_SUCCESS) {

Loading…
Cancel
Save