Bug: Some land project circle markers are not rendering correctly

未关闭
#24 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
javascript, react
领域
frontend, web-dev

调研方向

首先检查地图渲染逻辑以及 public/fixtures/land_project_sites.geojson 中的 GeoJSON fixture,并将正确渲染的标记与损坏的标记进行比较。使用 Leaflet 和 React Leaflet 的参考资料检查坐标、圆形大小、图层叠放和缩放行为;当每个项目圆形都完整、居中且缩放一致,并且现有标签、交互和弹窗仍然正常工作时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Advanced California Tribal GIS Hackathon
Issue created with ChatGPT models' help¹

Description

Some land project circle markers are not rendering correctly on the ecosystem map view¹. As visible in the screenshot below, certain project markers display incomplete or incorrectly positioned circle overlays while other markers render normally².

This bug appears related to how GeoJSON project data is being consumed or rendered into map circle layers/markers³. The application currently uses a GeoJSON file to display land project sites on the map, and contributors should investigate whether the issue originates from malformed GeoJSON coordinates, radius calculations, map projection behavior, layer rendering order, or component styling⁴.

This is intended to be a relatively small bug-fix issue focused on correcting marker/circle rendering behavior while preserving the existing map interaction system¹.

Here is GeoJSON file: https://github.com/OpenSourceFellows/map-dashboard/blob/main/public/fixtures/land_project_sites.geojson?short_path=a7ebddc

Image

Goals

  • Fix incorrectly rendered land project circle markers¹
  • Ensure all GeoJSON-based project markers render consistently²
  • Preserve existing map functionality and interactions³
  • Verify circles render at correct location and scale⁴
  • Prevent incomplete or clipped circle overlays¹

Implementation Instructions

  • Investigate current GeoJSON rendering logic²
  • Compare correctly rendered markers against broken markers³
  • Verify coordinate ordering and GeoJSON structure⁴
  • Check map layer rendering order and styling¹
  • Inspect radius calculation logic for circle overlays²
  • Ensure map projection/zoom scaling is handled consistently³
  • Verify markers render correctly at different zoom levels⁴
  • Preserve existing popup/label behavior¹
  • Please add comments/documentation if root cause is non-obvious²
  • Contributor may use browser devtools or map debugging utilities³

Expected Functionalities

Correct Circle Rendering
  • All land project markers render complete circle overlays⁴
  • Circles appear centered on intended project location¹
  • Marker visuals remain consistent across projects²
Stable Map Behavior
  • Existing labels/tooltips continue functioning³
  • Map interactions remain unaffected⁴
  • Rendering remains stable across zoom levels¹

Possible Investigation Areas

  • GeoJSON coordinate formatting²
  • Invalid geometry or polygon data³
  • Latitude/longitude ordering⁴
  • Circle radius scaling logic¹
  • Map library rendering edge cases²
  • Layer z-index or clipping behavior³
  • Projection inconsistencies⁴

Acceptance Criteria

  • All project circles render correctly¹
  • No incomplete or broken circle overlays remain²
  • GeoJSON markers appear at correct coordinates³
  • Existing map interactions still function⁴
  • Rendering works consistently across zoom levels¹
  • Fix does not introduce regressions to other markers²

Resources

¹ [GeoJSON Specification Documentation](https://geojson.org/?utm_source=chatgpt.com)
² [Leaflet GeoJSON Documentation](https://leafletjs.com/examples/geojson/?utm_source=chatgpt.com)
³ [MDN GeoJSON Guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON?utm_source=chatgpt.com)
⁴ [React Leaflet Documentation](https://react-leaflet.js.org/?utm_source=chatgpt.com)

Reference GeoJSON file:

Reference Figma Design:
https://www.figma.com/proto/e9z8edludVssFYABGEWsoI/OpenNature-Map--Hackathons-?node-id=1-1465&viewport=787%2C545%2C0.11&t=Xwc2asfn9Qksi99P-8&scaling=scale-down&content-scaling=fixed&starting-point-node-id=1%3A896&page-id=0%3A1&hide-ui=1

主要语言
HTML
星标
2
派生
11
PR 合并指标
30 天内没有已合并 PR

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenSourceFellows/map_dashboard_hackathon 的其他 Issue

查看 OpenSourceFellows/map_dashboard_hackathon 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。