Skip to content

transitlos.map.pop_range

Shared population range filter for the Ranking / Place-rank tabs.

POP_RANGE_JS defines window.__popRange(host, opts): two editable drop-down boxes (Min / Max population) with the presets 0, 1k, 5k, 10k, 50k, 100k, 500k (Max also "No limit"); the user can open the list or type their own number (5k, 2.5M, 12000). opts = {max: domain maximum, lo, hi: current values (hi == null means "no upper limit"), onChange(lo, hi)}. The returned object has set(max, lo, hi).