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 = (lat1l1+lat2l2)/2
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..', {"lat":'..pp[i].lat..',"lon":'..pp[i].lon..',"size":"200","color":"'..pp[i].col..'","strokeColor":"","shape":"circle","text":"","textAlign":"left","textBaseline":"middle","textDx":0,"textDy":1,"textFontSize":10}'
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..'\n }}\n<div style="text-align: left; direction: ltr; font-size:70%; color:grey">{{#tag:maplink|\n[ {"type": "FeatureCollection", "features": ['
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]..nome..'}}<br/>'
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]..nome..'}}<br/>'
end
end