Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

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

Open
Shruan opened this issue Nov 14, 2017 · 0 comments
Open

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

Shruan opened this issue Nov 14, 2017 · 0 comments

Comments

@Shruan
Copy link

Shruan commented Nov 14, 2017

如题 我在引入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;
        }
      })
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant