With the "GTA My City" trend taking off, most tools rely on AI image generators that hallucinate street layouts and garble text. I wanted to build an actual 360° rotatable 3D map of any real city on Earth running 100% client-side in the browser with zero API keys or paywalls.
👉 Live Demo (Free, No Login): https://www.gamecompendium.com/tools/gta-my-city
Tech Stack
- MapLibre GL JS v4: WebGL 3D vector tile rendering with 62° pitch and custom directional lighting.
- OpenFreeMap (
planettileset): Free, open-source OpenMapTiles vector tiles with globalrender_heightbuilding extrusion data at zoom 14. - Nominatim OSM Geocoding: Fly to any city, neighborhood, or landmark worldwide.
Fixing the "Black Void" During Cross-City Flights
One tricky UX problem with map.flyTo() across continents is that MapLibre zooms out to world level (z2–z4), where 3D building extrusions disappear and destination z14 tiles haven't loaded yet—leaving a 1.5-second dark gap.
To solve this, I implemented a 3-stage GTA-style Orbital Satellite Drop:
- Pull-Up & Radar Lock: Ease the camera upward while showing a translucent cyber-grid targeting reticle with target coordinates.
- Hidden z14 Preload: Behind the translucent reticle,
map.jumpTo()positions the camera atzoom: 14.0, pitch: 12°above the destination and waits formap.once('idle')so all 3D building geometry is in GPU memory. - 3D Spiral Dive: Trigger a quick shutter flash and cubic ease-out dive from
pitch: 12° -> 62°andzoom: 14.0 -> 15.6while rotating 52°, seamlessly handing off to arequestAnimationFrame360° auto-orbit loop.
Features Included
- 3 Custom 3D Palettes: Leonida Neon (GTA 6 pink/orange/cyan), Vice 80s Pastel, and Tactical Dark.
- Interactive Mission Pins: Drop glowing Safehouse, Heist, Mission, or Air Base pins anywhere on your street.
- 1-Click WebGL + HUD PNG Export: Composites the WebGL canvas with a 5-star Wanted HUD and custom city typography locally.
Also localized in Japanese for Tokyo/Shibuya explorers: https://www.gamecompendium.com/ja/tools/gta-my-city
Let me know what your city looks like in 3D neon!




