mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-05-20 14:44:51 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
bb164965ef
commit
238fc68546
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue