#465

feat(web): add Mapbox Map component to the homepage demo and playground

Openwillwhitewants to merge intofrom

Adds a Map component to the playground catalog so location, route and "within N minutes" prompts render an interactive Mapbox GL JS map.

  • Camera, markers with popups, GeoJSON layers, a Directions route with a distance/duration chip, and an isochrone
  • Defaults to Mapbox Standard with the night light preset; satellite on request
  • mapbox-gl is lazy-loaded so it stays out of the homepage bundle
  • Tolerates half-streamed props; API calls are debounced and cached
  • Prompt rule steers the model to Map plus a single summary Table
  • Metric: value holds the number only, word suffixes get a space
  • Export template, example prompts and NEXT_PUBLIC_MAPBOX_TOKEN docs

Activity

4
vercel[bot]5d ago

@willwhite is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

socket-security[bot]5d ago

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
npm/​mapbox-gl@​3.34.2

View full report

vercel[bot]reviewed5d ago