The samples can be demoed at the official documentation site.
npm iInstall dependencies.
npm run buildBuild all targets and update
npm testTest outputs.
npm run lintFix lint issues with
npm run format
npm run test:playwright:playground:update-snapshotsUpdate snapshots. This uses an custom env var to only to only update screenshots that differ from the previous ones (Playwright only supports
missing). To update all screenshots, use
npm run test:playwright:playground:update-snapshots -- --update-snapshots. It's possible to target a single sample by using
- Start a server with all samples using
For staging samples (not common), use Cloud Source Repositories which are controlled by an access control list.
gcloud auth login
git config --global credential.https://source.developers.google.com.helper gcloud.sh
git push google
git rev-parse --short HEADor visit the bucket.
All samples can be explored at https://googlemaps.github.io/js-samples/.
- Google Maps Typings -
npm i -D @types/google.maps
- Google Maps Utilities
These libraries are community supported. We're comfortable enough with the stability and features of the libraries that we want you to build real production applications on it.