dafei 2016-11-16 18:23:01 5636次浏览 1条评论 0 0 0

转载: http://blog.sina.com.cn/s/blog_4696b3760100ntut.html

//formatted_address 坐标位置信息
function attachSecretMessage(marker, number, formatted_address) {
    infowindow.push(
        new google.maps.InfoWindow({
            content: formatted_address,
            size: new google.maps.Size(50,50)
        })
    );
    google.maps.event.addListener(marker, 'click', function() {
        for (var j=0; j<infowindow.length; j++) {
            infowindow[j].close();
        }
        infowindow[number].open(map,this);
    });
}
您需要登录后才可以评论。登录 | 立即注册