From af4a1aec8cb2bbfccec2c80bbc3cf9218d44f437 Mon Sep 17 00:00:00 2001 From: Max Tobias Weber Date: Wed, 25 Mar 2026 12:00:26 +0100 Subject: [PATCH] refactor HedgeLayer component to move paint options into options prop --- src/components/HedgeLayer/HedgeLayer.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/HedgeLayer/HedgeLayer.tsx b/src/components/HedgeLayer/HedgeLayer.tsx index ee1c29f..a43b8c6 100644 --- a/src/components/HedgeLayer/HedgeLayer.tsx +++ b/src/components/HedgeLayer/HedgeLayer.tsx @@ -19,16 +19,16 @@ export default function HedgeLayer() { geojson={geojson} type="line" insertBeforeLayer="waterway-name" - paint={{ - "line-color": "#4caf50", - "line-width": 6, - "line-opacity": 0.9, - }} options={{ layout: { "line-cap": "round", "line-join": "round", }, + paint: { + "line-color": "#4caf50", + "line-width": 6, + "line-opacity": 0.9, + }, }} /> );