From f280134de7a26b515c8d9394108ff5f15dbb0d86 Mon Sep 17 00:00:00 2001
From: Adam <24621027+adoyle0@users.noreply.github.com>
Date: Wed, 19 Apr 2023 23:03:21 -0400
Subject: [PATCH] add attribution
---
lightning/src/components/MapControls.tsx | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/lightning/src/components/MapControls.tsx b/lightning/src/components/MapControls.tsx
index cb4daab..776601d 100644
--- a/lightning/src/components/MapControls.tsx
+++ b/lightning/src/components/MapControls.tsx
@@ -14,7 +14,6 @@ function MapControls(): JSX.Element {
showZoom: true,
visualizePitch: true,
}
-
const GEO_OPTIONS: GeolocateOptions = {
positionOptions: {
enableHighAccuracy: false,
@@ -26,12 +25,14 @@ function MapControls(): JSX.Element {
showAccuracyCircle: false,
showUserLocation: true,
}
-
+ const ATTRIB_OPTIONS: AttributionOptions = {
+ compact: false,
+ customAttribution: 'OpenStreetMap',
+ }
const SCALE_OPTIONS: ScaleOptions = {
maxWidth: 100,
unit: 'imperial',
}
-
return (
<>
-
-
+