add a click event to Amap"s dot mark in the project. For more information, please see the following code:
1. Create a dot tag
new AMap.Marker ({
icon: icon,//24px*26px
position: vue.customer [I] .position,
title: vue.customer [I] .name,
zIndex: 200,
clickable: true,
map: map
});
2. Add a click event to the dot tag
var clickHandle = AMap.event.addListener (marker, "click", function () {
console.log ("1111")
});
3. Click and report an error
marker is not defined