這個問題我解了好久,簡單的作法是採用
http://googlemapsbook.com/2007/01/22/extending-gmarker/
http://googlemapsbook.com/2007/03/06/clickable-labeledmarker/
的解決方案
下載 http://google-maps-api.googlegroups.com/web/labeledMarker.js?gda=CyI1HkAAAAApUqsX-WXty5Tu-XmbEKmxnfu1955LlIyxx9ZaA58t_DE72RpmLLwWH5dSX_LoXxYH1DI0V7_0lrJuE6jdmmyJ
之後,用以下的方法引用即可
<script src="labeledmarker.js" type="text/javascript"></script>
……
var point0 = new GLatLng(32.810166495054,35.448489560853); var mark0=new LabeledMarker(point0,{title:"加利利",labelText:"加利利"}); map.addOverlay(mark0);