• 2
  • 新人请关照

ditu.google.cn无法访问

今天突然发现以前的项目google地图无法显示了,看了一下,是ditu.google.cn/maps/js资源拿不到了,有没有碰到同样问题的?怎么解决的呀

阅读 3.3k
评论
    5 个回答
    • 1
    • 新人请关照

    貌似2020.2.3之后ditu.google.cn就不能用了。你有解决方案了告诉我下,我目前正在找。

    Hello Google Maps Platform Customer,
    
    We are writing to let you know that due to low usage, Google Maps Platform APIs will no longer be hosted on the google.cn domain starting February 3, 2020. An application you own has recently called a Google Maps Platform API from the google.cn domain.
    
    What do I need to know?
    Starting February 3, 2020, Google Maps Platform APIs will no longer be hosted from the google.cn domain. All requests to load Google Maps Platform APIs from the google.cn domain will return an error.
    
    What do I need to do?
    In order to avoid errors, you will need to update your project(s) that call a Google Maps Platform API from the google.cn domain to use the googleapis.com domain instead.
    
    You can search your code for google.cn/maps to identify where the update needs to be made. If you would like to add Chinese localization to your requests, you can use the region and language parameters.
    
    The following example updates a request from google.cn to googleapis.com:
    
    Invalid request to google.cn domain
    http://maps.google.cn/maps/api/js?key=YOUR_API_KEY
    Valid request to googleapis.com domain with region and language
    https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&region=CN&language=zh-CN
    Your project(s) listed below have made requests to the google.cn domain in the past week and may be affected by this change: