MCPcopy Create free account
hub / github.com/Seanium/ChatMap / MapStore

Interface MapStore

lib/store.ts:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20interface 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
29export const useMapStore = create<MapStore>((set) => ({
30 mapInstance: null,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected