From 5db6680bf7751f3f2f5fb4c5f1cc71c13cc8d55e Mon Sep 17 00:00:00 2001 From: Lucas Verney Date: Wed, 8 Nov 2023 11:19:09 +0100 Subject: [PATCH] Unnecessary ending dot on node_network labels (#663) As per https://github.com/cyclosm/cyclosm-cartocss-style/issues/660#issuecomment-1773789357: * Remove the final dot in the truncation of cycle junction node names. * Keep the final characters instead of the leading ones. Fix #660 --- project.mml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/project.mml b/project.mml index 0db4306..cd9902a 100644 --- a/project.mml +++ b/project.mml @@ -995,11 +995,10 @@ Layer: ( SELECT way, - CONCAT(SUBSTR( + RIGHT( COALESCE(tags->'icn_ref', tags->'ncn_ref', tags->'rcn_ref', tags->'lcn_ref'), - 0, 4 - ), '.') AS ref, + ) AS ref, CASE WHEN (tags->'icn_ref') IS NOT NULL THEN 'icn' WHEN (tags->'ncn_ref') IS NOT NULL THEN 'ncn'