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'
。有任何想法嗎?