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

关于无法显示实体的解决方案 #20

Open
CloneWolf-Jiang opened this issue May 7, 2022 · 3 comments
Open

关于无法显示实体的解决方案 #20

CloneWolf-Jiang opened this issue May 7, 2022 · 3 comments

Comments

@CloneWolf-Jiang
Copy link

CloneWolf-Jiang commented May 7, 2022

首先感谢作者的付出,这几天试了一下感觉很实用。
只是高德地图功能升级后(仅限最近注册的KEY)无法显示标注点和行程了。对1.2.7版摸索了一番后,将第268-270行修改成:
if (result.info === 'ok') { that._showMarker(result.locations[0],entity,color,type); } else { console.info("%c 地图加载异常:%o", "color: white; font-weight: bold; background: dimgray",result); }
后得到高德地图返回“NVALID_USER_SCODE” 异常信息,通过查看高德API的“JSAPI key和安全密钥的使用”说明,我使用了第二个方法,在第4行追加下列代码后可以正常使用:
window._AMapSecurityConfig = { securityJsCode:'您申请的安全密钥', }

@ACEweijun
Copy link

谢谢大佬!!!我最近也在搞这个,才发现作者好久没更新了,没啥编程基础,应该怎样快捷的修改这些代码啊?

@zhanghaojia668
Copy link

修改了js代码,不生效,是什么情况

@fusang1337
Copy link

插眼,谢谢大佬付出

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