What's On VegasLive map

Home / Live map / How it's made

How this map is made

The live map is one static HTML page: MapLibre GL draws OpenFreeMap's vector tiles and our own 3D buildings from OpenStreetMap, a three.js layer adds the aircraft and the landmark models, and a single small Vercel function relays live flights from adsb.lol, cached at the edge for 10 seconds.

This page is for the people who want to know how. Everything below is from the code and the git history, and the shapes are free to download as GeoJSON. Open the map.

The stack

  • MapLibre GL JS 4.7.1From cdnjs. The base map is OpenFreeMap's "dark" style (OpenMapTiles vector tiles of OpenStreetMap). We hide its flat buildings and draw our own: 686 OpenStreetMap footprints with heights, as a fill-extrusion layer from GeoJSON baked into the page.
  • three.js r128, as a MapLibre custom layerThe aircraft and helicopters (the shared layer from our own @whatson/core, which What's On Miami runs too), and the landmarks: the Sphere with its ad screen, the STRAT, Paris's Eiffel Tower at half scale, Allegiant Stadium, the Luxor pyramid and Sphinx, Excalibur, the Hard Rock guitar tower, the Fremont Street canopy, the Welcome sign, the Bellagio fountains as water, and New Year fireworks. Every model is built in code from boxes, cylinders and extrusions: no model files, nobody else's artwork.
  • Plain Node, no framework, no npm dependenciesThe build is a few Node 22 scripts that read JSON from data/ and write HTML. The only package is our own shared code, vendored as a tarball, and it has no dependencies either. The map page carries its data inline, so it opens with no API calls of ours except the flight feed.
  • VercelStatic files plus four small functions: the flight relay (/api/aircraft), the MCP server (/mcp) so Claude and ChatGPT can ask for events and prices, and two forms (submit an event, advertise). A road-closure and congestion relay (NV Roads, TomTom) is written but switched off: no keys on the live site, so the Roads tab stays hidden.

Every live data source

WhatWhere fromHow often, and caching
Aircraft and helicoptersadsb.lol (ADS-B, ODbL): everything within 30 nautical miles of the StripThe page asks /api/aircraft every 15 seconds and moves each aircraft along its heading in between. The function sends Cache-Control: public, s-maxage=10, stale-while-revalidate=20, so Vercel's edge answers repeats and adsb.lol sees about one request per 10 seconds per edge region, however many people are watching. Checked 18 Nov 2026: first request x-vercel-cache: MISS, the next two HIT at age 2 and 5.
Base mapOpenFreeMap vector tiles (OpenMapTiles schema, OpenStreetMap data)Straight from OpenFreeMap's servers to your browser, cached by the browser. No key.
3D buildingsOpenStreetMap through the Overpass API (scripts/fetch-osm-buildings*.mjs)Fetched by hand when the map needs more of the city, and baked into the page at build.
Hotel pricesThe same 26 Strip resorts, lowest rate on the big booking sites for 2 adults, before taxes and resort feesRe-checked every few days for the nights ahead, then rebuilt. The map shows one number per night: the median, with a sold-out resort counted as the dearest, and how many sold out. Calendar days and the price card are coloured by that night against a quiet night (1.35×, 1.8× and 2.6× steps). Never a single hotel's rate.
EventsThe LVCVA convention calendar (5,000+ attendees), plus sports weekends and holidaysRead through the LVCVA's own search page on each data refresh; baked in at build.
MonorailLine and stations from OpenStreetMap; hours from the operatorTrains are simulated from the clock, not tracked: running 7am to midnight Monday, to 2am Tuesday to Thursday, to 3am Friday to Sunday, and nonstop for race week (17 Nov 7am to 23 Nov 3am). 7 stations.
Bellagio fountainsThe published show scheduleEvery 30 minutes from 3pm (noon at weekends) until 8pm, then every 15 minutes until midnight; about four minutes a show. Computed in the browser in Las Vegas time. The real fountains skip shows in high wind, which we can't see, so the map says "scheduled".
Street circuitbacinger/f1-circuits (us-2023, MIT)A fixed line of 100 points. The race-week line is ours to draw, not anyone's official map.
WeatherNational Weather Service, the latest observation at Harry Reid airport (KLAS)Every 10 minutes, from the browser (public domain, no key).
Old VegasWikipedia: positions, years and room counts for 23 lost casinosFetched by hand; baked in.
Club line-upsEach club's own published calendarWeekly; baked in.

What's approximate

  • Aircraft between updatesA position is at most 15 seconds old, then extrapolated. Aircraft that don't broadcast ADS-B, or that no adsb.lol receiver hears, aren't there.
  • Hotel tower coloursTowers glow by height, not by price: the price is a total for the night across the panel, so it colours the calendar, not a building. Track view colours the towers whose rooms see the circuit by who says so (first-hand, the hotel, travel guides).
  • BuildingsOpenStreetMap heights, or floors × 3.3 m. A named resort with no height gets a 22 m podium so the ends of the Strip aren't flat. The Old Vegas ghost towers are a guess from the room count (rooms ÷ 12 metres, between 40 and 160).
  • PlacesClub and venue positions are placed by hand on the right building. The circuit is 100 points, so corners are smoothed.
  • Trains and fountainsBoth run from the timetable. A train on the map is where one should be, not where one is.
  • PricesSampled nights, before taxes and resort fees, and a sold-out resort counts as dearer than any room still on sale. Most price tools leave sold-out hotels out, which makes the busiest nights look cheap.

Performance

Measured from this build. The map page is 668 KB of HTML (163 KB gzipped, 121 KB with Brotli), and 370 KB of that is the 3D buildings as GeoJSON. The two libraries come from cdnjs: MapLibre GL 4.7.1 is 773 KB minified (206 KB gzipped) plus 64 KB of CSS, and three.js r128 is 589 KB (145 KB gzipped). Then two Google Fonts (Bungee, Atkinson Hyperlegible), the vector tiles for the view, Vercel and PostHog analytics, and one small JSON feed every 15 seconds. No framework, no bundler: what you download is what we wrote.

Deep links

The view lives in the address, so any state can be shared. Combine them with &; the map rewrites the address as you go.

LinkWhat it opens
?day=2026-11-21Open on a night: the calendar, that night's typical room price and what's on.
?day=2026-11-21&ev=formula-1-las-vegas-grand-prixA night with one event picked (the event ids are the /events/ page names).
?view=rank&sort=priceThe events ranked instead of the calendar; sort by crowd (default), price or date.
?tab=skyOpen the Sky panel: the aircraft overhead right now.
?sky=dayForce daylight (or ?sky=night); without it the sky follows the sun over Las Vegas.
?night=1Nightlife mode: club beacons with tonight's headliner, towers in neon.
?track=1Track view: the circuit glows and the towers whose rooms see it light up, coloured by who says so.
?old=1Old Vegas: the lost casinos as sepia ghost towers where they stood.
?mode=workConventions only (or ?mode=fun for sports weekends and holidays).
?club=omniaFly to a club and open its card with the line-up (ids as on /nightlife/).
?tour=discover&stop=sphereStart the Discover tour, optionally at one stop; ?tour=old-vegas runs the lost-casino tour.
?c=-115.1700,36.1150,15.5,60,-20The camera: longitude, latitude, zoom, pitch, bearing. The map writes this once you move it.
?units=cCelsius for the weather (?units=f for Fahrenheit); otherwise from your language.
?clean=1Just the city: no panels, labels, controls or markers. What our press images and the home masthead use.
?focus=monorailThe monorail bright at every zoom with every station named, towers dimmed.
?fountains=1Run a Bellagio fountain show now instead of waiting for the next slot.
?demoMade-up flights for quiet hours, labelled as a demo, through the same aircraft layer.

Licences and credits

  • Map data© OpenStreetMap contributors (ODbL): the base map, the 3D buildings and the monorail. Tiles: OpenFreeMap, © OpenMapTiles.
  • Aircraftadsb.lol, Open Database License (ODbL).
  • Circuit linebacinger/f1-circuits, © 2019-2025 Tomislav Bacinger, MIT License.
  • Facts and photosWikipedia for years, rooms and positions of the lost casinos and the resorts; tour and casino photos from Wikimedia Commons, credited on each card. Weather: National Weather Service (public domain).
  • CodeMapLibre GL JS (BSD-3-Clause), three.js (MIT). The 3D models are our own, drawn in code.
  • Our downloads/data/: our curation under CC BY 4.0, the OpenStreetMap-derived monorail under ODbL, the circuit under MIT. Each file says which.

What we learned

  • The aircraft rendered inside outMapLibre's Mercator y grows southwards, so our projection matrix for the three.js layer flips Y to match the map. A flip is a mirror: every face winds the wrong way and three.js culls the outside. The first fix made the materials double-sided (7 Nov, commit 1deead5); it looked right but lit wrong. The proper fix, the same day (77c61dc), mirrors each model's geometry once in X, which cancels the flip, so faces point out and light correctly.
  • Planes were cut in half by towersInside one depth buffer, a plane passing behind a tower lost the part behind it, which reads as a glitch, not as depth. The aircraft now draw in their own pass after clearing depth, so they always sit above the buildings (26d9532); the landmark models still hide behind towers in front of them.
  • Buildings were missing, Excalibur among themThe OpenStreetMap fetch read simple outlines only, so anything mapped as a multipolygon never arrived. Each outer ring is now a building (7b96f2f).
  • A listing's pin is not the buildingWynn's pin sat on its golf course. Hotel labels now move to the hotel's tallest named OpenStreetMap tower when the pin is more than 120 m off it (8bfaaec).
  • Read the licence of the free APIThe weather came from Open-Meteo until we noticed its free tier is non-commercial, and the site has affiliate links. It now reads the National Weather Service, which is public domain (535dfe6).

Questions about the data or the rendering: write to us. Not affiliated with Formula 1 or the Las Vegas Grand Prix. Prices are a typical room across the panel, never one hotel's rate.