diff --git a/source/Ox.UI/js/Map/Ox.Map.js b/source/Ox.UI/js/Map/Ox.Map.js index 5d58e30b..b0d2a1ae 100644 --- a/source/Ox.UI/js/Map/Ox.Map.js +++ b/source/Ox.UI/js/Map/Ox.Map.js @@ -450,7 +450,8 @@ Ox.Map = function(options, self) { delete window.googleCallback; 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 { (function interval() { window.google ? initMap() : setTimeout(interval, 100); diff --git a/source/Ox.UI/js/Map/Ox.MapImage.js b/source/Ox.UI/js/Map/Ox.MapImage.js index 7f74e24c..18f6fbc7 100644 --- a/source/Ox.UI/js/Map/Ox.MapImage.js +++ b/source/Ox.UI/js/Map/Ox.MapImage.js @@ -35,7 +35,7 @@ Ox.MapImage = function(options, self) { highlight: [], 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 + '&maptype=' + self.options.type });