0
我使用谷歌地圖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]
},
....
]
謝謝!但是我沒有「google.maps.visualRefresh = true;」,所以我可以在我的代碼或jquery.gmap.js代碼中將其更改爲false。我在文檔準備就緒功能後放入了「google.maps.visualRefresh = flase;」但沒有任何反應 – onlinepch
這可能是原因 http://stackoverflow.com/questions/18370309/shadow-not-showing-google-maps- marker – CeritT
jQuery gMap - Google Maps API V3版本是2.1.2,即使如此, 所以我不能使用標記陰影,是嗎? – onlinepch