Skip to content

shadcn.io is an independent project built on shadcn/ui

City Growth Timeline Map Block for Solid

Eight census decades of the Las Vegas valley on a live map: a slider and Play spread the built-up edge from 1950 to 2020, with people and area per step.

On this page5 sections
UI library: Ark UI

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

Watch a city spread across its valley, with this city growth timeline map for Solid with Ark UI. Builtline, an urban growth atlas, draws the built-up extent of the Las Vegas valley for every census decade from 1950 to 2020 as polygons on a live Map that follows your theme, from the downtown townsite and a separate Henderson to one city wall to wall between the mountains. Each decade up to the chosen year adds one faint layer of the same shade, so the old core is darkest and the newest edge lightest; the year's edge is a bold line, earlier edges hairlines, and the 2020 urban area waits ahead as a dashed line. A Slider in the band under the map scrubs the decades, and Play steps through all eight a second apart and stops at 2020 (the same Button pauses it). A card over the map gives the year, its people and its built-up area with the growth since the decade before, and eight cells under the band hold every decade's area, a bar against 2020 and its population; pressing a cell jumps to it. Built from Map, Slider, Button and Guides. For planning departments, newsrooms, atlases and any story about growth over time.

FAQ

Where do the extents and the populations come from?

The 2020 edge is the Census Bureau's 2020 urban area for Las Vegas, Henderson and Paradise, smoothed and simplified to 40 points; the earlier edges were sketched inside it at authoring time, growing out from the old centres (downtown, the Strip, North Las Vegas, Henderson, then Summerlin and the south-west), so the extents are sample data, not surveyed ones. The populations are Clark County's census counts, from 48,289 in 1950 to 2,265,461 in 2020. Everything is typed in the file; nothing is fetched but the map's tiles.

How is the area worked out?

ringArea measures each ring of a decade's polygons on the sphere and the parts are added up, so the square kilometres in the card and the cells are those of the shapes you see. Growth is the difference from the decade before, and each cell's bar is its area as a share of 2020's.

Why does the shading get darker toward the middle?

Every decade up to the chosen year is drawn as one more translucent layer of the same chart colour. Land built in 1950 sits under all eight layers, land first built in 2010 under two, so the shade reads as age without a second colour. The bold edge marks the chosen year, the thin edges earlier ones, and the dashed edge the 2020 urban area still to come.

How does Play work, and does it respect reduced motion?

Play steps one decade a second from the year shown (or from 1950 once it has reached 2020) and stops by itself at 2020; while it runs the button reads Pause and stops it where it is. With reduced motion turned on, Play shows 2020 at once instead. The status message speaks the year's figures when it settles, not at every step.

Can I use it without a mouse?

Yes. The year is a slider: the arrow keys step a decade, Home and End jump to 1950 and 2020. Play and Pause is a button, every decade cell is a button with a pressed state, and the map takes the arrow keys and plus and minus once focused. A polite message reads the year, its people and its area once it settles.

How does it look on a phone?

The map comes first with a smaller year card (the year and its people), framed tighter round the valley; then the Play button and the slider with its decade labels, and the eight decade cells in two rows of four. The layout keeps its height through every year.