-
Notifications
You must be signed in to change notification settings - Fork 12
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
点标记和信息窗体的offset属性设置数组类型没生效 #60
Comments
我用文档试了下可以啊,你是不是offset传的有问题。offset前面得有冒号, :offset="[0,20]" |
额,肯定是有冒号啊,不然offset:new AMap.Pixel(0, -32)怎么生效了,而且设置[0, -32]缩放一下标记点就会消失,我的sdk版本是1.4.15 |
1.4.15的话还是推荐用vue-amap,我对1.4.x版本只做了简单的兼容,很多功能应该都用不了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用版本
请填写使用版本:0.1.15
问题描述
点标记和信息窗体的offset属性设置数组类型没生效,按官方的offset:new AMap.Pixel(0, -32)可以生效,但是这样报错,因为是Object
[Vue warn]: Invalid prop: type check failed for prop "offset". Expected Array, got Object
The text was updated successfully, but these errors were encountered: