This article mainly introduces how Google maps cannot be opened. This article provides a Google Map call case that can be used normally. If you need a friend, refer to Google Maps being blocked by the Chinese firewall, so don't directly reference http://maps.googleapis.com/maps/api/js? Sensor = false & language = en this domain name under the Google map api, but instead to http://maps.google.cn/maps/api/js? Sensor = false. The domain name of google.cn in China is not banned and can be used.
Note: Although google.cn can be used, some js resources referenced to google.com will be output, leading to the latency of map presentation. Therefore, do not put Google map APIs in front of your content, for example, the head label is placed at the end of the content or html end tag to prevent the content on your page from being blank and the browser cannot display the content.
Do not use Windows. the onload event is to be drawn, or Google Map Display is not timely, because the google.com resource is to be loaded, and the google.com resource is intercepted, it will lead to the request timeout (about 2 minutes) to draw a Google Map.
The callback parameter of Google is used to pass a callback function name, which is faster than the window. onload event.
Sample Code:
Google maps cannot be referenced on a website. Solution: Use google.cn