Bug: Some land project circle markers are not rendering correctly
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript, react
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra logic render bản đồ và fixture GeoJSON tại public/fixtures/land_project_sites.geojson, đồng thời so sánh các marker được render đúng với các marker bị lỗi. Sử dụng tài liệu tham khảo của Leaflet và React Leaflet để kiểm tra tọa độ, kích thước vòng tròn, thứ tự lớp và hành vi zoom; công việc được xem là hoàn tất khi mọi vòng tròn dự án đều đầy đủ, nằm chính giữa, có tỷ lệ nhất quán, đồng thời các nhãn, tương tác và popup hiện có vẫn hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
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
- Ngôn ngữ chính
- HTML
- Star
- 2
- Fork
- 11
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenSourceFellows/map_dashboard_hackathon
-
California Tribal GIS Hackathon Intermediate
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
-
California Tribal GIS Hackathon Intermediate
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Endpoint to Fetch UsersĐang mởAdvanced California Tribal GIS Hackathon
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Endpoint to update UsersĐang mởAdvanced California Tribal GIS Hackathon
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
Endpoint to create UsersĐang mởAdvanced California Tribal GIS Hackathon
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của OpenSourceFellows/map_dashboard_hackathon
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
bigskysoftware/htmx#4147 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
umami-software/umami#4637 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
AimesSoft/NipaPlay-Reload#1022 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Hotkeys fire when pressed with the Ctrl key, so browser shortcuts also trigger player actionsCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
muxinc/media-chrome#1332 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày