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_amap的搜索功能出现INVALID_USER_KEY报错 #80

Closed
longkiss opened this issue Mar 31, 2017 · 2 comments
Closed

用vue_amap的搜索功能出现INVALID_USER_KEY报错 #80

longkiss opened this issue Mar 31, 2017 · 2 comments

Comments

@longkiss
Copy link

你好,我用vue_amap的搜索功能出现INVALID_USER_KEY报错 ,高德地图的key已经申请了,但是我该怎么引用进去呢?

@AxeMea
Copy link
Contributor

AxeMea commented Mar 31, 2017

@longkiss

你好,README 中有初始化的代码。

AMap.initAMapApiLoader({
  // 高德的key
  key: 'YOUR_KEY',
  // 插件集合
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor']
});

@longkiss
Copy link
Author

longkiss commented Apr 1, 2017

谢谢,已解决!

@AxeMea AxeMea closed this as completed Apr 1, 2017
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

2 participants