From 9ba43f60f7ccecdc10f3b742fa985ce4e4e01d3a Mon Sep 17 00:00:00 2001 From: Arindam Bose Date: Fri, 27 Dec 2024 11:42:54 -0800 Subject: [PATCH] fix color parsing --- src/generate-route-tiles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generate-route-tiles.js b/src/generate-route-tiles.js index e41df5b..4096baa 100644 --- a/src/generate-route-tiles.js +++ b/src/generate-route-tiles.js @@ -31,8 +31,8 @@ async function generateRouteTiles( const shapes = Object.values(trips).map((shapeId) => shapeIdLineStringLookup[shapeId]); const routeLineString = multiLineString(shapes, { route_id: routeId, - route_color: routeColor, - route_text_color: routeTextColor, + route_color: `0x${routeColor}`, + route_text_color: `0x${routeTextColor}`, }); await appendFile(ldGeoJsonPath, JSON.stringify(routeLineString)+'\n');