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, =point 1,in #ipairs(points) do
m_dati.features[i] = {
type = 'Feature',
properties = {},
m_dati.features[i].properties ['marker-symbol'] = points[i]point.simb,
['marker-color'] = point.col,
m_dati.features[i].properties ['marker-size'] = points[i]point.dsimb,
title = point.nome,
description = point.desc
},
geometry = {
type = 'Point',
coordinates = { points[i]point.lon, points[i]point.lat }
}
}
m_dati.features[i].properties['marker-symbol'] = points[i].simb
m_dati.features[i].properties['marker-color'] = points[i].col
m_dati.features[i].properties['marker-size'] = points[i].dsimb
m_dati.features[i].properties.title = points[i].nome
m_dati.features[i].properties.description = points[i].desc
end
m_dati = mw.text.jsonEncode(m_dati)