Rename `points` to `nodes` in front/map.js

This commit is contained in:
Mattéo Delabre 2020-07-25 01:05:03 +02:00
parent 314625f4ef
commit 075105393d
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"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",
"lint": "eslint ."
},

View File

@ -47,10 +47,10 @@ const makeDataSources = () =>
const stopsSource = new VectorSource();
segmentsSource.addFeatures(
Object.values(network.segments).map(({routes, points}) =>
Object.values(network.segments).map(({routes, nodes}) =>
new Feature({
colors: getRouteColors(routes),
geometry: new LineString(points.map(
geometry: new LineString(nodes.map(
({lat, lon}) => proj.fromLonLat([lon, lat])
)),
})