{"id":16274816,"url":"https://github.com/vicapow/go-vtile-example","last_synced_at":"2025-08-23T10:13:45.921Z","repository":{"id":139937009,"uuid":"62597157","full_name":"vicapow/go-vtile-example","owner":"vicapow","description":"An example go server for serving vector tiles","archived":false,"fork":false,"pushed_at":"2016-07-30T06:20:45.000Z","size":5945,"stargazers_count":55,"open_issues_count":2,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T08:12:57.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/vicapow.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}},"created_at":"2016-07-05T01:34:40.000Z","updated_at":"2024-11-12T15:41:36.000Z","dependencies_parsed_at":"2024-01-17T03:17:36.374Z","dependency_job_id":"5f825e98-00a7-4d24-b90e-d4e37b3aba25","html_url":"https://github.com/vicapow/go-vtile-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vicapow/go-vtile-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicapow%2Fgo-vtile-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicapow%2Fgo-vtile-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicapow%2Fgo-vtile-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicapow%2Fgo-vtile-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicapow","download_url":"https://codeload.github.com/vicapow/go-vtile-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicapow%2Fgo-vtile-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746598,"owners_count":24813571,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":"2024-10-10T18:30:12.493Z","updated_at":"2025-08-23T10:13:45.897Z","avatar_url":"https://github.com/vicapow.png","language":"Go","funding_links":[],"categories":["Servers"],"sub_categories":[],"readme":"# An example Go app for dynamically serving MapboxGL vector tiles\n\n![](https://cloud.githubusercontent.com/assets/583385/16578797/4cbf4d8a-4251-11e6-9f4c-75820d220405.png)\n\n## Installation\n\nTo install, ensure github.com/golang/protobuf/proto is installed and available on your $GOPATH.\n\n## To run the project\n\n`cd` into the project directory, then run:\n\n    go run main.go\n\n## Docker\n\nTo install/run in Docker instead of natively:\n\n```\ndocker build -t go-vtile-example .\ndocker run -d -p 8080:8080 go-vtile-example\n```\n\n## To view the tiles\n\nTo view the tiles, you'll need to modify your MapboxGL style to add an additional vector tile layer. Here's an example:\n\n```\nvar map = new mapboxgl.Map({\n  container: 'map',\n  zoom: 12.5,\n  center: [-122.45, 37.79],\n  style: {\n    version: 8,\n    sources: {},\n    layers: []\n  },\n  hash: false\n});\n\nmap.on('load', function loaded() {\n  map.addSource('custom-go-vector-tile-source', {\n      type: 'vector',\n      tiles: ['http://localhost:8080/tiles/{z}/{x}/{y}']\n  });\n  map.addLayer({\n    id: 'background',\n    type: 'background',\n    paint: {\n      'background-color': 'white'\n    }\n  });\n  map.addLayer({\n      \"id\": \"custom-go-vector-tile-layer\",\n      \"type\": \"circle\",\n      \"source\": \"custom-go-vector-tile-source\",\n      \"source-layer\": \"points\",\n      paint: {\n        'circle-radius': {\n          stops: [[8, 0.1], [11, 0.5], [15, 3], [20, 20]]\n        },\n        'circle-color': '#e74c3c',\n        'circle-opacity': 1\n      }\n  });\n});\n```\n\n## Data from SFGov.org\n\nhttps://data.sfgov.org/City-Infrastructure/Street-Tree-Map/337t-q2b4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicapow%2Fgo-vtile-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicapow%2Fgo-vtile-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicapow%2Fgo-vtile-example/lists"}