From 8f3be96828c3545a787122b9e4bf65e60fbaab4d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 17 Dec 2011 11:13:02 +0530 Subject: [PATCH] use same protocol as site to get maps js --- source/Ox.UI/js/Map/Ox.Map.js | 3 ++- source/Ox.UI/js/Map/Ox.MapImage.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 });