15.075
Bearbeitungen
(fix zeileSemantikBrowsenAbfrage_()) |
(p.zeileGeoDaten_(fbdata) gleichlautende Karte) |
||
| Zeile 128: | Zeile 128: | ||
local geokoordinate = que.getValues(fbdata.fullpagename, "Geokoordinate", true) | local geokoordinate = que.getValues(fbdata.fullpagename, "Geokoordinate", true) | ||
local geojson = que.getValues(fbdata.fullpagename, "GeoJson", true) | local geojson = que.getValues(fbdata.fullpagename, "GeoJson", true) | ||
if #geokoordinate > 0 or | if #geojson > 0 then | ||
geojson = geojson[1] | |||
else | |||
geojson = "GeoJson:" .. fbdata.pagename | |||
if not wik.pageExists(geojson) then | |||
geojson = nil | |||
end | |||
end | |||
if #geokoordinate > 0 or geojson ~= nil then | |||
t = t .. "<dt>[[Attribut:Geokoordinate|Geo-Daten]]</dt><dd>" | t = t .. "<dt>[[Attribut:Geokoordinate|Geo-Daten]]</dt><dd>" | ||
local first = true | local first = true | ||
| Zeile 139: | Zeile 147: | ||
t = t .. geo.osmLink(fbdata.frame, g) | t = t .. geo.osmLink(fbdata.frame, g) | ||
end | end | ||
if | if geojson ~= nil then | ||
if not first then | if not first then | ||
t = t .. ",<br>" | t = t .. ",<br>" | ||
end | end | ||
t = t .. "[[" .. geojson | t = t .. "[[" .. geojson .. "|GeoJson-Karte]]" | ||
end | end | ||
t = t .. "</dd>" | t = t .. "</dd>" | ||