UNPKG
openlayers-react
Version:
latest (1.0.0)
1.0.0
OpenLayer React Components
github.com/awexfwex/openlayers-react
awexfwex/openlayers-react
openlayers-react
/
dist
/
MapContext.d.ts
8 lines
(7 loc)
•
252 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
React
from
'react'
;
import
olMap
from
'ol/Map'
;
export
interface
MapContextProps
{
maps
:
Map
<
string
, olMap>;
registerMap
:
(
map
: olMap,
id
:
string
) =>
void
; }
export
declare
const
MapContext
:
React
.
Context
<
MapContextProps
|
null
>;