From 00a4a6edf4b1eb3b56fd577f598aecfc01670bd7 Mon Sep 17 00:00:00 2001 From: Kyler Chin Date: Tue, 10 Dec 2024 01:52:49 -0800 Subject: [PATCH] Interpolate stop size --- src/components/addLayers/addStops.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/addLayers/addStops.ts b/src/components/addLayers/addStops.ts index 62ee661..daff4a5 100644 --- a/src/components/addLayers/addStops.ts +++ b/src/components/addLayers/addStops.ts @@ -67,8 +67,8 @@ export function addStopsLayers(map: Map, darkMode: boolean, layerspercategory: a 'text-field': ['get', 'displayname'], //'text-field': ['coalesce', ['get', 'route_types']], 'text-variable-anchor': ['left', 'right', 'top', 'bottom'], - 'text-size': 10, - 'text-radial-offset': 0.7, + 'text-size': ['interpolate', ['linear'], ['zoom'], 13, 7, 15, 8, 16, 10], + 'text-radial-offset': 0.5, //'text-ignore-placement': false, //'icon-ignore-placement': false, //'text-allow-overlap': true,