-
Notifications
You must be signed in to change notification settings - Fork 45
/
_play_with_projection.qmd
44 lines (39 loc) · 1007 Bytes
/
_play_with_projection.qmd
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
```{ojs}
container_projection = html`<div class="container">
<div class="row">
<div class="projection">
<div class="projection-label">Choisir une projection</div>
${viewof projection}
</div>
</div>
<div class="row">
<div class="projectedMap">
${projectedMap}
</div>
</div>
</div>`
```
```{ojs}
viewof projection = projectionInput({
name: "",
value: "Mercator"
})
```
```{ojs}
import {projectionInput} from "@fil/d3-projections"
import {map} from "@linogaliana/base-map"
```
```{ojs}
projectedMap = map(projection,
{
//svg: true,
value: projection.options,
width: width_projected_map,
//height: 300,
//rotate: [0, -90],
//inertia: true,
show_equator: true,
background: "#f1f0eb"
//show_structure: true
})
```