{"id":24717875,"url":"https://github.com/lgraubner/jquery-gmap","last_synced_at":"2026-04-28T01:31:02.887Z","repository":{"id":57282139,"uuid":"37978233","full_name":"lgraubner/jquery-gmap","owner":"lgraubner","description":"jQuery Wrapper for Google Maps API v3.","archived":false,"fork":false,"pushed_at":"2017-03-06T15:17:47.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T13:00:22.331Z","etag":null,"topics":["gmaps","google","jquery","jquery-plugin","maps"],"latest_commit_sha":null,"homepage":null,"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/lgraubner.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}},"created_at":"2015-06-24T10:29:59.000Z","updated_at":"2024-06-09T11:12:22.000Z","dependencies_parsed_at":"2022-09-18T21:04:09.411Z","dependency_job_id":null,"html_url":"https://github.com/lgraubner/jquery-gmap","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lgraubner/jquery-gmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgraubner%2Fjquery-gmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgraubner%2Fjquery-gmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgraubner%2Fjquery-gmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgraubner%2Fjquery-gmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lgraubner","download_url":"https://codeload.github.com/lgraubner/jquery-gmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgraubner%2Fjquery-gmap/sbom","scorecard":{"id":587084,"data":{"date":"2025-08-11","repo":{"name":"github.com/lgraubner/jquery-gmap","commit":"ad52d0a810cd90efd53828d595d1ab177812baa6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-20T20:49:33.464Z","repository_id":57282139,"created_at":"2025-08-20T20:49:33.465Z","updated_at":"2025-08-20T20:49:33.465Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["gmaps","google","jquery","jquery-plugin","maps"],"created_at":"2025-01-27T10:12:35.266Z","updated_at":"2026-04-28T01:31:02.855Z","avatar_url":"https://github.com/lgraubner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery.gmap\n\n[![David Dev](https://img.shields.io/david/dev/lgraubner/jquery-gmap.svg)](https://david-dm.org/lgraubner/jquery-gmap#info=devDependencies)\n\n\u003e Stop wasting your time typing Google Maps API code. Be more efficient.\n\nTo display a neat Google Map you have to write the same basic code every time. This plugin helps to create Google Maps with less code.\n\n## Dependencies\n\nAs this is a jQuery plugin it depends on the jQuery library and of course the Google Maps API v3. Thats it.\n\n## Usage\n\nInclude the Google Maps API v3 and `jquery.gmap.min.js` somewhere on your site, preferably before the closing `body` tag.\n\n```HTML\n\u003cscript src=\"https://maps.googleapis.com/maps/api/js?v=3\u0026libraries=places\" type=\"text/javascript\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/jquery.gmap.min.js\"\u003e\u003c/script\u003e\n```\n\nCreate an element:\n```HTML\n\u003cdiv id=\"map\"\u003e\u003c/div\u003e\n```\n\nInitialize your map:\n\n```JavaScript\nvar $map = $('#map').gmap({\n  lat: 52.5075419,\n  lng: 13.4251364,\n  options: {\n    disableDefaultUI: true,\n    zoom: 13\n  }\n});\n\n$map.gmap('addMarker', {\n  lat: 52.5075419,\n  lng: 13.4251364,\n  title: 'I am the title'\n  infoWindow: {\n    content: 'This is an info popup',\n    opened: true\n  }\n});\n```\n\nThe same map code *without* `jquery.gmap` would look like this:\n\n```JavaScript\nvar options = {\n  disableDefaultUI: true,\n  zoom: 13,\n  center: new google.maps.LatLng(52.5075419, 13.4251364)\n}\nvar map = new google.maps.Map(document.getElementById('map'), options);\n\nvar marker = new google.maps.Marker({\n  position: new google.maps.LatLng(52.5075419, 13.4251364),\n  title: 'I am the title',\n  map: map\n});\n\nvar infowindow = new google.maps.InfoWindow({\n  content: 'This is an info popup'\n});\n\ngoogle.maps.event.addListener(marker, 'click', function() {\n  infowindow.open(map, marker);\n});\n\ninfowindow.open(map, marker);\n```\n\nYou can also specify options inline which will overwrite the default value and the value specified on initialization. You still have to initialize the map.\n\n```HTML\n\u003cdiv id=\"map\" data-gmap-options='{\"zoom\":8}' data-gmap-lat=\"52.5075419\" data-gmap-lng=\"13.4251364\"\u003e\u003c/div\u003e\n```\n\n```JavaScript\n$('#map').gmap();\n```\n\n## Options\n\n### centerOnResize\n\nType: `boolean`  \nDefault: `true`\n\nRecenter the map to the current center if map gets resized.\n\n### singleInfoWindow\n\nType: `boolean`  \nDefault: `true`\n\nOnly open one `infoWindow` at most. Automatically closes opened `infoWindow` if you click on a marker to open a different.\n\n## API\n\njQuery.gmap offers several methods which are wrappers for common Google Map API functions.\n\n### addMarker\n\nAdd a marker to a previously initialized map. You can attach an `infoWindow` with some content,\nset the marker icon and add a title. The optional `infoWindow` can be toggle via click on the marker.\n\n```JavaScript\n$map.gmap('addMarker', {\n  lat: 52.5075419,\n  lng: 13.4251364,\n  title: 'I\\'m a title!',\n  icon: '/path/to/icon.ext',\n  infoWindow: { // optional\n    content: 'Some content',\n    opened: true // whether it should be opened on init\n  }\n});\n```\n\n### setOptions\n\nSet options after initialization. Extends current options, does not replace.\n\n```JavaScript\n$('#map').gmap('setOptions', {\n  scrollwheel: false,\n  draggable: true\n});\n```\n\n### getMap\n\nNot all features of Google Maps API v3 are covered by jquery.gmap. Therefore you can get the raw `Map` object and work with it as normal.\n\n```JavaScript\nvar $gmap = $('#map').gmap({\n  ...\n});\n\nvar map = $gmap.getMap();\n// do whatever you like\nvar id = map.getDiv();\n```\n\n### getMarker\n\nGet all initialized marker objects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgraubner%2Fjquery-gmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flgraubner%2Fjquery-gmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgraubner%2Fjquery-gmap/lists"}