1
0
Fork 0
forked from 0x2620/oxjs

use same protocol as site to get maps js

This commit is contained in:
j 2011-12-17 11:13:02 +05:30
commit 8f3be96828
2 changed files with 3 additions and 2 deletions

View file

@ -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
});