我将 google map v3 与 jquery.gmap.js ( http://labs.mario.ec/jquery-gmap/jquery.gmap.js ) 一起使用。我的图标 .png 有几个标记,我想给它们加上阴影。在 jquery 文件的默认设置中,我们有阴影,但是当我使用它时不显示。我用
markers:[
{
latitude: 12.681291,
longitude: 13.361658,
html: 'some txt',
popup: true,
icon: {
image: "img/my-marker-1.png",
shadow: "http://www.google.com/mapfiles/shadow50.png",
iconsize: [20, 34],
shadowsize: [37, 34],
iconanchor: [9, 34],
shadowanchor: [6, 34]
},
{
latitude: 12.589221,
longitude: 13.251628,
html: 'some txt 2',
popup: true,
icon: {
image: "img/my-marker-2.png",
shadow: "http://www.google.com/mapfiles/shadow50.png",
iconsize: [20, 34],
shadowsize: [37, 34],
iconanchor: [9, 34],
shadowanchor: [6, 34]
},
....
]