angular-ui/angular-google-maps

Chinese support https url load

ccwxl opened this issue · 0 comments

ccwxl commented

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?';
      }
    }
  };