Rename `points` to `nodes` in front/map.js
This commit is contained in:
parent
314625f4ef
commit
075105393d
|
@ -5,7 +5,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"back": "node src/back",
|
"back": "node src/back",
|
||||||
"front:debug": "parcel serve src/front/index.html",
|
"front:dev": "parcel serve src/front/index.html",
|
||||||
"front:prod": "npx parcel build src/front/index.html --no-source-maps --no-autoinstall",
|
"front:prod": "npx parcel build src/front/index.html --no-source-maps --no-autoinstall",
|
||||||
"lint": "eslint ."
|
"lint": "eslint ."
|
||||||
},
|
},
|
||||||
|
|
|
@ -47,10 +47,10 @@ const makeDataSources = () =>
|
||||||
const stopsSource = new VectorSource();
|
const stopsSource = new VectorSource();
|
||||||
|
|
||||||
segmentsSource.addFeatures(
|
segmentsSource.addFeatures(
|
||||||
Object.values(network.segments).map(({routes, points}) =>
|
Object.values(network.segments).map(({routes, nodes}) =>
|
||||||
new Feature({
|
new Feature({
|
||||||
colors: getRouteColors(routes),
|
colors: getRouteColors(routes),
|
||||||
geometry: new LineString(points.map(
|
geometry: new LineString(nodes.map(
|
||||||
({lat, lon}) => proj.fromLonLat([lon, lat])
|
({lat, lon}) => proj.fromLonLat([lon, lat])
|
||||||
)),
|
)),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue