-1
我创建了一个定制的谷歌地图,带有标记和自定义信息窗口。 想要标记下面的信息窗口而不是顶部。 我通过定位信息窗口的经度和纬度来实现这一点。 但我在google api中遇到了pixeloffset属性,但它不起作用。 我用pixeloffset不能在谷歌地图工作
var infoBubble = new InfoBubble({
map: map,
content: '<div>Some label</div>',
position: new google.maps.LatLng(26.890076,75.755000),
shadowStyle: 1,
padding: 0,
backgroundColor: 'rgb(57,57,57)',
borderRadius: 4,
arrowSize: 0,
borderWidth: 1,
borderColor: '#2c2c2c',
disableAutoPan: true,
hideCloseButton: true,
pixelOffset: new google.maps.Size(-100,0)
});
infoBubble2.open(map,marker);
你是什么意思是 “不工作” ? – geocodezip