[英]Change draggable marker cursor on google maps
创建新市场时,我使用“ cursor”参数在该市场上设置光标类型,但是如果draggable参数设置为true,则无法更改光标。 它始终是“指针”。 这是我的代码:
var marker = new google.maps.Marker({
map:map,
draggable:true,
animation: google.maps.Animation.DROP,
position: center,
cursor: 'move'
});
因此,如果未将draggable
设置为true
,则标记的光标为'move'
但如果为true,则它成为'pointer'
。 有任何想法吗?
这是一个已经存在了一段时间的错误https://code.google.com/p/gmaps-api-issues/issues/detail?id=3120
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.