Map logic rework
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
|
||||
import type mapbox from 'mapbox-gl';
|
||||
|
||||
export interface MapboxContextValue {
|
||||
ref: React.Ref<HTMLDivElement>;
|
||||
map?: mapbox.Map;
|
||||
}
|
||||
|
||||
export const MapboxContext = React.createContext<MapboxContextValue>(
|
||||
{} as MapboxContextValue
|
||||
);
|
||||
Reference in New Issue
Block a user