0
创建新市场时,我使用'光标'参数在此市场上设置光标类型,但如果draggable参数设置为true,则无法更改光标。它总是'指针'。这里是我的代码:更改Google地图上的可拖动标记光标
var marker = new google.maps.Marker({
map:map,
draggable:true,
animation: google.maps.Animation.DROP,
position: center,
cursor: 'move'
});
所以,如果draggable
未设置为true
标记的光标'move'
但如果这是真的话,那就'pointer'
。有任何想法吗?