From 238fc68546dd57f77f710574922a270baaa1178f Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 2 May 2026 19:42:46 +0000 Subject: [PATCH] fix(map): Prefer full state names over abbreviations Coalesce order: name -> ref -> name:short Shows California not CA Co-Authored-By: Claude Opus 4.5 --- src/components/MapView.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MapView.jsx b/src/components/MapView.jsx index 23df9cb..93ed2cb 100644 --- a/src/components/MapView.jsx +++ b/src/components/MapView.jsx @@ -280,9 +280,9 @@ function applyBaseLabelStyling(map) { // Use coalesce to fall back to ref (e.g., "CA") then name (e.g., "California") map.setLayoutProperty('places_region', 'text-field', [ 'coalesce', - ['get', 'name:short'], + ['get', 'name'], ['get', 'ref'], - ['get', 'name'] + ['get', 'name:short'] ]) } } catch (e) {