我的谷歌地图的代码是:谷歌地图 - 在信息窗口内容的轨道click事件
function initialize(mapdata){
var LatLng=new google.maps.LatLng(mapdata[0],mapdata[1]);
var myOptions= {
zoom:16,
scaleControl:true,
streetViewControl:false,
panControl:true,
mapTypeControl:true,
center:new google.maps.LatLng(mapdata[0],mapdata[1]),
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("map"), myOptions);
document.getElementById("map").style.height="200px";
document.getElementById("map").style.width="450px";
var infowindow=new google.maps.InfoWindow();
var marker=new google.maps.Marker({position:LatLng});
marker.setMap(map);
google.maps.event.addListener(marker,'mouseover',function(){
infowindow.setContent(<div style="text-align:right; font-size:8pt; color:black;">click here<a href="http://www.google.com/"></a> </div>');
infowindow.open(map,marker);
});
}
我的问题是我怎么可以跟踪与分析在信息窗口内容点击事件之后?
由于提前, 伊雷娜
先格式化您的代码。谢谢 – hsz