{"id":16796574,"url":"https://github.com/leonardomso/react-google-static","last_synced_at":"2025-03-17T03:31:02.954Z","repository":{"id":36960379,"uuid":"233859560","full_name":"leonardomso/react-google-static","owner":"leonardomso","description":"🌍  A React wrapper for Google Static Maps API. ","archived":false,"fork":false,"pushed_at":"2024-05-13T08:05:16.000Z","size":1368,"stargazers_count":44,"open_issues_count":7,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T17:17:14.680Z","etag":null,"topics":["google","google-maps","google-maps-api","google-static-maps","google-static-maps-api","react","static-maps","static-maps-api"],"latest_commit_sha":null,"homepage":"","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/leonardomso.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-14T14:27:33.000Z","updated_at":"2024-02-23T10:28:06.000Z","dependencies_parsed_at":"2023-11-11T19:27:01.303Z","dependency_job_id":"b94a7703-3ca1-4c1e-aeb3-1fe19f0ad09e","html_url":"https://github.com/leonardomso/react-google-static","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/leonardomso%2Freact-google-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardomso%2Freact-google-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardomso%2Freact-google-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardomso%2Freact-google-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonardomso","download_url":"https://codeload.github.com/leonardomso/react-google-static/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841204,"owners_count":20356441,"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","google-maps","google-maps-api","google-static-maps","google-static-maps-api","react","static-maps","static-maps-api"],"created_at":"2024-10-13T09:19:30.832Z","updated_at":"2025-03-17T03:31:02.576Z","avatar_url":"https://github.com/leonardomso.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n   🌍 React Google Static Maps\n\u003c/h1\u003e\n\n[![Actions Status](https://github.com/leonardomso/react-google-static/workflows/CI/badge.svg)](https://github.com/leonardomso/react-google-static/actions)\n[![LICENSE MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/leonardomso/react-google-static)\n[![npm version](https://badge.fury.io/js/react-google-static.svg)](https://badge.fury.io/js/react-google-static)\n\nA React component wrapper to use the Google Static Maps API. Don't forget that to use this API you must have a billing account and an Static Maps API key. \n\nThis library supports custom markers. To use a custom icon, you should provide a url link, for example: `https://img.icons8.com/dusk/64/000000/marker.png`.\n  \n\n## Installation\n\n```\nnpm install react-google-static\n```\n\n```\nyarn add react-google-static\n```\n\n## Usage\n\n```jsx\nimport React from 'react';\nimport GoogleStaticMap from 'react-google-static';\n\nconst App = () =\u003e (\n  \u003cdiv\u003e\n    \u003ch1\u003eGoogle Static Maps API\u003c/h1\u003e\n\n    \u003cGoogleStaticMap\n      apiKey={API_KEY}\n      latitude={32.064171}\n      longitude={34.7748068}\n      style={{ width: 200, height: 200 }}\n      size={{ width: 200, height: 200 }}\n      zoom={16}\n    /\u003e\n  \u003c/div\u003e\n);\n\nexport default App;\n```\n\n## Usage with Custom Icon\n\n```jsx\nimport React from 'react';\nimport GoogleStaticMap from 'react-google-static';\n\nconst App = () =\u003e (\n  \u003cdiv\u003e\n    \u003ch1\u003eGoogle Static Maps API\u003c/h1\u003e\n\n    \u003cGoogleStaticMap\n      apiKey={API_KEY}\n      latitude={32.064171}\n      longitude={34.7748068}\n      style={{ width: 200, height: 200 }}\n      size={{ width: 200, height: 200 }}\n      zoom={16}\n      iconUrl=\"https://img.icons8.com/dusk/64/000000/marker.png\"\n    /\u003e\n  \u003c/div\u003e\n);\n\nexport default App;\n```\n\n\n## Props\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eName\u003c/th\u003e\n    \u003cth\u003eType\u003c/th\u003e\n    \u003cth\u003eRequired\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eapiKey\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eBoolean\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003etrue\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003elatitude\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003estring | number\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003etrue\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n    \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003elongitude\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003estring | number\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003etrue\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n   \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003esize\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eObject\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003etrue\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n   \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003ezoom\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003enumber\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003etrue\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003escale\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003enumber\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003emapFormat\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003e'png'  |  'png32'  |  'gif'  |  'jpg'  |  'jpg-baseline'\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n   \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003emapType\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003e'roadmap'  |  'satellite'  |  'terrain'  |  'hybrid'\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eiconUrl\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003estyle\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eany\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003efalse\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardomso%2Freact-google-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonardomso%2Freact-google-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardomso%2Freact-google-static/lists"}