{"id":22208337,"url":"https://github.com/steenhansen/gmap-dragdrop-react","last_synced_at":"2026-04-17T19:01:37.429Z","repository":{"id":143880397,"uuid":"93223471","full_name":"steenhansen/gmap-dragdrop-react","owner":"steenhansen","description":"Google Maps drag and drop React component; on, off,  and between maps","archived":false,"fork":false,"pushed_at":"2024-06-10T00:46:59.000Z","size":10550,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T10:41:35.466Z","etag":null,"topics":["javascript","jsx","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gmap-dragdrop-react","language":"JavaScript","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/steenhansen.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":"2017-06-03T04:31:05.000Z","updated_at":"2024-06-10T00:47:03.000Z","dependencies_parsed_at":"2024-03-14T23:43:41.031Z","dependency_job_id":null,"html_url":"https://github.com/steenhansen/gmap-dragdrop-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steenhansen/gmap-dragdrop-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steenhansen%2Fgmap-dragdrop-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steenhansen%2Fgmap-dragdrop-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steenhansen%2Fgmap-dragdrop-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steenhansen%2Fgmap-dragdrop-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steenhansen","download_url":"https://codeload.github.com/steenhansen/gmap-dragdrop-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steenhansen%2Fgmap-dragdrop-react/sbom","scorecard":{"id":850246,"data":{"date":"2025-08-11","repo":{"name":"github.com/steenhansen/gmap-dragdrop-react","commit":"ae182a3189c3f61b37802c087411961debe4f992"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license:0","Info: FSF or OSI recognized license: MIT License: license:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T22:19:14.991Z","repository_id":143880397,"created_at":"2025-08-23T22:19:14.991Z","updated_at":"2025-08-23T22:19:14.991Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31941845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["javascript","jsx","react"],"created_at":"2024-12-02T19:17:44.714Z","updated_at":"2026-04-17T19:01:37.410Z","avatar_url":"https://github.com/steenhansen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"fast-start\"\u003e\u003c/a\u003e\n\u003ca name=\"s\"\u003e\u003c/a\u003e\n\n# Google Maps Drag and Drop with React Component\n\n  \u003cimg src=\"./tall-drag.webp\" width=\"800\"\u003e\n\t\nDrag\u0026amp;drop location markers on\u0026amp;off Google Maps with this React component, not just [`draggable markers`](https://developers.google.com/maps/documentation/javascript/markers#draggable). Internet Explorer has degraded performance but still works thanks to [`Mihai Valentin`](https://github.com/MihaiValentin/setDragImage-IE).\n\n![visual explanation](gddr_explain.png)\n\nLive [gmap-dragdrop-react examples](https://gmap-dragdrop-examples.onrender.com/maps), takes 150sec to start on free hosting.\n\nFull [webserver on GitHub with examples](https://github.com/steenhansen/gmap-dragdrop-examples).\n\n## Install\n\n$ npm install --save gmap-dragdrop-react\n\n## Compile JS\n\n$ gulp\n\n## JSX\n\n    import {GmapDragDrop} from 'gmap-dragdrop-react'\n\n    const CYPRESS = {lat: 49.396, lng: -123.204, title_text: \"Cypress Mountain\"}\n    const GROUSE = {lat: 49.380, lng: -123.082, title_text: \"Grouse Mountain\"}\n    const SEYMOUR = {lat: 49.367, lng: -122.948, title_text: \"Mount Seymour\"}\n    const GOOGLE_MAP_KEY = \"abcdefgh**_Google_Map_API_Key_**ijelmen\"\n\n    ReactDOM.render(\u003cGmapDragDrop\n    \tgoogle_map_key={GOOGLE_MAP_KEY}\n    \tmap_locations={[CYPRESS, GROUSE, SEYMOUR]}\n    \tmap_options={ init_zoom:7, onAdd:(e)=\u003e{ console.log('added a map location') } }\n    /\u003e, document.getElementById('gmap-container-id'))\n\n## google_map_key\n\n_Required_ Type: `string`\n\nThe 40 character [Google API Key](https://developers.google.com/maps/documentation/javascript/get-api-key)\n\n    google_map_key={1234567890123456789012345678901234567890}\n\n## [map_locations](/readme_map_locations.md)\n\n_Required_  \nType: `array`\n\nArray of locations to display on the map. A location is an object consisting of at least a 'lat' and 'lng' property\n\n    \t\tmap_locations={ [ ] }\n\n## [map_options - attributes](/readme_map_options.md)\n\nType: `object`\n\n    \t\tmap_options={ init_zoom : 7 }\n\n## [map_options - events](/readme_events.md)\n\nType: `function`\n\n    \t\tmap_options={ onAdd: (e)=\u003e{\n        \t\t\tconst {location_data, gmap_event} = e.gmap_params\n        \t\t\tconsole.log('onAdd : with this data', gmap_event._object_type)\n        \t\t\tconsole.dir(location_data)\n        \t\t\treturn location_data\n      \t\t}}\n\n## [Methods](/readme_methods.md)\n\n    \timport {GmapDragDrop} from 'gmap-dragdrop-react'\n    \tlet gmap_drag_drop_instance = ReactDOM.render(\u003cGmapDragDrop\n    \t\t\tgoogle_map_key ={\"abcdefgh**_Google_Map_API_Key_**ijelmen\"}\n    \t\t\tmap_locations={ [ {lat: 12.34, lng: 12.34} ] }\n    \t\t/\u003e, document.getElementById('gmap-container-id'))\n    \tlet number_locations = gmap_drag_drop_instance.numberLocations()\n    \tconsole.log('There are currently ' + number_markers + ' on the map')\n\n## [GmapGroups](/readme_groups.md)\n\n- [Drag from center of hub to create a new spoke](https://gddr.herokuapp.com/activities).\n- [Static hiking trails with linked markers](https://gddr.herokuapp.com/hikes)\n\n## Non-Existant API Key\n\n![google maps image when bad api key](bad-api-key.png)\n\n## API Key Not Yet Linked to Credit Card\n\n![For developers only](for_dev_only.png)\n\nGet a Google Maps API key at [https://developers.google.com/maps/documentation/javascript/get-api-key](https://developers.google.com/maps/documentation/javascript/get-api-key)\n\n## Restrict API Key for Production\n\n![API restrictions](website-restrictions.png)\n\n## Related\n\n- [setDragImage-IE](https://github.com/MihaiValentin/setDragImage-IE) - setDragImage method support for HTML5 Drag \u0026amp; Drop in Internet Explorer 10+. This method is used to support marker dragging in IE.\n\n## Created by\n\n[Steen Hansen](https://github.com/steenhansen)\n\n## License\n\nMIT ©\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteenhansen%2Fgmap-dragdrop-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteenhansen%2Fgmap-dragdrop-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteenhansen%2Fgmap-dragdrop-react/lists"}