angular-google-maps
angular-google-maps copied to clipboard
Chinese support https url load
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?';
}
}
};