The map is showing "For development purposes only" because the API key needs proper configuration in Google Cloud Console.
VITE_GOOGLE_MAPS_API_KEY=AIzaSyDK5_SlB95tlSqFC4ZnhS6CbLrpoeDVvZs
Visit: https://console.cloud.google.com/
Make sure these APIs are enabled for your project:
- Maps JavaScript API ✓ (Required for map display)
- Places API (Optional, for location search)
- Geocoding API (Optional, for address lookup)
- Go to APIs & Services > Credentials
- Find your API key:
AIzaSyDK5_SlB95tlSqFC4ZnhS6CbLrpoeDVvZs - Click "Edit" on the key
- Choose HTTP referrers (web sites)
- Add these URLs:
http://localhost:3000/* http://localhost:* https://yourdomain.com/*
- Go to Billing in Cloud Console
- Link a billing account to your project
- Don't worry - Google provides $200 free credits per month
Restrict the key to only these APIs:
- Maps JavaScript API
- Places API (if using search)
- Geocoding API (if using geocoding)
If the above doesn't work, create a fresh API key:
- Go to APIs & Services > Credentials
- Click + CREATE CREDENTIALS > API key
- Copy the new key
- Replace in
.env.local:VITE_GOOGLE_MAPS_API_KEY=YOUR_NEW_API_KEY_HERE - Restart your dev server:
npm run dev
After configuration:
- Wait 2-5 minutes for changes to propagate
- Refresh your browser (hard refresh: Cmd+Shift+R / Ctrl+Shift+R)
- The "for development purposes only" watermark should disappear
Contact Google Cloud Support or check: