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

poi信息有限制吗 #8

Open
1306229903 opened this issue Nov 18, 2017 · 3 comments
Open

poi信息有限制吗 #8

1306229903 opened this issue Nov 18, 2017 · 3 comments

Comments

@1306229903
Copy link

我把 BMap.search方法内的 "query"的默认值改为了医院,我想展示附近的医院,就报错了,说Cannot read property 'latitude' of undefined,难道只能限制在生活服务$美食&酒店这三类值吗?

@dandandancj
Copy link

没有限制啊,改成医院应该是没问题的
BMap.search({
"query": '医院',
fail: fail,
success: success,
iconPath: '../../img/marker_red.png',

@1306229903
Copy link
Author

当我输入美食的时候没有问题,可就是输入医院的时候就报错,诊所都不会
default
1

@dandandancj
Copy link

你试试把success回调的data打印出来看看,可能是没检索到任何医院?

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