Caching SuperCluster Index
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- web-dev
调研方向
从 issue 中所示的 Supercluster 构建过程和 .load(geoJsonData.features) 入口点开始。确定生成的索引是否可以在实例之间持久化并重复使用,并定义缓存数据应如何处理聚类选项和输入记录。当大型数据集可以重复使用有效索引,而不是使用 load() 重新构建索引时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Hi, is it possible to cache index generated by SuperCluster so that I can use it next time instead of calling new Supercluster({}).load() Again?
The code below takes time for large records. I am trying to get over this issue.
superclusterIndex = new Supercluster({
map: (props) => props,
radius: MapConfig.clusterRadius,
maxZoom: ClusterZoomLevel.maxZoom,
}).load(geoJsonData.features);
- 主要语言
- JavaScript
- 星标
- 2.4k
- 派生
- 303
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mapbox/supercluster 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
mapbox/supercluster#265 ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
mapbox/supercluster#254 · 2 条评论 ·
-
Missing points when bounds are scoped to the extent of points可能重新可做 关联的 PR 已关闭且未合并。 未关闭question
难度 4/5 3-5 天 新手友好度 38/100
mapbox/supercluster#234 · 1 条评论 ·
-
Nested geoJson properties are copied by reference可能已有人在做 @mrkwanzaa 于 1341 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 50/100
mapbox/supercluster#215 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
mapbox/supercluster#211 · 2 条评论 ·
查看 mapbox/supercluster 的全部 Issue
相似的 Issue
-
check:failed logos:add
难度 2/5 1-3 小时 新手友好度 67/100
iptv-org/database#38874 · 1 条评论 ·
维护者通常 4 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 85/100
githubnext/gh-aw-workshop#5193 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
agent/quality stage/040-covered-by-pr testing
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复