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

使用new AMap.LngLat(116.379028, 39.865042)的时候,会报ReferenceError: AMap is not defined这个错 #88

Closed
piaoyidemeng opened this issue Jun 4, 2021 · 5 comments

Comments

@piaoyidemeng
Copy link

No description provided.

@jaywcjlove
Copy link
Member

@piaoyidemeng 应该可能跟这个是类似的情况 #45

如果不是请给出示例。

@piaoyidemeng
Copy link
Author

@jaywcjlove 好的 确实是的 非常感谢您

@jaywcjlove
Copy link
Member

#45 (comment)

@zmm2tysu
Copy link

Marker的文档存在误导,里面就是直接在Map组件中使用的new AMap

@jaywcjlove
Copy link
Member

@zmm2tysu 没有误导,APILoaderMap 分开写的,他们俩的文档仔细看就不会出这个问题了。

ReactDOM.render((
  <APILoader akay="a7a90e05a37d3f6bf76d4a9032fc9129">
    <Example />
  </APILoader>
), _mount_);

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

3 participants