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
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:
[OpenNature Map Figma Design](https://www.figma.com/design/eRcnlUKzSsIJv3JcOMddwU/OpenNature-Map?node-id=5771-3944&t=PvHYPjlEBBF151A0-0&utm_source=chatgpt.com)
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
Implementation Instructions
Expected Functionalities
Correct Circle Rendering
Stable Map Behavior
Possible Investigation Areas
Acceptance Criteria
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:
[OpenNature Map Figma Design](https://www.figma.com/design/eRcnlUKzSsIJv3JcOMddwU/OpenNature-Map?node-id=5771-3944&t=PvHYPjlEBBF151A0-0&utm_source=chatgpt.com)