{"id":22361703,"url":"https://github.com/edgeworkscreative/ewc-google-map","last_synced_at":"2026-04-30T00:33:27.839Z","repository":{"id":57110631,"uuid":"147239545","full_name":"edgeworkscreative/ewc-google-map","owner":"edgeworkscreative","description":":round_pushpin: Google Maps Place card web component built with StencilJS.","archived":false,"fork":false,"pushed_at":"2018-09-05T15:04:16.000Z","size":175,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T22:25:11.739Z","etag":null,"topics":["google-maps","google-places","snazzy-maps","stencil","stenciljs","web-components"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@edgeworkscreative/ewc-google-map","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgeworkscreative.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-03T18:22:27.000Z","updated_at":"2022-06-23T10:30:15.000Z","dependencies_parsed_at":"2022-08-20T18:20:11.361Z","dependency_job_id":null,"html_url":"https://github.com/edgeworkscreative/ewc-google-map","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeworkscreative%2Fewc-google-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeworkscreative%2Fewc-google-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeworkscreative%2Fewc-google-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeworkscreative%2Fewc-google-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgeworkscreative","download_url":"https://codeload.github.com/edgeworkscreative/ewc-google-map/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245674679,"owners_count":20654206,"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","google-places","snazzy-maps","stencil","stenciljs","web-components"],"created_at":"2024-12-04T16:32:16.243Z","updated_at":"2026-04-30T00:33:27.812Z","avatar_url":"https://github.com/edgeworkscreative.png","language":"TypeScript","readme":"![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D\u0026colorA=16161d\u0026style=flat-square)\n\n# Edgeworks Creative - Google Maps Component\n\nGoogle Maps Place card web component built with StencilJS.\n\nSo simple, it works with only two lines of code! [JSFiddle](https://jsfiddle.net/v3a4urwL/1/)\n\n###### WIP\n\n![Preview](screenshot.png)\n\n#### Stencil components are just Web Components, so they work in any major framework or with no framework at all.\n\n## Example\n\n```html\n\u003cewc-google-map \n  place-id=\"ChIJc0ONLheftUwR2eRUIlyCAF4\" \n  zoom=\"16\" \n  snazzy-map=\"https://snazzymaps.com/style/228639/dark-tan\" \n  key=\"GOOGLE-MAPS-API-KEY\"\u003e\u003c/ewc-google-map\u003e\n```\n\n## Features\n- Load styles directly from [SnazzyMaps](https://snazzymaps.com/) (Please cache this request in your service worker)\n- Easily retrieve business contact information by passing your [Google Place](https://developers.google.com/places/web-service/intro) ID.\n- Slide through all of your [Google Place](https://developers.google.com/places/web-service/intro) photos.\n\n### FAQ\n- How do I find my Google Place ID? \n  - You can use the map located [here](https://developers.google.com/places/place-id) to find your Place ID.\n- Do I need a Google Maps API key?\n  - You do not need a key when developing locally.\n- Where do I find my Google Maps API key?\n  - You can follow [these](https://developers.google.com/maps/documentation/javascript/get-api-key) steps.\n- I'd like to use the SnazzyMaps feature, what should I add to my service worker?\n  - If you're using Workbox: \n  ```javascript \n  workbox.routing.registerRoute(\n    new RegExp('^https://cors-anywhere.herokuapp.com/https://snazzymaps.com/'),\n    workbox.strategies.cacheFirst({\n      cacheName: 'snazzy-maps',\n      plugins: [\n        new workbox.cacheableResponse.Plugin({\n          statuses: [0, 200]\n        }),\n      ],\n    }),\n  );\n  ```\n\n## Using this component\n\n### Script tag\n- Put a script tag similar to this `\u003cscript src='https://unpkg.com/@edgeworkscreative/ewc-google-map@latest/dist/ewc.js'\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use the element anywhere in your template, JSX, html etc\n\n### Node Modules\n- Run `npm install @edgeworkscreative/ewc-google-map --save`\n- Put a script tag similar to this `\u003cscript src='node_modules/@edgeworkscreative/ewc-google-map/dist/ewc.js'\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use the element anywhere in your template, JSX, html etc\n\n### In a stencil-starter app\n- Run `npm install @edgeworkscreative/ewc-google-map --save`\n- Add an import to the npm packages `import '@edgeworkscreative/ewc-google-map';`\n- Then you can use the element anywhere in your template, JSX, html etc\n\n### TODO\n- Documentation\n- Add `styles` prop as alternative to fetching directly from SnazzyMaps\n\n## Stencil\n\nStencil is a compiler for building fast web apps using Web Components.\n\nStencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool.  Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeworkscreative%2Fewc-google-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgeworkscreative%2Fewc-google-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeworkscreative%2Fewc-google-map/lists"}