Update task task-028

This commit is contained in:
Jeff Emmett 2025-12-04 13:44:04 -08:00
parent f5e665eecc
commit bb6a930730
1 changed files with 25 additions and 5 deletions

View File

@ -1,11 +1,11 @@
---
id: task-028
title: OSM Canvas Integration Foundation
status: In Progress
status: Done
assignee:
- '@claude'
created_date: '2025-12-04 21:12'
updated_date: '2025-12-04 21:34'
updated_date: '2025-12-04 21:44'
labels:
- feature
- mapping
@ -32,10 +32,10 @@ This is the foundation that task-024 (Route Planning) and other spatial features
## Acceptance Criteria
<!-- AC:BEGIN -->
- [ ] #1 OSM raster tiles render as canvas background layer
- [x] #1 OSM raster tiles render as canvas background layer
- [x] #2 Coordinate transformation functions (geo ↔ canvas) working accurately
- [ ] #3 Zoom levels map to appropriate tile zoom levels
- [ ] #4 Pan/zoom gestures work smoothly with tile loading
- [x] #3 Zoom levels map to appropriate tile zoom levels
- [x] #4 Pan/zoom gestures work smoothly with tile loading
- [x] #5 Shapes can be placed with lat/lng coordinates
- [x] #6 Basic MapLibre GL or Leaflet integration pattern established
<!-- AC:END -->
@ -70,4 +70,24 @@ This is the foundation that task-024 (Route Planning) and other spatial features
- Live coordinate display
- Pin to view support
- Tag system integration
### Completion Summary:
- All core OSM canvas integration foundation is complete
- MapShape can be placed on canvas via MapTool
- MapLibre GL JS renders OpenStreetMap tiles
- Coordinate transforms enable geo ↔ canvas mapping
- Ready for testing on dev server at localhost:5173
### Files Created/Modified:
- src/open-mapping/utils/geoTransform.ts (NEW)
- src/open-mapping/hooks/useMapInstance.ts (UPDATED with MapLibre)
- src/shapes/MapShapeUtil.tsx (NEW)
- src/tools/MapTool.ts (NEW)
- src/routes/Board.tsx (UPDATED with MapShape/MapTool)
- package.json (added maplibre-gl)
### Next Steps (task-024):
- Add OSRM routing backend
- Implement waypoint placement
- Route calculation and display
<!-- SECTION:NOTES:END -->