[英]How to make the cross marker always visible (Google Map V3)
I want this small "X" (cross icon) in google maps api v3 set always visible, that means also when I am not dragging the icon. 我希望Google Maps API v3中的这个小“ X”(十字图标)设置始终可见,这也意味着当我不拖动图标时。
Now the cross icons shows only when I am dragging the icon only. 现在,仅当我仅拖动图标时,才显示十字图标。
you can use 您可以使用
map.data.setStyle(function(feature) {
return /** @type {google.maps.Data.StyleOptions} */({
cursor : 'crosshair'
});
});
or the cursor name you prefer 或您喜欢的游标名称
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.