{"id":18979569,"url":"https://github.com/xiaoiver/custom-mapbox-layer","last_synced_at":"2025-04-19T18:05:47.777Z","repository":{"id":153188242,"uuid":"171243703","full_name":"xiaoiver/custom-mapbox-layer","owner":"xiaoiver","description":"A custom layer based on Mapbox","archived":false,"fork":false,"pushed_at":"2019-07-23T14:15:04.000Z","size":5734,"stargazers_count":91,"open_issues_count":0,"forks_count":27,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T11:21:51.429Z","etag":null,"topics":["gis","mapbox"],"latest_commit_sha":null,"homepage":"https://xiaoiver.github.io/custom-mapbox-layer/?path=/story/vectorlayer--cluster","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/xiaoiver.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":"2019-02-18T08:26:38.000Z","updated_at":"2025-01-02T13:45:23.000Z","dependencies_parsed_at":"2023-05-10T16:00:58.513Z","dependency_job_id":null,"html_url":"https://github.com/xiaoiver/custom-mapbox-layer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoiver%2Fcustom-mapbox-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoiver%2Fcustom-mapbox-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoiver%2Fcustom-mapbox-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoiver%2Fcustom-mapbox-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaoiver","download_url":"https://codeload.github.com/xiaoiver/custom-mapbox-layer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249235128,"owners_count":21235156,"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":["gis","mapbox"],"created_at":"2024-11-08T15:44:05.865Z","updated_at":"2025-04-16T11:32:29.977Z","avatar_url":"https://github.com/xiaoiver.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A custom layer based on Mapbox\n\n基于 Mapbox Custom Layer Interface 开发的一些地理信息可视化 DEMO。\n涉及一些 WebGL 渲染技术，在知乎上发表了一系列文章：\n\n* [在 WebGL 中绘制地图（多边形篇）](https://zhuanlan.zhihu.com/p/52989166)\n* [在 WebGL 中绘制直线](https://zhuanlan.zhihu.com/p/59541559)\n* [在 WebGL 中渲染文字](https://zhuanlan.zhihu.com/p/65421383)\n* [WebGL 中的顶点数据压缩](https://zhuanlan.zhihu.com/p/67484498)\n* [解决高缩放等级下的抖动问题](https://zhuanlan.zhihu.com/p/57469121)\n* [使用数据瓦片展示海量数据](https://zhuanlan.zhihu.com/p/64130041)\n* [使用 k-d tree 实现点聚合图](https://zhuanlan.zhihu.com/p/64450167)\n* [在动态地图中实现文本标注（一）](https://zhuanlan.zhihu.com/p/72222549)\n* [在动态地图中实现文本标注（二）](https://zhuanlan.zhihu.com/p/74373214)\n\n使用 storybook 展示例子\n```bash\nnpm run storybook\n```\n\n## Features\n\n### 文本标注\n\n![Polygon 要素标注](./static/text-polygon.png)\n\n### 数据瓦片 + Cluster\n\n[ClusterLayer](https://xiaoiver.github.io/custom-mapbox-layer/?path=/story/vectorlayer--cluster)\n\n## TODO\n\nregl 不支持 WebGL2: https://github.com/regl-project/regl/issues/378\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoiver%2Fcustom-mapbox-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaoiver%2Fcustom-mapbox-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoiver%2Fcustom-mapbox-layer/lists"}