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

Point,Size,Bounds判断的修改 #147

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MingYinLv
Copy link

Point接收的参数为两个Number类型,只需要判断是否为number类型就可以了,lng和lat在国外有为负数的情况,当前的判断有问题,如果出现负数会报错,而且只判断了lng,typeof返回的是字符串,lat永远都是true,下面的Size是同样的问题,只需要接收number类型的参数就足够了。
Bounds的sw和ne百度地图的文档是Point类型,现在是把他们当初number类型来判断。

Copy link

@ivshow ivshow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also found the bug, hope to merge!

@MingYinLv
Copy link
Author

修改了一下,只对经纬度进行负数兼容

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

Successfully merging this pull request may close these issues.

2 participants