UNPKG

react-amap-v2

Version:

高德地图 v2.0 react 组件

16 lines (12 loc) 321 B
import React from 'react'; import { MapProps } from '@/map/map'; export interface MapContext { url?: string; UIUrl?: string; version?: string; key?: string; plugin?: string[]; options?: MapProps; } export const Context = React.createContext<MapContext>({}); export const ConfigProvider = Context.Provider;