use same protocol as site to get maps js
This commit is contained in:
parent
d2d92c1ae9
commit
8f3be96828
2 changed files with 3 additions and 2 deletions
|
@ -450,7 +450,8 @@ Ox.Map = function(options, self) {
|
||||||
delete window.googleCallback;
|
delete window.googleCallback;
|
||||||
initMap();
|
initMap();
|
||||||
};
|
};
|
||||||
$.getScript('http://maps.google.com/maps/api/js?callback=googleCallback&sensor=false');
|
$.getScript(document.location.protocol
|
||||||
|
+ '//maps.google.com/maps/api/js?callback=googleCallback&sensor=false');
|
||||||
} else {
|
} else {
|
||||||
(function interval() {
|
(function interval() {
|
||||||
window.google ? initMap() : setTimeout(interval, 100);
|
window.google ? initMap() : setTimeout(interval, 100);
|
||||||
|
|
|
@ -35,7 +35,7 @@ Ox.MapImage = function(options, self) {
|
||||||
highlight: [],
|
highlight: [],
|
||||||
normal: []
|
normal: []
|
||||||
},
|
},
|
||||||
src: 'http://maps.google.com/maps/api/staticmap?sensor=false' +
|
src: document.location.protocol + '//maps.google.com/maps/api/staticmap?sensor=false' +
|
||||||
'&size=' + self.options.width + 'x' + self.options.height +
|
'&size=' + self.options.width + 'x' + self.options.height +
|
||||||
'&maptype=' + self.options.type
|
'&maptype=' + self.options.type
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue