From 6b97adfe7801db2275fc6358dd7248bdc9e64def Mon Sep 17 00:00:00 2001 From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:54:25 -0400 Subject: [PATCH] refactor(SimpleMap): Fix types --- lib/components/map/simple-map.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/map/simple-map.tsx b/lib/components/map/simple-map.tsx index 960e6b532..25040c268 100644 --- a/lib/components/map/simple-map.tsx +++ b/lib/components/map/simple-map.tsx @@ -42,7 +42,9 @@ const SimpleMap = ({ config, itinerary }: Props): JSX.Element => { return ( 1 ? baseLayerUrls : baseLayerUrls?.[0]} + baseLayer={ + (baseLayerUrls?.length || 0) > 1 ? baseLayerUrls : baseLayerUrls?.[0] + } center={[initLat, initLon]} mapLibreProps={{ reuseMaps: true }} maxZoom={maxZoom}