Modulo:Sandbox/M.casanova/DatiMappa: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 53:
local l1 = 1-math.log(math.tan( math.pi*(1 + lat1/90)/4))/math.pi
local l2 = 1-math.log(math.tan( math.pi*(1 + lat2/90)/4))/math.pi
centroy = (
centroy = (math.atan(math.exp(math.pi*(1-centroy)))-math.pi/4)*360/math.pi
end
Riga 93:
ss = ss..zz[zoom+1]..'" }'
for i=1,#pp do
ss = ss..',
ss = ss..',{"lat":'..pp[i].lat..',"lon":'..pp[i].lon..',"shape":"square","size": "0","text":"'..pp[i].num..'","textAlign":"center","textBaseline":"bottom","textDx":0,"textDy":5.5,"textFont":"Arial","textFontSize": 11,"textFontWeight":"bold","textColor":"white"}'
end
ss = ss..'
for i=1,#pp do
if (i>1) then ss = ss..',' end
Riga 112:
for i=1,#pp do
if (i == math.floor(#pp/2 +0.5)) then ss = ss..'</small>\n|-\n|width=50% valign=top|<small>' end
ss = ss..'{{NumLegenda|'..pp[i].num..'|'..pp[i].col..'|'..pp[i]
end
ss = ss..'</small>\n|}'
Riga 118:
if (dida == '') then ss =ss..'\n|style="font-size:90%"|' else ss = ss..'<br/>' end
for i=1,#pp do
ss = ss..'{{NumLegenda|'..pp[i].num..'|'..pp[i].col..'|'..pp[i]
end
end
|