{"id":19900090,"url":"https://github.com/m-lab/bigquery-maptiles","last_synced_at":"2025-03-01T06:45:45.708Z","repository":{"id":139783793,"uuid":"204070653","full_name":"m-lab/bigquery-maptiles","owner":"m-lab","description":"A service that manages the conversion of M-Lab BigQuery results into static world map tiles","archived":false,"fork":false,"pushed_at":"2023-08-22T23:11:01.000Z","size":11,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-29T14:53:41.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-lab.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}},"created_at":"2019-08-23T21:13:00.000Z","updated_at":"2024-02-05T07:36:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"08315767-4049-4f72-8768-60b208f7ee20","html_url":"https://github.com/m-lab/bigquery-maptiles","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"5df78e2b4ac573caecc707d1d115c265e496e388"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fbigquery-maptiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fbigquery-maptiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fbigquery-maptiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-lab%2Fbigquery-maptiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-lab","download_url":"https://codeload.github.com/m-lab/bigquery-maptiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240380518,"owners_count":19792308,"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-12T20:11:08.120Z","updated_at":"2025-03-01T06:45:45.689Z","avatar_url":"https://github.com/m-lab.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bigquery-maptiles\n\nBuild container:\n\n```sh\ndocker build -t bigquery-maptiles .\n```\n\nGenerate input data:\n\n```sh\ndocker run -e PROJECT=mlab-sandbox -v $PWD:/maptiles \\\n    -v ~/.config/gcloud:/root/.config/gcloud -it bigquery-maptiles \\\n    ./prep-geojson-input.sh mlab-sandbox\n```\n\nNOTE: if the html and tiles are served from different domains we'll need to\napply a CORS policy to GCS.\n\n## CORS\n\nNOTE: may not be needed if served from an iframe.\n\n* create a GCS bucket for the tile data.\n* set defacl on bucket:\n\n  ```sh\n  gsutil defacl set public-read gs://bigquery-maptiles-mlab-sandbox/\n  ```\n\n* set cors policy on bucket, so requests evaluate `Access-Control-Allow-Origin`\n  headers correctly.\n\n  ```sh\n  gsutil cors set cors.json  gs://bigquery-maptiles-mlab-sandbox\n  ```\n\n  `cors.json` contains, a project-specific origin (origin URLs are examples):\n  ```\n  [\n    {\n      \"origin\": [\"http://localhost:4000\", \"https://grafana.mlab-sandbox.measurementlab.net\"],\n      \"responseHeader\": [\"Content-Type\"],\n      \"method\": [\"GET\", \"HEAD\", \"DELETE\"],\n      \"maxAgeSeconds\": 3600\n    }\n  ]\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fbigquery-maptiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-lab%2Fbigquery-maptiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-lab%2Fbigquery-maptiles/lists"}