Rename `points` to `nodes` in front/map.js
This commit is contained in:
		
							parent
							
								
									314625f4ef
								
							
						
					
					
						commit
						075105393d
					
				|  | @ -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 ." | ||||
|   }, | ||||
|  |  | |||
|  | @ -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]) | ||||
|                 )), | ||||
|             }) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue