15.458
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 144: | Zeile 144: | ||
-- Karte | -- Karte | ||
local map_args = { | local map_args = { "", ["zoom"] = args["zoom"], -- gemeinsame settings | ||
["width"] = args["width"], ["height"] = args["height"], | ["width"] = args["width"], ["height"] = args["height"], | ||
["enablefullscreen"] = "yes", ["resizable"] = "yes"} | ["enablefullscreen"] = "yes", ["resizable"] = "yes"} | ||
-- geojson | -- geojson | ||
if wik.pageExists(geojson_fullpagename) then | if wik.pageExists(geojson_fullpagename) then | ||
map_args["geojson"] = geojson_pagename | map_args["geojson"] = geojson_pagename | ||
table.insert(map_args, "") -- dummy / keine location | table.insert(map_args, "") -- dummy / keine location | ||
if #geoobjects > 0 then | if #geoobjects > 0 then | ||
kategorien["Hat geojson und location/lat/lon"] = true | kategorien["Hat geojson und location/lat/lon"] = true | ||
end | end | ||
else | |||
-- location/lat/lon | -- location/lat/lon | ||
for _, o in ipairs(geoobjects) do | for _, o in ipairs(geoobjects) do | ||
if o["Geokoordinate"] ~= nil then | if o["Geokoordinate"] ~= nil then | ||
| Zeile 174: | Zeile 171: | ||
end | end | ||
end | end | ||
if map_args[1] ~= nil then | if map_args[1] ~= "" or map_args["geojson"] ~= nil then | ||
mw.logObject(map_args, "map_args") | mw.logObject(map_args, "map_args") | ||
t = t .. frame:callParserFunction("#display_map", map_args) | t = t .. frame:callParserFunction("#display_map", map_args) | ||