{"id":29029164,"url":"https://github.com/dporkka/location-map","last_synced_at":"2026-02-02T11:49:20.769Z","repository":{"id":300055292,"uuid":"1005072088","full_name":"dporkka/location-map","owner":"dporkka","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-19T17:41:04.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T21:15:07.646Z","etag":null,"topics":["disaster-relief","disaster-response","gps","gps-coordinates","gps-location","gps-tracker","latitude","latitude-longitude-finder","leaflet","leaflet-map","leafletjs","location-services","location-tracker"],"latest_commit_sha":null,"homepage":"https://latlongmap.netlify.app/index.html","language":"HTML","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/dporkka.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,"zenodo":null}},"created_at":"2025-06-19T16:09:38.000Z","updated_at":"2025-06-19T18:11:34.000Z","dependencies_parsed_at":"2025-06-19T17:36:10.709Z","dependency_job_id":null,"html_url":"https://github.com/dporkka/location-map","commit_stats":null,"previous_names":["dporkka/location-map"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dporkka/location-map","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dporkka%2Flocation-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dporkka%2Flocation-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dporkka%2Flocation-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dporkka%2Flocation-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dporkka","download_url":"https://codeload.github.com/dporkka/location-map/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dporkka%2Flocation-map/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29011649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"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":["disaster-relief","disaster-response","gps","gps-coordinates","gps-location","gps-tracker","latitude","latitude-longitude-finder","leaflet","leaflet-map","leafletjs","location-services","location-tracker"],"created_at":"2025-06-26T08:06:06.712Z","updated_at":"2026-02-02T11:49:20.752Z","avatar_url":"https://github.com/dporkka.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPS Coordinate Finder\n\nA simple web app for interactively finding and copying latitude/longitude coordinates on a map. Built with Leaflet.js and OpenStreetMap tiles. No backend required.\n\n![image](https://github.com/user-attachments/assets/92612c70-125f-4789-ba3c-5a99397c54c2)\n\n## Features\n\n- 🌍 Interactive map with draggable marker\n- 📍 Auto-locate your device (with browser geolocation)\n- 🖱️ Copy coordinates with one click\n- 🗺️ Uses OpenStreetMap tiles (no API key needed)\n- ⚡ Fast, responsive, and works offline after first load\n\n## Usage\n\n1. **Download or clone this repository.**\n2. Make sure you have Python installed (for running a local server).\n3. Open a terminal in the project directory and run:\n   ```sh\n   python -m http.server 8000\n   ```\n4. Open your browser and go to:\n   [http://localhost:8000/index.html](http://localhost:8000/index.html)\n\n## How It Works\n- Drag the marker or move the map to update the coordinates.\n- Click the \"Copy\" button to copy the current coordinates to your clipboard.\n- If your browser allows, the map will attempt to center on your current location.\n\n## Troubleshooting\n- **Geolocation errors:**\n  - If you see a geolocation error, make sure your browser allows location access and you're using HTTPS or localhost.\n  - Some browsers block geolocation on plain HTTP (except for localhost).\n- **Map tile errors (400 Bad Request):**\n  - This app uses zoom levels supported by OpenStreetMap (up to 19). If you see tile errors, refresh or zoom out.\n- **Copy button not working:**\n  - Clipboard access may require HTTPS or user interaction in some browsers.\n\n## Customization\n- To change the default map center, edit the marker's initial coordinates in the HTML file.\n- You can style the map and panel by editing the CSS in the `\u003cstyle\u003e` block.\n\n## Publishing on Netlify\n\nTo make your map publicly accessible, you can deploy it for free using Netlify:\n\n### 1. Rename Your HTML File\n- use`index.html` for the map file\n- Make sure all resources (CSS, JS, images) are referenced with relative paths.\n\n### 2. Prepare Your Project Folder\n- Your folder should look like:\n  ```\n  /projects\n    ├─ index.html\n    ├─ README.md\n    └─ (any other assets)\n  ```\n\n### 3. Deploy to Netlify\n- Go to [Netlify Drop](https://app.netlify.com/drop).\n- Drag and drop your project folder (containing `index.html`) into the window.\n- Netlify will provide a public URL instantly.\n\n**Optional: Continuous Deployment**\n- Push your folder to GitHub.\n- On Netlify, click \"Add new site\" \u003e \"Import an existing project\" and connect your repo.\n- Every push to your repo will auto-deploy your site.\n\n## Contribution\nPull requests are welcome! Please open an issue first to discuss major changes.\n\n## Wix integration\n\n```\n// in your PAGE code (not Section code)\nimport { getCurrentGeolocation } from 'wix-window';\n\n$w.onReady(() =\u003e {\n  const htmlComp = $w('#html1');\n\n  // Request a high-accuracy GPS fix in the secure parent context\n  getCurrentGeolocation({ enableHighAccuracy: true, timeout: 10000 })\n    .then(({ coords }) =\u003e {\n      // Send the coords into the iframe\n      htmlComp.postMessage({ coords }, '*');\n    })\n    .catch(err =\u003e {\n      console.warn('Geolocation error or denied:', err);\n      // Fallback to manual mode\n      htmlComp.postMessage({ coords: null }, '*');\n    });\n});\n```\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdporkka%2Flocation-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdporkka%2Flocation-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdporkka%2Flocation-map/lists"}