From 16a313b56577fc28ee538fd9a59472912051f192 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Wed, 8 Nov 2023 11:17:41 +0100 Subject: [PATCH] Unnecessary ending dot on node_network labels 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'