Skip to content

Commit

Permalink
added maptiler style
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshack committed Nov 18, 2022
1 parent 52c2a8e commit 742e68e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
NEXT_PUBLIC_SUPABASE_URL = "https://some-supabase-id.supabase.co"
NEXT_PUBLIC_SUPABASE_ANON_KEY = "eyJhbGcV4cCI6MiOiJI1NDUxOTMsImTk3MzEyMT..."
# Matomo is only required for production environments:
NEXT_PUBLIC_MATOMO_URL="https://piwik.technologiestiftung-berlin.de"
NEXT_PUBLIC_MATOMO_SITE_ID="13"
NEXT_PUBLIC_MAPTILER_STYLE="https://api.maptiler.com/maps/..."
2 changes: 1 addition & 1 deletion src/components/Map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const MapComponent: FC<MapComponentType> = ({
<Map
mapLib={maplibregl}
initialViewState={{ ...startMapView }}
mapStyle={mapStyle()}
mapStyle={process.env.NEXT_PUBLIC_MAPTILER_STYLE}
onClick={onMapCLick}
ref={mapRef}
onLoad={onMapLoad}
Expand Down

0 comments on commit 742e68e

Please sign in to comment.