{"id":19608041,"url":"https://github.com/tidwall/mvt","last_synced_at":"2025-06-10T13:34:13.962Z","repository":{"id":66234434,"uuid":"118307108","full_name":"tidwall/mvt","owner":"tidwall","description":"Draw Mapbox Vector Tiles (MVT) in Go","archived":false,"fork":false,"pushed_at":"2024-12-12T23:50:40.000Z","size":25,"stargazers_count":56,"open_issues_count":0,"forks_count":8,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-10T00:21:15.096Z","etag":null,"topics":["drawing","golang","mapbox","tiles","vector"],"latest_commit_sha":null,"homepage":"","language":"Go","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/tidwall.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}},"created_at":"2018-01-21T05:24:44.000Z","updated_at":"2025-01-03T08:20:07.000Z","dependencies_parsed_at":"2024-06-19T01:29:29.448Z","dependency_job_id":"386b774c-b768-4b3e-bb7f-72ed1862864f","html_url":"https://github.com/tidwall/mvt","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":0.2222222222222222,"last_synced_commit":"c106a9c42c5a75ed4ba3dd7d7a277a47cdf5ba77"},"previous_names":["tidwall/mbdraw"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fmvt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fmvt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fmvt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fmvt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidwall","download_url":"https://codeload.github.com/tidwall/mvt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidwall%2Fmvt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259085359,"owners_count":22803187,"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":["drawing","golang","mapbox","tiles","vector"],"created_at":"2024-11-11T10:13:50.759Z","updated_at":"2025-06-10T13:34:13.936Z","avatar_url":"https://github.com/tidwall.png","language":"Go","readme":"# mvt\n\n[![GoDoc](https://img.shields.io/badge/api-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/tidwall/mvt)\n\nDraw [Mapbox Vector Tiles](https://github.com/mapbox/vector-tile-spec) with ease.\n\n## Features\n\n- Mapbox Vector Tiles 2.1 support\n- MoveTo, LineTo, CubicTo, QuadraticTo\n- Defined 256x256 canvas\n- Uses floating points\n- Add tags and IDs to features\n- Fast encoding to MVT protobufs\n- No external dependencies\n\n## Install\n\n```\ngo get -u github.com/tidwall/mvt\n```\n\n## Example\n\n```go\nvar tile mvt.Tile\nl := tile.AddLayer(\"triforce\")\nf := l.AddFeature(mvt.Polygon)\n\nf.MoveTo(128, 96)\nf.LineTo(148, 128)\nf.LineTo(108, 128)\nf.LineTo(128, 96)\nf.ClosePath()\n\nf.MoveTo(148, 128)\nf.LineTo(168, 160)\nf.LineTo(128, 160)\nf.LineTo(148, 128)\nf.ClosePath()\n\nf.MoveTo(108, 128)\nf.LineTo(128, 160)\nf.LineTo(88, 160)\nf.LineTo(108, 128)\nf.ClosePath()\n\ndata := tile.Render()\n\n// Data now contains a valid mapbox vector tile protobuf \n// for sending over the internets and styling to your \n// heart's content.\n```\n\n\u003cimg src=\"https://i.imgur.com/ynIx6nt.png\" width=\"300\" height=\"300\"\u003e\n\n## Helper functions\n\n- `mvt.LatLonXY`: Converts a lat/lon to the pixel offset for a specific tile.\n- `mvt.TileBounds`: Returns the lat/lon boundary for a tile.\n\n## Contact\nJosh Baker [@tidwall](http://twitter.com/tidwall)\n\n## License\nmvt source code is available under the MIT [License](/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidwall%2Fmvt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidwall%2Fmvt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidwall%2Fmvt/lists"}