| 18 | } |
| 19 | |
| 20 | interface MapStore { |
| 21 | mapInstance: any | null // Changed from mapboxgl.Map to any to support both Mapbox and Leaflet |
| 22 | markers: Marker[] |
| 23 | task_type: string |
| 24 | setMapInstance: (map: any) => void |
| 25 | setMarkers: (markers: Marker[]) => void |
| 26 | setTaskType: (task_type: string) => void |
| 27 | } |
| 28 | |
| 29 | export const useMapStore = create<MapStore>((set) => ({ |
| 30 | mapInstance: null, |
nothing calls this directly
no outgoing calls
no test coverage detected