{"id":38939300,"url":"https://github.com/kashaudhan/react-gmap-picker","last_synced_at":"2026-01-17T15:51:20.142Z","repository":{"id":172385903,"uuid":"649216045","full_name":"kashaudhan/react-gmap-picker","owner":"kashaudhan","description":"React google maps location picker/marker (latitude, longitude)","archived":false,"fork":false,"pushed_at":"2024-05-01T17:57:04.000Z","size":4106,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T14:29:14.299Z","etag":null,"topics":["googe-map","map-marker","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-gmap-picker","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/kashaudhan.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":"2023-06-04T06:43:45.000Z","updated_at":"2024-04-30T13:02:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5bee93c-1e29-4bc3-b602-1491ffcbb22e","html_url":"https://github.com/kashaudhan/react-gmap-picker","commit_stats":null,"previous_names":["kashaudhan/react-gmap-picker"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kashaudhan/react-gmap-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashaudhan%2Freact-gmap-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashaudhan%2Freact-gmap-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashaudhan%2Freact-gmap-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashaudhan%2Freact-gmap-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kashaudhan","download_url":"https://codeload.github.com/kashaudhan/react-gmap-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashaudhan%2Freact-gmap-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["googe-map","map-marker","react"],"created_at":"2026-01-17T15:51:19.583Z","updated_at":"2026-01-17T15:51:20.133Z","avatar_url":"https://github.com/kashaudhan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-gmap-picker\n\nReact google maps location picker/marker with `Advanced Marker`\n\n\n## Table of Contents\n\n- [react-gmap-picker](#react-gmap-picker)\n  - [Table of Contents](#table-of-contents)\n  - [Installation](#installation)\n  - [Usage/Examples](#usageexamples)\n  - [Props](#props)\n\n## Installation\n\n\nInstall react-gmap-picker and its dependeices\n```sh\nnpm install --save react-gmap-picker\n```\nor\n```sh\nyarn add react-gmap-picker\n```\n## Usage/Examples\n\n```jsx\nimport { useState } from 'react';\nimport { Picker } from 'react-gmap-picker';\nimport React from 'react';\n\nconst INITIAL_LOCATION = { lat: 13.4, lng: 77.0 };\nconst INITIAL_ZOOM = 10;\n\nconst API_KEY = process.env.API_KEY as string;\n\nconst App = () =\u003e {\n  const [defaultLocation, setDefaultLocation] = useState(INITIAL_LOCATION);\n  const [location, setLocation] = useState(defaultLocation);\n  const [zoom, setZoom] = useState(INITIAL_ZOOM);\n\n  const handleChangeLocation = (lat: number, lng: number) =\u003e {\n    setLocation({ lat, lng });\n  };\n\n  const handleChangeZoom = (newZoom: number) =\u003e {\n    setZoom(newZoom);\n  };\n\n  const handleResetLocation = () =\u003e {\n    setDefaultLocation({ ...INITIAL_LOCATION });\n    setLocation({ ...INITIAL_LOCATION });\n    setZoom(INITIAL_ZOOM);\n  };\n\n  return (\n    \u003cdiv\u003e\n      \u003cbutton onClick={handleResetLocation}\u003eReset Location\u003c/button\u003e\n      \u003clabel\u003eLatitude:\u003c/label\u003e\n      \u003cinput type=\"text\" value={location.lat} disabled /\u003e\n      \u003clabel\u003eLongitude:\u003c/label\u003e\n      \u003cinput type=\"text\" value={location.lng} disabled /\u003e\n      \u003clabel\u003eZoom:\u003c/label\u003e\n      \u003cinput type=\"text\" value={zoom} disabled /\u003e\n\n      \u003cdiv\u003e\n        \u003ch4\u003eMap 1 (roadmap)\u003c/h4\u003e\n        \u003cPicker\n          defaultLocation={defaultLocation}\n          zoom={zoom}\n          mapTypeId=\"roadmap\"\n          style={{ height: '700px' }}\n          onChangeLocation={handleChangeLocation}\n          onChangeZoom={handleChangeZoom}\n          apiKey={API_KEY}\n        /\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  );\n};\n\nexport default App;\n```\n\n\n## Props\n\n| Parameter | Type     | Default  | Description                |\n| :-------- | :------- | ---------| :------------------------- |\n| `apiKey` | `string` | **Required** | **Required**. Google maps API key |\n| `defaultLocation` | `{lat: number; lng: number}` |  **Required** |  **Required**. Default coordinate. |\n| `zoom` | `{lat: number; lng: number}` | 7 | Default coordinate. |\n| `onChangeLocation` | `(lat: number, lng: number) =\u003e void` | null | Executes when location changes. |\n| `onChangeZoom` | `(zoom: number) =\u003e void` | null | Executes when room level changes. |\n| `style` | `any` | { width: '100%', height: '600px' } | Map container style. |\n| `className` | `string` | undefined | Map className. |\n| `mapTypeId` | [google.maps.MapTypeId](https://developers.google.com/maps/documentation/javascript/maptypes) | undefined | Map type you want to see. |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkashaudhan%2Freact-gmap-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkashaudhan%2Freact-gmap-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkashaudhan%2Freact-gmap-picker/lists"}