Module:Russo-Ukrainian War detailed map (oblasts): Difference between revisions

Content deleted Content added
m Improved ___location indexing
Optimized ___location indexing
Line 5:
m.containerArgs.width = 1000
 
local mark, label, label2
for i = m.marks.old_len+1, #m.marks do
for _, mark in ipairs(m.marks) do--shouldn't iterate over everything everytime
mark = m.marks[i]
label = mark.label
if label then
Line 15 ⟶ 16:
m.marks[label] = mark
end
if mark.label_size == 0 and mark.position and string.sub(mark.mark, 1, 1) == 'L' then -- is the last expression avoidable?
mark.label_size = sizes[mark.marksize]
end
end
 
-- Arranged by oblasts in alphabetical order. Crimea is at the bottom.
local mm = m.marks
--Dnipropetrovsk Oblast
Line 45 ⟶ 46:
mm["Zalizne"].position = lp.l
 
local marks = {
--Donetsk Oblast
{ lat = "48.196", long = "37.532", mark = mk.ukr, marksize = 6, label_size = 50--[[935]], position = lp.l, label = "Novoselivka Persha", label_top = -1, link = "uk:Новоселівка Перша" }, -- obstructed by Novopokrovske