点标记就是给er添加click事件啊,Google map有很多api可以用的 function createMarker(latlng){ var er = new GMarker(latlng); er.value = number; GEvent.addListener(er, "click", function(){ var html = "<b>#" + "地点" + "</b><br/>"; map.openInfoWindowHtml(latlng, html); }); return er; } 具体的google map api 在这里http://code.google.com/apis/ajax/playground/#tile_detector你自己也可以搜索google code playground
你上面的气泡可以用div图片模拟,用css控制显示的位置
连线可能要用到绘图方面的,在2点之间绘点
function createMarker(latlng){
var er = new GMarker(latlng);
er.value = number;
GEvent.addListener(er, "click", function(){
var html = "<b>#" + "地点" + "</b><br/>";
map.openInfoWindowHtml(latlng, html);
});
return er;
}
具体的google map api 在这里http://code.google.com/apis/ajax/playground/#tile_detector你自己也可以搜索google code playground
http://code.google.com/apis/ajax/playground