Commit Graph

4 Commits

Author SHA1 Message Date
5205ebff6c
Refactor map adapters for improved marker and routing management
- Remove deliveryCheckMarker in favor of ID-tracked markers across all adapters
- Add polygon tracking by zone ID in LeafletAdapter for better zone lifecycle management
- Refactor LibreAdapter routing to use MapLibre GL Directions with proper cleanup
- Improve marker recreation logic and click handler persistence in LibreAdapter
- Update updateMarkerPopup interface to accept HTMLElement for type safety
- Add routing profile support (driving/walking/cycling) to RouteOptions
- Enhance destroy methods to properly clean up all resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: David Nguyen <david.nguyen@goutezplanb.com>
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 17:21:51 -05:00
30cc53f9ad
Add custom icon support and routing functionality to map adapters
- Add icon parameter to IMapAdapter.addMarker() supporting DivIcon (Leaflet) and HTMLElement (MapLibre)
- Implement routing with leaflet-routing-machine and @maplibre/maplibre-gl-directions
- Add marker management methods: hasMarker, updateMarkerIcon, updateMarkerPopup, addMarkerClickHandler
- Add route management methods: addRoute, updateRoute, removeRoute, removeAllRoutes
- Update MapFacade to proxy all new marker and route management methods
- Add RouteOptions interface with customizable line styles and waypoint options

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: David Nguyen <david.nguyen@goutezplanb.com>
2025-10-30 23:01:58 -04:00
46e6f7f44a
Make IMapAdapter generic and add zone/marker management
This update adds support for adapter-specific marker types and implements comprehensive zone and marker management functionality:

- Make IMapAdapter generic with TMarker type parameter to support different marker implementations
- Fix Leaflet popup implementation to use Popup class instead of invisible markers
- Add marker tracking with getMarker() and getAllMarkers() methods
- Add zone management with addZone(), updateZone(), openZonePopup(), and closePopup()
- Implement marker addition/removal with ID-based tracking
- Update MapFacade to handle generic marker types
- Bump version to 0.2.2

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: davidnguyen <david.nguyen@goutezplanb.com>
2025-10-27 21:37:59 -04:00
00cc9eab09 real initial commit 2025-10-27 13:39:29 -04:00