Amap-for-Apache-Weex icon indicating copy to clipboard operation
Amap-for-Apache-Weex copied to clipboard

定位等插件内方法无法调用

Open Shruan opened this issue 7 years ago • 0 comments

如题 我在引入weex-amap时在app上 地图可以正常显示,但是在使用定位等方法时 提示xxx is not a function,引入方式

const Amap = weex.requireModule('@weex-module/amap');

setUserLocation() {
      const self = this;
      Amap.getUserLocation(this.$refs.map2017, function (data) {
        if (data.result == 'success') {
          self.pos = data.data.position;
        }
      })
    }

Shruan avatar Nov 14 '17 02:11 Shruan