OpenSourceFellows / OpenSourceFellows/map_dashboard_hackathon

Bug: Some land project circle markers are not rendering correctly

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Advanced California Tribal GIS Hackathon
Dominant language
HTML
Stars
2
Forks
11
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the map rendering logic and the GeoJSON fixture at public/fixtures/land_project_sites.geojson, comparing correctly rendered markers with the broken ones. Use the Leaflet and React Leaflet references to check coordinates, circle sizing, layering, and zoom behavior; done means every project circle is complete, centered, consistently scaled, and existing labels, interactions, and popups still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.