Strict Standards: htmlentities(): Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in /www/wwwroot/daxuecn/www/map.php on line 3
function showAddress() {
var address="������ͨ��W���ЌWÔº"; //»ñÈ¡×ֶεÄÖµ
map = new GMap2(document.getElementById("mymap"));
geocoder = new GClientGeocoder();
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
map.setCenter(point, 13); //Ëõ·ÅµÄ¼¶±ð,Êý×ÖÔ½´ó¾«¶ÈÔ½¸ß,×î¸ß²»³¬¹ý22,½¨ÒéÉèÖÃ13µ½15
var marker = new GMarker(point);
map.addOverlay(marker); //ÏÔʾµØÍ¼±ê¼Ç
marker.openInfoWindowHtml(address);
map.addControl(new GSmallMapControl());//ÏÔʾµØÍ¼Ëõ·Å¿ØÖÆÌõ,´Ë´¦ÎªÐ¡¿ØÖÆÌõ.
map.enableDoubleClickZoom(); //Ö§³ÖË«»÷Ëõ·Å
}
);
}
}
window.onload=showAddress;