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 无法设置点击事件(events进行绑定的) #663

Open
apgk opened this issue Oct 21, 2021 · 0 comments
Open

marker 无法设置点击事件(events进行绑定的) #663

apgk opened this issue Oct 21, 2021 · 0 comments

Comments

@apgk
Copy link

apgk commented Oct 21, 2021

问题

marker 无法单击事件(events )
<el-amap vid="map" :zoom="zoom" :center="center" :mapStyle="'amap://styles/dark'"> <el-amap-marker v-for="(item, index) in markers" :key="index" :title="item.title" :position="item.position" :events="item.events" :draggable="item.draggable" :clickable="item.clickable" :icon="item.url" :vid="item.vid" :index="index" ></el-amap-marker> </el-amap>

let obj = {
title: 'test',
position: [c.lng, c.lat],
url: '/blue.png',
vid: '123',
events: {
click(e){
console.log(e)
}
},
clickable:true,
visible: true,
draggable: false
}
this. markers.push(obj);

VueAMap 版本

npm上最新的版本 sdk1.4.4

OS/Browsers version

1111

Vue 版本

2.0

复现地址

预期

marker 事件可用。

实际

events 已经绑定无效

feature request

111

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