MediaWiki:Gadget-MapFrame.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 6:
var map = $('div #mapdiv');
map.each(function() {
var self = validateMap(map);this,
$self = $(this);
var exsrc = exhtml+'lat='+map.data("lat")+'&lon='+map.data("long")
validateMap($self);
+'&zoom='+map.data("zoom")+'&layer='+map.data("layer")+'&lang='+wgContentLanguage+'&name='+wgPageName;
var exsrc = exhtml+'lat='+map$self.data("lat")+'&lon='+map$self.data("long")
+'&zoom='+map$self.data("zoom")+'&layer='+map$self.data("layer")+'&lang='+mw.config.get('wgContentLanguage')+'&name='+mw.config.get('wgPageName');
var ifstr = '<iframe src="'+exsrc+'" width="'+map$self.data("width")+'" height="'+map$self.data("height")
+'" style="border:0"></iframe>';
map$self.html(ifstr);
if ( map$self.data("layer").indexOf('O') < 0 ) {
$('.vcard a').attr('href', function () { return this.href.replace('layer=O','layer='+map$self.data("layer")[0]) });
}
});