-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbasic_map.re
61 lines (61 loc) · 1.9 KB
/
basic_map.re
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ReactDOMRe.renderToElementWithId(
<ComposableMap
projectionConfig=(
ComposableMap.projectionConfig(
~scale=205,
~rotation=((-11.), 0., 0.),
(),
)
)
width=980
height=551>
<ZoomableGroup center=(0., 20.) disablePanning=false>
<Geographies geography="/examples/world-50m.json">
(
(geographies, projection) =>
Array.map(
geography =>
Geography.id(geography) != "ATA" ?
<Geography
key=(Geography.id(geography))
geography
projection
style=(
Types.style(
~default=
ReactDOMRe.Style.make(
~fill="#ECEFF1",
~stroke="#607D8B",
~strokeWidth="0.75px",
~outline="none",
(),
),
~hover=
ReactDOMRe.Style.make(
~fill="#607D8B",
~stroke="#607D8B",
~strokeWidth="0.75px",
~outline="none",
(),
),
~pressed=
ReactDOMRe.Style.make(
~fill="#FF5722",
~stroke="#607D8B",
~strokeWidth="0.75px",
~outline="none",
(),
),
(),
)
)
/> :
ReasonReact.null,
geographies,
)
)
</Geographies>
</ZoomableGroup>
</ComposableMap>,
"main",
);