Modul:Karte/Work: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 148: Zeile 148:
["zoom"] = args["zoom"],  
["zoom"] = args["zoom"],  
["enablefullscreen"] = "yes", ["resizable"] = "yes"}
["enablefullscreen"] = "yes", ["resizable"] = "yes"}
-- geojson
if wik.pageExists(geojson_fullpagename) then
if wik.pageExists(geojson_fullpagename) then
map_args["geojson"] = geojson_pagename
map_args["geojson"] = geojson_pagename
map_args[1] = ""
map_args[1] = ""
table.insert(map_args, "") -- dummy / keine location
table.insert(map_args, "") -- dummy / keine location
if #geoobjects > 0 then
kategorien["Hat geojson und location/lat/lon"] = true
end
else
-- location/lat/lon
for _, o in ipairs(geoobjects) do
if o["Geokoordinate"] ~= nil then
if map_args[1] ~= "" then
map_args[1] = map_args[1] .. ";"
end
map_args[1] = map_args[1] .. o["Geokoordinate"]
if o["KartePopupTitle"] ~= nil then
map_args[1] = map_args[1] .. "~" .. o["KartePopupTitle"]
if o["KartePopupText"] ~= nil then
map_args[1] = map_args[1] .. "~" .. o["KartePopupText"]
end
end
end
end
end
end
if map_args[1] ~= nil then
if map_args[1] ~= 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)
end
else
 
-- bisherige Vorlagen-Karte
-- bisherige Vorlagen-Karte
if map_args[1] == nil then
local karte_vorlage = "Karte/Legacy"
local karte_vorlage = "Karte/Legacy"
if com.isTrue(args["Work"]) then
if com.isTrue(args["Work"]) then