Modulo:Mapframe: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
riportato dalla versione in sandbox il supporto per la legenda (parametro elenco) |
m +ipairs, piccola semplificazione |
||
Riga 174:
if geo == -1 then
m_dati = { type = 'FeatureCollection', features = {} }
for i,
m_dati.features[i] = {
type = 'Feature',
properties = {
['marker-color'] = point.col,
title = point.nome,
description = point.desc
},
geometry = {
type = 'Point',
coordinates = {
}
}
▲ m_dati.features[i].properties['marker-symbol'] = points[i].simb
▲ m_dati.features[i].properties['marker-size'] = points[i].dsimb
end
m_dati = mw.text.jsonEncode(m_dati)
|