18.295
Bearbeitungen
(fix zeileGeoDaten()) |
(zeileGeoDaten() doppelte Koordinaten ausfiltern) |
||
| Zeile 103: | Zeile 103: | ||
local t = "" | local t = "" | ||
if fbdata.geoobjects ~= nil then | if fbdata.geoobjects ~= nil then | ||
for | for i, o in ipairs(fbdata.geoobjects) do | ||
local geokoordinate = o["Geokoordinate"] | |||
if t ~= "" then | if geokoordinate ~= nil then | ||
local double = false -- doppelte Koordinaten ausfiltern | |||
for d = 1, i - 1 do | |||
if fbdata.geoobjects[d]["Geokoordinate"] == geokoordinate then | |||
double = true | |||
break | |||
end | |||
end | |||
if not double then | |||
if t ~= "" then | |||
t = t .. ",<br>" | |||
end | |||
t = t .. geo.osmLink(fbdata.frame, geokoordinate) | |||
end | end | ||
end | end | ||
end | end | ||