~/dominik.polzer
~/blog/vi-map

GTA VI map: an interactive 2D map and 3D view of Leonida

$ open ./live →

Open VI-map → · Source on GitHub

A fan-made map of Leonida, the state where GTA VI takes place, with two ways to look at it: a zoomable 2D map and a stylized 3D view, one toggle apart. All 419 points of interest are tagged with a region and a category, so questions like “how many gas stations are in Vice City?” are a click away.

  • 2D or 3D: switch between the flat interactive map and a 3D view with terrain, extruded buildings, POI pins and region outlines. The switch keeps the area you’re looking at, and ?view=3d links straight to it.
  • Search by name, category, region or description, and fly straight to the result.
  • Filter 16 categories in 5 groups, with live counts of what’s in view.
  • Compare regions: focus one or several of the 6 regions. Each has a drawer with a postcard, its real-world inspiration, a per-category breakdown and must-see spots.
  • Share exactly what you’re looking at: the URL keeps the selected regions and the open location.

How it’s built

A static Astro page with one Preact island and nanostores for state. MapLibre GL JS draws the 2D map on the GPU from a WebP tile pyramid cut with sharp. The 3D view is three.js, lazy-loaded so 2D visitors download nothing extra; its terrain, buildings and labels are generated from the 2D map (text removed with Apple Vision OCR, a heightmap, and a ~2.7 MB meshopt/WebP glb). Region polygons are traced from the map image with Python and OpenCV, and every data file is validated with Zod at build time. It is deployed to GitHub Pages on every push.