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

当一个vue 项目中有多个页面时会造成API加载方式混用 #2027

Closed
qq9321 opened this issue Nov 9, 2023 · 2 comments
Closed

Comments

@qq9321
Copy link

qq9321 commented Nov 9, 2023

我有两个页面,一个页面是使用的你们的L7,一个页面是使用的高德的官方地图(2.0),当我在L7地图使用GaodeMap的时候,我有些面图层数据无法加载出来,但是如果我使用GaodeMapV1的时候,是可以加载出来,但是当我如果点击另外一个使用高德地图的页面时,在点击L7的页面的时候,所有的图层都加载不出来了,我打了断点也没有进入load 函数里面,并且报错 “ 禁止多种API加载方式混用”。我想问你们有没有像高德那样有AMapLoader.reset()方法重置地图。

Copy link
Contributor

github-actions bot commented Nov 9, 2023

Hi @qq9321, Please star this repo if you find it useful! Thanks ⭐!
你好 @qq9321。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@lzxue
Copy link
Contributor

lzxue commented Nov 9, 2023

正常现象 GaodeMapV1, GaodeMapV2 不能存在,如果希望存在两个版本需求,需要动态移除不同的版本的 API。

V2 加载不出来的问题,可以单独提ISSUE

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

No branches or pull requests

2 participants