angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Chinese support https url load

Open ccwxl opened this issue 6 years ago • 0 comments

now options:

  getScriptUrl = function(options) {
    if (options.china) {
      return 'http://maps.google.cn/maps/api/js?';
    } else {
      if (options.transport === 'auto') {
        return '//maps.googleapis.com/maps/api/js?';
      } else {
        return options.transport + '://maps.googleapis.com/maps/api/js?';
      }
    }
  };

Can I change it to the url of HTTPS Adjust the following:

  getScriptUrl = function(options) {
    if (options.china) {
      if (options.transport === 'auto') {
        return 'http://maps.google.cn/maps/api/js?';
      } else {
        return options.transport + '://maps.google.cn/maps/api/js?';
      }

    } else {
      if (options.transport === 'auto') {
        return '//maps.googleapis.com/maps/api/js?';
      } else {
        return options.transport + '://maps.googleapis.com/maps/api/js?';
      }
    }
  };

ccwxl avatar Sep 27 '17 04:09 ccwxl