Modulo:Maplink/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica
mNessun oggetto della modifica
Riga 85:
agg(txt,'"\n|-\n|style="width: ',largh,'px;"|')
end
-- grafico
local gr1 = {}
if (math.abs(centroy)<20) then
Riga 104 ⟶ 105:
args = { lat = centroy, lon = centrox, zoom = zoom, width = largh, height = altezza, minimap = 0, table.concat(gr2) }
} )
agg(txt,'<div style="text-align:left;font-size:70%;color:grey"><span style="font-size:125%">')
-- maplink
local ml = {{#tag:}
agg(ml,'<maplink|\n text="[Schermo intero]">[ {"type": "FeatureCollection", "features": [')
for i=1,#pp do
if (i>1) then agg(txtml,',') end
agg(txtml,'{"type":"Feature","geometry":{"type":"Point","coordinates":[',pp[i].lon,',',pp[i].lat,'] }')
agg(txtml,',"properties":{"title": "',pp[i].nome,'","description":"","marker-symbol": "-number',gruppo,'","marker-size":"medium","marker-color":"',pp[i].col,'" } }')
end
agg(ml1,'] } ]</maplink>')
agg(txt,'] } ]|zoom=',zoom,'|latitude=',centroy,'|longitude=',centrox,'|text="[Schermo intero]"}}</span>')
agg(txt, frame:preprocess( table.concat(ml)))
agg(txt,'</span><div style="float:right" class="plainlinks nourlexpansion">[https://wikimediafoundation.org/wiki/Maps_Terms_of_Use Wikimedia] | © [https://www.openstreetmap.org/copyright OSM]</div></div>')
 
if (cornice == 1) then
Riga 133 ⟶ 138:
agg(txt,'</small>\n|}')
end
return frame:preprocess(table.concat(txt))
else
return err