We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 ) <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>
<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);
npm上最新的版本 sdk1.4.4
1111
2.0
无
marker 事件可用。
events 已经绑定无效
111
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题
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
The text was updated successfully, but these errors were encountered: