leaflet中给maker添加mouseover、mouseout、click


LamMarker.on({
‘mouseover’: function (e) {
changeThisIco(e.target);
},
‘mouseout’: function (e) {
reThisIco(e.target);
},
‘click’: function (e) {
select(e.target);
}
});

转载自:https://blog.csdn.net/honglei_zh/article/details/52786751

You may also like...