[New] Error in GC2M3D4 - Challenge #52: Stockholm yellow pages challenge. August 20, 2017 08:04AM |
Registered: 7 years ago Posts: 2 |
Re: Error in GC2M3D4 - Challenge #52: Stockholm yellow pages challenge. August 21, 2017 01:43AM |
Moderator Registered: 8 years ago Posts: 1,848 |
Re: Error in GC2M3D4 - Challenge #52: Stockholm yellow pages challenge. August 21, 2017 09:30AM |
Moderator Registered: 8 years ago Posts: 21,440 |
Re: Error in GC2M3D4 - Challenge #52: Stockholm yellow pages challenge. August 21, 2017 11:25AM |
Moderator Registered: 8 years ago Posts: 659 |
Re: Error in GC2M3D4 - Challenge #52: Stockholm yellow pages challenge. August 21, 2017 02:00PM |
Admin Registered: 8 years ago Posts: 800 |
Re: Error in GC2M3D4 - Challenge #52: Stockholm yellow pages challenge. August 21, 2017 09:19PM |
Registered: 7 years ago Posts: 2 |
Re: Error in GC2M3D4 - Challenge #52: Stockholm yellow pages challenge. August 24, 2017 01:54PM |
Moderator Registered: 8 years ago Posts: 659 |
Quote
-- populate map
for _, name in Pairs(polynames) do
poly = polygons[name]
for _, coordlist in IPairs(poly.polypoints) do
local mappoly = {}
mappoly.polygon = coordlist
mappoly.region = poly.fullname
mappoly.url = "http://project-gc.com/"
if poly.optional then
mappoly.color = "yellow"
mappoly.urlText = poly.fullname .. " ("..poly.counter.. " caches found)"
elseif poly.cache == nil or poly.cache.gccode == "optional" then
mappoly.color = "red"
mappoly.urlText = poly.fullname
else
mappoly.color = "green"
mappoly.urlText = poly.fullname .. " ("..poly.counter.. " caches found)"
end
TableInsert(map.polygons, mappoly)
end
if poly.cache == nil then
if (not conf.limit) then
TableInsert(logtable, poly.fullname .. ": [missing]")
end
else
TableInsert(logtable, poly.fullname .. ": "..poly.cache.gccode.." - " .. poly.cache.cache_name.. " ("..poly.cache.visitdate..")")
if poly.cache.gccode ~= "optional" then
TableInsert(map.caches, poly.cache.gccode)
end
end
end