{"id":20619672,"url":"https://github.com/mybuilder/bermuda","last_synced_at":"2025-04-15T11:55:18.279Z","repository":{"id":17450672,"uuid":"20224546","full_name":"mybuilder/bermuda","owner":"mybuilder","description":"Simple and fast Javascript library for drawing draggable polygons in Google Maps","archived":false,"fork":false,"pushed_at":"2024-07-04T08:54:29.000Z","size":40,"stargazers_count":11,"open_issues_count":16,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-28T19:53:44.044Z","etag":null,"topics":["drawing-draggable-polygons","javascript"],"latest_commit_sha":null,"homepage":"","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/mybuilder.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":"2014-05-27T15:14:29.000Z","updated_at":"2024-07-19T13:31:27.000Z","dependencies_parsed_at":"2024-04-17T05:32:19.237Z","dependency_job_id":"0ba3c855-5177-47a3-b979-332d21c60412","html_url":"https://github.com/mybuilder/bermuda","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/mybuilder%2Fbermuda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fbermuda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fbermuda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybuilder%2Fbermuda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mybuilder","download_url":"https://codeload.github.com/mybuilder/bermuda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067775,"owners_count":21207395,"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":["drawing-draggable-polygons","javascript"],"created_at":"2024-11-16T12:12:15.077Z","updated_at":"2025-04-15T11:55:18.259Z","avatar_url":"https://github.com/mybuilder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bermuda\nSimple and fast Javascript library for drawing draggable polygons in [Google Maps](https://developers.google.com/maps/documentation/javascript/)!\n\n![Map Dragging](http://i.imgur.com/jWw09jx.gif)\n\n## Usage\nInclude required libraries\n\n```html\n\u003cscript src=\"https://maps.googleapis.com/maps/api/js?sensor=false\"\u003e\u003c/script\u003e\n\u003cscript src=\"bermuda.min.js\"\u003e\u003c/script\u003e\n```\n\nPaint fancy polygons!\n\n```javascript\nvar map = new Bermuda(document.getElementById(\"map-canvas\"));\nmap.draw([[25.774, -80.190], [18.466, -66.118], [32.321, -64.757]]);\n```\n\n### Available Operations\nOnce you build your map, you could do some amazing stuff with it, the available operations are listed below\n\nmethod      | arguments | return  | description\n------------|-----------|---------|------------\ndraw        | `Array`   | *none*  | Draw markers and polygon on the map\nzoomIn      | *none*    | *none*  | Zoom in\nzoomOut     | *none*    | *none*  | Zoom out\ndisable     | *none*    | *none*  | Freeze the map, disable interaction\nenable      | *none*    | *none*  | Re-enable interaction\ngetCoords   | *none*    | `Array` | Get the current marker coordinates\nclear       | *none*    | *none*  | Remove all markers and polygon from the map\n\n## Configuration Options\n\nproperty     | type       | description\n-------------|------------|------------\nmap          | `Object`   | Options for [google.maps.Map](https://developers.google.com/maps/documentation/javascript/reference#Map)\npolygon      | `Object`   | Options for [google.maps.Polygon](https://developers.google.com/maps/documentation/javascript/reference#Polygon)\nicon         | `Object`   | Configuration for marker icons \nautoCentered | `Boolean`  | Map automatic centering\nonChange     | `Function` | This function will be called everytime a pin is dragged\ndisabled     | `Boolean`  | Interaction disabled\n\n### Example\n```javascript\nvar map = new Bermuda(document.getElementById(\"map-canvas\"), {\n    polygon: {\n      strokeColor: \"#008525\",\n      fillColor: \"#008525\"\n    },\n    icon: {\n      image: \"images/map-pin@2x.png\",\n      width: 15,\n      height: 21\n    },\n    autoCentered: true,\n    onChange: function(coords) {\n        console.log(coords);\n    }\n});\n```\n\nEnjoy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybuilder%2Fbermuda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmybuilder%2Fbermuda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybuilder%2Fbermuda/lists"}