You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Maps Platform Multi-Framework Web Reference Samples
A catalog of 15 production-style Google Maps Platform web solutions built across 8 standalone frameworks (120 verified apps) — zero deprecated APIs, zero console errors under Playwright WebGL verification, and audited for Google Maps Platform Terms of Service compliance.
Photorealistic 3D Map Explorer, Camera Tour & 3D Trail Route — ONLY Photorealistic 3D (<gmp-map-3d> / Map3DElement) app; extruded red Polyline3DElement, Marker3DInteractiveElement + PopoverElement, flyCameraTo chapter tour, Elevation profile.
Hyperlocal Weather, Air Quality, Pollen & Solar Dashboard — Weather API (current + forecast) + Air Quality API (AQI + WebGL-free ImageMapTypeUS_AQI heatmap tiles) + Pollen API + Solar API rooftop buildingInsights:findClosest (with 404 handling).
Maps JS 2D, Places (New), Geocoding, Weather API, Air Quality, Pollen API, Solar API
On-Demand Local Services & EV Roadside Dispatch — Draggable user pin with reverse geocode + configurable 5–15 km search ring + Place.searchNearby (evChargeOptions) + driving ETA ranking & turn-by-turn dispatch route.
Multi-Day Trip Itinerary Planner, Hotels & Time Zone Hub — Multi-day Tokyo trip tabs + Time Zone API local clock/UTC offset + numbered day-colored markers + optimizeWaypointOrder daily route + Places photos & Street View preview.
Maps JS 2D, Places (New), Routes API, Street View, Time Zone
onMount SSR guard; 9/15 include +server.ts BFF routes
vue-vite
Vue 3 + Vite + TS
@googlemaps/js-api-loader
VITE_GOOGLE_MAPS_API_KEY
isCustomElement for <gmp-*>; 1/15 uses Vite proxy
angular
Angular Standalone + TS
@angular/google-maps
GOOGLE_MAPS_API_KEY
npm run build && node serve-dist.mjs (6/15 proxy /api/*)
python-fastapi
Python FastAPI + Web UI
httpx + inline JS loader
GOOGLE_MAPS_API_KEY
Async BFF + GET /api/config (uvicorn main:app --host 127.0.0.1)
nodejs-web
Node.js + Express + TS
express + JS loader
GOOGLE_MAPS_API_KEY
npm run build && node dist/server.js
See BY_FRAMEWORK.md for stack-specific configuration idioms and runtime gotchas.
Maps Demo Key vs. Cloud Billing Key Coverage
Free Prototyping (Maps Demo Key): Mint a zero-billing Maps Demo Key (daily reset limit, prototyping only — not for production). Covers Maps JS, Photorealistic 3D, Places (New), Routes, Geocoding, Street View, and Weather.
cd<solution-id>/<framework># e.g., cd store-locator/nextjs
cp .env.example .env.local # or .env — check the sample's README.md# Add your Maps Demo Key or restricted Google Cloud API key# Follow the exact install, build, and 127.0.0.1 serve commands in that folder's README.md
Google Maps Platform Compliance & Licensing Notice
Cost Notice:"Usage of Google Maps Platform products and services may incur costs against your Google Cloud project billing account." (Use a Maps Demo Key for zero-cost prototyping only; Demo Keys have a daily reset quota and are not for production.)
API Key Restrictions: Restrict production browser keys by HTTP referrer and server BFF keys by IP address + designated APIs via Add API Key Restrictions.
License Scope: Google-sourced code snippets are provided "as-is" under the Apache 2.0 License. This license covers only Google-sourced snippets, not full generated projects. Developers are responsible for security review, testing, and compliance.
Terms of Service & Policies: Use of these samples is subject to the Google Maps Platform Terms of Service, including EEA Service Specific Terms and Prohibited Territories. Do not train AI/ML models on Google Maps Platform content or cache non-place_id Places data in violation of Terms; ensure explicit user consent and AUP compliance for high-risk or workforce location-tracking workflows.
About
Verified, zero-deprecation Google Maps Platform web samples: full apps × multiple frameworks (Vanilla JS, React, Next.js, SvelteKit, Vue, Angular, FastAPI, Node.js). Covers Advanced Markers, Places (New), Routes v2, 3D Maps, Solar, Weather, AQI, deck.gl & Terra Draw. Indexed for AI coding agents via AGENTS.md, llms.txt & catalog.json.