search

Massachusetts in 3D

A to-scale, navigable flythrough of the whole state — terrain at real elevation and photorealistic 3D buildings, streamed from Google's photogrammetry tiles. Drag to look around, scroll to zoom, right-drag to tilt, and W A S D / arrow keys to fly.

fly to

One setup step: a Google Maps API key

The photorealistic 3D tiles come from Google's Map Tiles API. To turn this on:

  1. Go to the Google Maps Platform console and create / select a project.
  2. Enable the Map Tiles API.
  3. Create an API key (restrict it to your domain for production).
  4. Add it to .env in the site root:
    PUBLIC_GOOGLE_MAPS_API_KEY=AIza...your-key...
  5. Restart npm run dev (or rebuild) and reload.

Google gives a monthly free allotment of Map Tiles requests; beyond that it's usage-billed per session. Restrict the key to andymasley.com so it can't be used elsewhere.

Imagery © Google. Buildings, terrain, and trees are streamed photogrammetry — fidelity is highest over cities and dense suburbs, and softens over open countryside and water.