Skip to content

Commit 1b01dca

Browse files
committed
Add milkway exercise
1 parent 3c0242a commit 1b01dca

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

workshop/content/docs/inputs/vector.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,28 @@ CONNECTION "/vsicurl/https://raw.githubusercontent.com/ofrohn/d3-celestial/maste
5454

5555
## Exercises
5656

57-
TODO
58-
59-
60-
61-
57+
1. Try adding a new dataset to the `stars.map`, for example `mw.json` which is at the same location as the other datasets:
58+
59+
```scala
60+
LAYER
61+
TYPE POLYGON
62+
NAME "milkyway"
63+
STATUS OFF
64+
# TODO add in the data connection
65+
COMPOSITE
66+
OPACITY 30
67+
END
68+
CLASS
69+
STYLE
70+
COLOR 230 230 230
71+
OUTLINECOLOR 50 50 50
72+
END
73+
END
74+
END
75+
```
6276

77+
In the `stars.js` you will need to ensure the `milkyway` layer is added to the OpenLayers map:
6378

79+
```js
80+
params: { 'LAYERS': 'constellations,stars,stars2,milkyway'},
81+
```

workshop/exercises/app/js/stars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ const map = new Map({
2626
view: new View({
2727
projection: 'EPSG:4326',
2828
center: [0, 0],
29-
zoom: 8,
29+
zoom: 4,
3030
}),
3131
});

0 commit comments

Comments
 (0)