看起來像是一件非常基本的事情,但我似乎沒有找到答案。 這裏是我的谷歌地圖代碼:Google Maps API v3:在新窗口打開標記鏈接
var marker = new google.maps.Marker({
position: new google.maps.LatLng(123, 123),
url: "http://www.google.com",
map: map
});
...
google.maps.event.addListener(marker, 'click', function() {
window.location.href = marker.url;
});
我需要做什麼去改變,去打開新窗口中的鏈接?
非常感謝!
看看我的答案! – sabotero