{"id":18620488,"url":"https://github.com/simonsobs/tileviewer","last_synced_at":"2025-11-03T12:30:21.000Z","repository":{"id":258680860,"uuid":"867787836","full_name":"simonsobs/tileviewer","owner":"simonsobs","description":"The frontend for the SO tilemaker and SO tileserver.","archived":false,"fork":false,"pushed_at":"2025-02-10T22:02:00.000Z","size":162,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T23:19:42.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/simonsobs.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":"2024-10-04T18:09:10.000Z","updated_at":"2025-02-10T22:02:01.000Z","dependencies_parsed_at":"2025-02-03T22:25:40.056Z","dependency_job_id":"f8683ea4-5da5-4c17-9f50-f7f0403d4e88","html_url":"https://github.com/simonsobs/tileviewer","commit_stats":{"total_commits":52,"total_committers":1,"mean_commits":52.0,"dds":0.0,"last_synced_commit":"608899d828dfa88ec3641794b627495acdb1524b"},"previous_names":["simonsobs/tileviewer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Ftileviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Ftileviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Ftileviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Ftileviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonsobs","download_url":"https://codeload.github.com/simonsobs/tileviewer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239413790,"owners_count":19634307,"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-07T04:06:20.290Z","updated_at":"2025-11-03T12:30:20.970Z","avatar_url":"https://github.com/simonsobs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tileviewer\n\nThis is the user interface for the SO Map Viewer. The client is built with [React](https://react.dev/) and bundled by [vite](https://vite.dev/). The underlying mapping components are built with [leaflet.js](https://leafletjs.com/) and [react-leaflet](https://react-leaflet.js.org/).\n\n## Steps to run locally\n\n1. Clone and initialize this repo:\n\n```sh\ngit clone git@github.com:simonsobs/tileviewer.git\ncd tileviewer\nnpm install\n```\n\n2. Set up a `.env.development` file. The contents of `env.development.sample` should suffice if you plan to serve the map tiles using [the SO Tilemaker](https://github.com/simonsobs/tilemaker)\n\n3. Depending on your tile server setup:\n\n   3A. If using the SO Tilemaker:\n\n   - Clone the repo and [follow its README instructions](https://github.com/simonsobs/tilemaker#readme) for creating a `SQLite` database.\n   - Amend the `settings.py` file as follows:\n\n   ```py\n     # vite's dev server is configured to be on port 8080; amend as desired.\n     origins: list[str] | None = [\"http://localhost:8080\"]\n     add_cors: bool = True\n   ```\n\n   - Run the tile server locally via `uvicorn tilemaker.server:app --port=9191 --reload`\n\n   3B. If using your own tile server:\n\n   - Set the `VITE_SERVICE_URL` environment variable in `.env.development` to point to your local server\n   - Run your tile server locally\n\n4. Run the client dev server via `npm run dev`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Ftileviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonsobs%2Ftileviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Ftileviewer/lists"}