Google Maps was blocked by the China Firewall, so you don’t need to directly quote the Google Maps API under the domain name http://maps.googleapis.com/maps/api/js?sensor=false&language=en, but change it to http://maps.google.cn/maps/api/js?sensor=false address. Google.cn’s domain name in China has not been blocked and can be used.
Note: Although google.cn can be used, it will output some resources referenced by js to google.com, resulting in delayed map rendering. So don't put the Google Maps API in front of your content, such as in the head tag, but put it at the end of the content or html end tag to prevent your page content from being blank and the browser cannot display the content.
Don't use the window.onload event to draw, either, or Google Maps is not displayed in time, because Google.com resources are loaded, and the Google.com resources are intercepted, which will cause Google Maps to be drawn only if you know that the request timeout (about 2 minutes).
Use Google's callback parameters to pass a callback function name, which has been tested to render Google Maps faster than using the window.onload event.
Sample code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Site Quote Google Maps Solution: Use google.cn</title></head><body><div id="map_canvas" style="height: 350px;width: 500px;"></div></body><script type="text/javascript" src="http://maps.google.cn/maps/api/js?sensor=false&callback=renderGoogleMap"></script><script type="text/javascript"> function renderGoogleMap() { var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'address': 'Guilin City Center Square' }, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); } else { alert("Geocode was not successful for the following reason: " + status); } }); var mapOptions = { zoom: 17, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); }</script></body></html>