Module:Sandbox/Jackmcbarn: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
add lambertConformalConic function
Jackmcbarn (talk | contribs)
test the projection
Line 20:
end
 
function p.mainpairs(frame)
local args, args_mt = { '__pairs was not used' }, {}
function args_mt.__pairs( t )
Line 26:
end
return frame:expandTemplate{ title = 'Echo', args = setmetatable( args, args_mt ) }
end
 
function p.main(frame)
local locmap = require('Module:Location map')
local retval = {}
for long=-165,-30,15 do
for lat=40,90,5 do
retval[#retval + 1] = tostring(locmap.mark(frame, {'Canada', long=long, lat=lat, outside='1'}))
end
end
return locmap.top(frame, {'Canada'}) .. table.concat(retval) .. locmap.bottom(frame, {'Canada'})
end