是否可以获取markerwithlabel 实用程序库对象的labelClass,然后使用jquery rotate 来旋转它?
我一直在尝试这样的事情,但无法让它工作......:
var markerx = new MarkerWithLabel({
position: new google.maps.LatLng(0.0),
draggable: false,
raiseOnDrag: false,
map: map,
labelContent: "some chat",
labelAnchor: new google.maps.Point(30, 20),
labelClass: "labels", // the CSS class for the label
labelStyle: {opacity: 1.0},
icon: "/assets/swell_arrow.png",
visible: true
});
$(document).ready(function()
{
$('.labels').rotate(30);
});
感谢您的任何意见!