Skip to content

Commit 863a77d

Browse files
committed
Update uk airports maps
1 parent 0a8797b commit 863a77d

File tree

9 files changed

+142
-6
lines changed

9 files changed

+142
-6
lines changed

Data/point_maps/UK_airports1.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Airport,latitude,longitude
1+
Airport,latX,longY
22
London Heathrow,51.4700223,-0.4542955
33
London Stansted,51.8860181,0.2388661
44
London Gatwick,51.1536621,-0.1820629

Data/point_maps/UK_airports1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"projection": {"type": "mercator"},
4343
"mark": "circle",
4444
"encoding": {
45-
"longitude": {"field": "longitude", "type": "quantitative"},
46-
"latitude": {"field": "latitude", "type": "quantitative"},
45+
"longitude": {"field": "longY", "type": "quantitative"},
46+
"latitude": {"field": "latX", "type": "quantitative"},
4747
"size": {"value": 25},
4848
"color": {"value": "#D35400"},
4949
"tooltip": [

Data/point_maps/UK_airports2.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Airport,latitude,longitude,Passengers,Aircraft Movements
1+
Airport,latX,longY,Passengers,Aircraft Movements
22
London Heathrow,51.4700223,-0.4542955,19393886,195336
33
London Stansted,51.8860181,0.2388661,7148200,93316
44
London Gatwick,51.1536621,-0.1820629,6261814,55817

Data/point_maps/UK_airports2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"projection": {"type": "mercator"},
4343
"mark": "circle",
4444
"encoding": {
45-
"longitude": {"field": "longitude", "type": "quantitative"},
46-
"latitude": {"field": "latitude", "type": "quantitative"},
45+
"longitude": {"field": "longY", "type": "quantitative"},
46+
"latitude": {"field": "latX", "type": "quantitative"},
4747
"size": {"field": "Aircraft Movements", "type": "quantitative"},
4848
"color": {"value": "#D35400"},
4949
"tooltip": [
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
4+
"width": 350,
5+
"height": 400,
6+
7+
"title": {
8+
"text": "UK Airport Map",
9+
"subtitle":["Passenger & aircaft movements. Source: CAA 2021",""],
10+
"subtitleFontStyle":"italic",
11+
"subtitleFontSize":10,
12+
"anchor": "middle",
13+
"color": "black"},
14+
15+
"config": {
16+
"background":"white",
17+
"view": {"stroke": "transparent"}},
18+
19+
"layer": [
20+
{
21+
"data": {
22+
"url": "https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/UK%20Map%20Data/ITL1_2021_20m.geojson",
23+
"format": {"property": "features"}},
24+
25+
26+
"projection": {"type": "mercator"},
27+
"mark": {
28+
"type": "geoshape",
29+
"fill": "lightgray",
30+
"stroke": "white",
31+
"strokeWidth":0.1},
32+
33+
"encoding": {
34+
"tooltip":
35+
{"field": "properties.ITL121NM"}
36+
}
37+
},
38+
{
39+
"data": {
40+
"url": "https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/point_maps/UK_airports2.csv"
41+
},
42+
"projection": {"type": "mercator"},
43+
"mark": {"type": "circle"},
44+
"encoding": {
45+
"longitude": {"field": "longY", "type": "quantitative"},
46+
"latitude": {"field": "latX", "type": "quantitative"},
47+
"size": {"field": "Aircraft Movements", "type": "quantitative"},
48+
"color": {"value": "#D35400"},
49+
"tooltip": [
50+
{"field": "Airport"},
51+
{"field": "Passengers", "format": ","},
52+
{"field": "Aircraft Movements", "format": ","}
53+
]
54+
}
55+
}
56+
]
57+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
4+
"width": 350,
5+
"height": 400,
6+
7+
"title": {
8+
"text": "UK Airport Map",
9+
"subtitle":["Passenger & aircaft movements. Source: CAA 2021",""],
10+
"subtitleFontStyle":"italic",
11+
"subtitleFontSize":10,
12+
"anchor": "middle",
13+
"color": "black"},
14+
15+
"config": {
16+
"background":"white",
17+
"view": {"stroke": "transparent"}},
18+
19+
"layer": [
20+
{
21+
"data": {
22+
"url": "https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/UK%20Map%20Data/ITL1_2021_20m.geojson",
23+
"format": {"property": "features"}},
24+
25+
26+
"projection": {"type": "mercator"},
27+
"mark": {
28+
"type": "geoshape",
29+
"fill": "lightgray",
30+
"stroke": "white",
31+
"strokeWidth":0.1},
32+
33+
"encoding": {
34+
"tooltip":
35+
{"field": "properties.ITL121NM"}
36+
}
37+
}
38+
]
39+
}
54.5 KB
Loading
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
3+
4+
"width": 350,
5+
"height": 400,
6+
7+
"title": {
8+
"text": "UK Airport Map",
9+
"subtitle":["Passenger & aircaft movements. Source: CAA 2021",""],
10+
"subtitleFontStyle":"italic",
11+
"subtitleFontSize":10,
12+
"anchor": "middle",
13+
"color": "black"},
14+
15+
"config": {
16+
"background":"white",
17+
"view": {"stroke": "transparent"}},
18+
19+
"layer": [
20+
21+
{
22+
"data": {
23+
"url": "https://raw.githubusercontent.com/jhellingsdata/jhellingsdata.github.io/main/Data/point_maps/UK_airports2.csv"
24+
},
25+
"projection": {"type": "mercator"},
26+
"mark": "circle",
27+
"encoding": {
28+
"longitude": {"field": "longY", "type": "quantitative"},
29+
"latitude": {"field": "latX", "type": "quantitative"},
30+
"size": {"field": "Aircraft Movements", "type": "quantitative"},
31+
"color": {"value": "#D35400"},
32+
"tooltip": [
33+
{"field": "Airport"},
34+
{"field": "Passengers", "format": ","},
35+
{"field": "Aircraft Movements", "format": ","}
36+
]
37+
}
38+
}
39+
]
40+
}
45.5 KB
Loading

0 commit comments

Comments
 (0)