{"id":51467437,"url":"https://github.com/cheeaun/onemap-orthophoto","last_synced_at":"2026-07-06T13:01:22.475Z","repository":{"id":351728447,"uuid":"1212226090","full_name":"cheeaun/onemap-orthophoto","owner":"cheeaun","description":"A map of Singapore using MapLibre GL JS and OneMap Orthophoto tiles.","archived":false,"fork":false,"pushed_at":"2026-04-18T02:23:02.000Z","size":960,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T11:00:08.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cheeaun.github.io/onemap-orthophoto/","language":"HTML","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/cheeaun.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"cheeaun","buy_me_a_coffee":"cheeaun","patreon":"cheeaun","custom":["https://revolut.me/cheeaun","https://donate.stripe.com/9AQeVfbr40ZB9nGaEF","https://paypal.me/cheeaun"]}},"created_at":"2026-04-16T07:18:03.000Z","updated_at":"2026-04-18T22:29:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cheeaun/onemap-orthophoto","commit_stats":null,"previous_names":["cheeaun/onemap-orthophoto"],"tags_count":0,"template":false,"template_full_name":"google-gemini/aistudio-repository-template","purl":"pkg:github/cheeaun/onemap-orthophoto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fonemap-orthophoto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fonemap-orthophoto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fonemap-orthophoto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fonemap-orthophoto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheeaun","download_url":"https://codeload.github.com/cheeaun/onemap-orthophoto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheeaun%2Fonemap-orthophoto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35191767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-07-06T13:01:20.971Z","updated_at":"2026-07-06T13:01:22.465Z","avatar_url":"https://github.com/cheeaun.png","language":"HTML","funding_links":["https://github.com/sponsors/cheeaun","https://buymeacoffee.com/cheeaun","https://patreon.com/cheeaun","https://revolut.me/cheeaun","https://donate.stripe.com/9AQeVfbr40ZB9nGaEF","https://paypal.me/cheeaun"],"categories":[],"sub_categories":[],"readme":"# OneMap Orthophoto\n\n[![Screenshot of OneMap Orthophoto](https://i.imgur.com/4BBAjOn.jpeg)](https://cheeaun.github.io/onemap-orthophoto/)\n\n\u003cdiv align=\"center\"\u003e\n\n### 🚀 [Try the Live Demo](https://cheeaun.github.io/onemap-orthophoto/)\n\n[![Live Demo](https://img.shields.io/badge/LIVE_DEMO-Visit_Website-blue?style=for-the-badge\u0026logo=google-chrome\u0026logoColor=white)](https://cheeaun.github.io/onemap-orthophoto/)\n\n\u003c/div\u003e\n\nA web application that renders Singapore's OneMap Orthophoto (satellite) tiles using [MapLibre GL JS](https://maplibre.org/), featuring a custom WebGL post-processing layer for real-time image enhancement.\n\n## ✨ Features\n\n* **Singapore Satellite Imagery:** Integrates directly with OneMap's Orthophoto tile service.\n* **Real-time WebGL Enhancements:** Adjust the visual quality of the satellite imagery on the fly using custom WebGL shaders:\n  * Noise Reduction\n  * Sharpening\n  * Brightening\n  * Contrast\n  * Saturation\n* **Smart Presets \u0026 Persistence:** Includes a \"Best Effort\" preset for quick optimization. Your custom settings are automatically saved to `localStorage` and restored on your next visit.\n* **Retina/HiDPI Support:** Automatically detects high-density displays and adjusts tile sizes and zoom levels for the crispest possible imagery.\n* **Performance Optimized:** The WebGL post-processing layer automatically disables itself when all settings are at their default (zero) to save GPU cycles.\n\n## 💡 Technical Note: The \"Retina Hack\"\n\nOneMap natively serves 256px tiles, which appear blurry on Retina displays when stretched across 512 physical pixels. By explicitly halving MapLibre's `tileSize` to 128px on HiDPI screens, we squeeze the 256px images into a perfect 1:1 hardware pixel mapping for incredibly crisp satellite imagery.\n\n## 🛠️ Tech Stack\n\n* **MapLibre GL JS** - Open-source interactive map library.\n* **WebGL** - Custom fragment shaders for real-time image manipulation.\n* **Vite 8** - Next-generation frontend tooling for fast builds and development.\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n* Node.js (v18 or higher recommended)\n* npm\n\n### Installation\n\n1. Clone the repository and navigate to the project directory.\n2. Install the dependencies:\n\n```bash\nnpm install\n```\n\n### Development\n\nStart the Vite development server:\n\n```bash\nnpm run dev\n```\n\nThe application will be available at `http://localhost:3000`.\n\n### Production Build\n\nBuild the application for production:\n\n```bash\nnpm run build\n```\n\nThe optimized static files will be generated in the `dist` directory, ready to be served by any static file server.\n\n## 🤖 Built with Google AI Studio\n\nThis project was generated using [Google AI Studio Build](https://aistudio.google.com/). \n\nYou can view and remix the original applet here: **[Remix on AI Studio](https://ais-pre-gicrjv347zg5b6pb5gcsu2-202745490252.asia-southeast1.run.app)**\n\n## 🙏 Acknowledgments\n\n* Map data \u0026copy; [OneMap](https://www.onemap.gov.sg/)\n* Map data \u0026copy; [Singapore Land Authority (SLA)](https://www.sla.gov.sg/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheeaun%2Fonemap-orthophoto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheeaun%2Fonemap-orthophoto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheeaun%2Fonemap-orthophoto/lists"}