Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Chinese support https url load #2019

Open
ccwxl opened this issue Sep 27, 2017 · 0 comments
Open

Chinese support https url load #2019

ccwxl opened this issue Sep 27, 2017 · 0 comments

Comments

@ccwxl
Copy link

ccwxl commented Sep 27, 2017

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?';
      }
    }
  };
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant