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

Marker如果设置了icon属性,或者hidden属性,则事件无法绑定 #93

Open
herohql521 opened this issue Feb 22, 2022 · 0 comments

Comments

@herohql521
Copy link

<amap-marker [position]="[116.397428, 39.90923]" [hidden]="hidden" [icon]="icon" (naClick)="onEvent($event, 'naClick')" >
这时候naClick就绑定不了。
如果不设置hidden属性先隐藏起来,设置icon的话,会加载2个marker一个原生的标记点,和一个自定义的标记点重叠,在loader之后让hidden=false,可以解决默认加载原生标记点的bug,但是事件是绑定不了的

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

1 participant