{"id":13406639,"url":"https://github.com/googlemaps/js-samples","last_synced_at":"2025-05-15T05:08:22.452Z","repository":{"id":35928945,"uuid":"40217042","full_name":"googlemaps/js-samples","owner":"googlemaps","description":"Samples for the Google Maps JavaScript v3 API","archived":false,"fork":false,"pushed_at":"2025-04-14T17:15:32.000Z","size":53233,"stargazers_count":778,"open_issues_count":53,"forks_count":825,"subscribers_count":51,"default_branch":"main","last_synced_at":"2025-04-21T08:14:06.403Z","etag":null,"topics":["google-maps","googlemaps","javascript","js-samples","maps","samples","typescript"],"latest_commit_sha":null,"homepage":"https://developers.google.com/maps/documentation/javascript/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googlemaps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-08-05T01:08:09.000Z","updated_at":"2025-04-20T09:10:23.000Z","dependencies_parsed_at":"2024-02-12T15:45:52.489Z","dependency_job_id":"10d7eee2-7ddd-4240-a2e2-c50a430ae4c2","html_url":"https://github.com/googlemaps/js-samples","commit_stats":{"total_commits":1492,"total_committers":45,"mean_commits":33.15555555555556,"dds":0.6226541554959786,"last_synced_commit":"4b1b27b6733b266a111c6920a6f59ee6b8b479b1"},"previous_names":[],"tags_count":265,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fjs-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fjs-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fjs-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fjs-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googlemaps","download_url":"https://codeload.github.com/googlemaps/js-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276447,"owners_count":22043867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-maps","googlemaps","javascript","js-samples","maps","samples","typescript"],"created_at":"2024-07-30T19:02:35.412Z","updated_at":"2025-05-15T05:08:17.442Z","avatar_url":"https://github.com/googlemaps.png","language":"TypeScript","readme":"![Test](https://github.com/googlemaps/js-samples/workflows/Test/badge.svg)\n![Release](https://github.com/googlemaps/js-samples/workflows/Release/badge.svg)\n![GitHub contributors](https://img.shields.io/github/contributors/googlemaps/js-samples)\n![Apache-2.0](https://img.shields.io/badge/license-Apache-blue)\n[![Discord](https://img.shields.io/discord/676948200904589322?color=6A7EC2\u0026logo=discord\u0026logoColor=ffffff)](https://discord.gg/jRteCzP)\n\n# js-samples\n\n## Description\n\nSamples for the Google Maps JavaScript API.\n\nThe samples can be demoed at the [official documentation site](https://developers.google.com/maps/documentation/javascript/examples).\n\n## Development\n\n### Build\n\n1. `npm i` Install dependencies.\n1. `npm run build` Build all targets and update `dist/` folder.\n\n### Test\n\n1. `npm test` Test outputs.\n1. (Optional) `npm run lint` Fix lint issues with `npm run format`\n1. (Optional) `npm run test:playwright:playground:update-snapshots` Update snapshots. This uses an custom env var to only to only update screenshots that differ from the previous ones (Playwright only supports `none`, `all`, or `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 `-g \u003csample-name\u003e`.\n\n### Run\n\n1. Start a server with all samples using `npm start`\n\n### Staging\n\nFor staging samples (not common), use Cloud Source Repositories which are controlled by an access control list.\n\n1. `gcloud auth login`\n2. `git config --global credential.https://source.developers.google.com.helper gcloud.sh`\n3. `git remote add google https://source.developers.google.com/p/geo-devrel-javascript-samples/r/js-samples`\n4. `git push google`\n5. `git rev-parse --short HEAD` or visit the [bucket](https://console.cloud.google.com/storage/browser/geo-devrel-javascript-samples-staging).\n\n### Explore\n\nAll samples can be explored at https://googlemaps.github.io/js-samples/.\n\n## Other resources\n\n- [Google Maps JavaScript API Documentation](https://developers.google.com/maps/documentation/javascript/tutorial)\n- [Google Maps JavaScript API Reference Documentation](https://developers.google.com/maps/documentation/javascript/reference/)\n- [Google Maps Typings](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/google.maps) - `npm i -D @types/google.maps`\n- [Google Maps Utilities](https://github.com/googlemaps/v3-utility-library)\n\n## Support\n\nThese libraries are community supported. We're comfortable enough with the stability and features of\nthe libraries that we want you to build real production applications on it.\n\nIf you find a bug, or have a feature suggestion, please [log an issue](issues). If you'd like to contribute, please read [How to Contribute](CONTRIB.md).\n","funding_links":[],"categories":["TypeScript","HTML"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglemaps%2Fjs-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglemaps%2Fjs-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglemaps%2Fjs-samples/lists"}