Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020.5.25 AMapUI 组件库加载问题 #227

Open
FreezeIce1 opened this issue May 25, 2020 · 5 comments
Open

2020.5.25 AMapUI 组件库加载问题 #227

FreezeIce1 opened this issue May 25, 2020 · 5 comments

Comments

@FreezeIce1
Copy link

  • [√] 我已经搜索过 issue,没有类似的问题,或者类似的问题仍然没有解决方案。
  • [√] 我已经搜索过文档,并且仍然没有找到解决方案。
  • [√] 我写了个问题重现的例子,链接或者代码将会贴在下面。

Reproduce Example Link or Code Fragment

loadUI() { window.AMapUI.loadUI(['overlay/SimpleMarker'], (SimpleMarker) => { this.initPage(SimpleMarker); }) }

What is Expected?

应该正常加载

What is actually happening?

包括在网站上在线运行在内的都报错Cannot read property 'loadUI' of undefined,AMapUI组件有问题了。

@LiUhoNgDan222
Copy link

你有解决这个问题吗?我现在第一次加载的时候轨迹也是不出来

@FreezeIce1
Copy link
Author

你有解决这个问题吗?我现在第一次加载的时候轨迹也是不出来

最后还是使用的高德官网的原生方式,这个react的库有问题

@wangxingkang
Copy link

@aiyudeleng
Copy link

你有解决这个问题吗?我现在第一次加载的时候轨迹也是不出来

最后还是使用的高德官网的原生方式,这个react的库有问题

怎么使用的?

@FreezeIce1
Copy link
Author

你有解决这个问题吗?我现在第一次加载的时候轨迹也是不出来

最后还是使用的高德官网的原生方式,这个react的库有问题

怎么使用的?

记得应该是script引入,然后手动加载.参考官方https://lbs.amap.com/api/javascript-api/guide/abc/prepare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants