{"id":19430706,"url":"https://github.com/jmrashed/google-maps-polyline-draw","last_synced_at":"2026-06-12T06:04:30.617Z","repository":{"id":166388619,"uuid":"641827545","full_name":"jmrashed/google-maps-polyline-draw","owner":"jmrashed","description":"Draw polyline on google map using latitude and longitude coordinates","archived":false,"fork":false,"pushed_at":"2023-05-18T08:23:13.000Z","size":1005,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T20:14:39.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmrashed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-17T08:48:11.000Z","updated_at":"2023-05-18T08:23:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a8af38b-a400-45cd-937d-23d30938aba5","html_url":"https://github.com/jmrashed/google-maps-polyline-draw","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fgoogle-maps-polyline-draw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fgoogle-maps-polyline-draw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fgoogle-maps-polyline-draw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fgoogle-maps-polyline-draw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmrashed","download_url":"https://codeload.github.com/jmrashed/google-maps-polyline-draw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240612535,"owners_count":19829027,"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":[],"created_at":"2024-11-10T14:26:14.787Z","updated_at":"2026-06-12T06:04:25.580Z","avatar_url":"https://github.com/jmrashed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Draw polyline on google map using latitude and longitude coordinates\n\n\u003cimg alt=\"GitHub all releases\" src=\"https://img.shields.io/github/downloads/jmrashed/google-maps-polyline-draw/total\"\u003e\n\u003cimg alt=\"GitHub tag (latest by date)\" src=\"https://img.shields.io/github/v/tag/jmrashed/google-maps-polyline-draw\"\u003e\nThis project demonstrates how to draw a polyline on Google Maps using latitude and longitude coordinates. It also includes marking the start and end points on the map.\n\n## Getting Started\n\nThese instructions will help you set up the project on your local machine for development and testing purposes.\n\n### Prerequisites\n\n- Google Maps JavaScript API key. Get an API key by following the [Google Maps JavaScript API documentation](https://developers.google.com/maps/documentation/javascript/get-api-key).\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/jmrashed/google-maps-polyline-draw.git\n   ```\n\n2. Open `assets\\js\\script.js` in a text editor.\n3. Replace `YOUR_API_KEY` with your actual Google Maps JavaScript API key obtained in the prerequisites step:\n\n```javascript\nfunction loadMapScript() {\n  var script = document.createElement(\"script\");\n  script.src =\n    \"https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY\u0026callback=initMap\";\n  document.head.appendChild(script);\n}\n```\n\n# Usage\n\n1. Open index.html in a web browser.\n2. The map will be displayed with a polyline connecting the given coordinates.\n3. The start and end points will be marked on the map with custom icons and labels.\n\n\n# Demo \n**Demo in the web browser**\n\u003cimg src=\"./assets/readme/demo1.png\"\u003e\n\n\n\n**Demo in the json file**\n\u003cimg src=\"./assets/readme/demo2.png\"\u003e\n\n\n**Demo in the script file**\n\u003cimg src=\"./assets/readme/demo3.png\"\u003e\n\n\n\n\n\n# Customization\n\nYou can customize the project by modifying the following:\n\n- Coordinates: In `script.js`, update the coordinates array with your desired latitude, longitude, label, and time.\n- Polyline Style: In `script.js`, modify the properties of polyline object to change the polyline's color, opacity, and weight.\n- Marker Icons: In `script.js`, update the URL of the start and end marker icons to use your own icons.\n- Marker Labels: In `script.js`, adjust the label text and color for the start and end markers.\n\n\n# Contributing\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.\n\n# License\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Fgoogle-maps-polyline-draw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmrashed%2Fgoogle-maps-polyline-draw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Fgoogle-maps-polyline-draw/lists"}