diff --git a/packages/lambda-tiler/src/routes/tile.style.json.ts b/packages/lambda-tiler/src/routes/tile.style.json.ts index 7b2e48336..7eea60335 100644 --- a/packages/lambda-tiler/src/routes/tile.style.json.ts +++ b/packages/lambda-tiler/src/routes/tile.style.json.ts @@ -280,6 +280,8 @@ export async function styleJsonGet(req: LambdaHttpRequest): Promise { - Config.map.setLabels(!Config.map.labels); + const labelState = !Config.map.labels; + gaEvent(GaEvent.Ui, `labels:${labelState}`); + Config.map.setLabels(labelState); }; updateLabelIcon = (): void => {