Skip to content

Commit f6d0cc5

Browse files
authored
mapbox-self-host (#632)
1 parent 5ca87b9 commit f6d0cc5

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

client/src/app/[site]/globe/components/ModeSelector.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { Clock, Globe2, HouseIcon, Radio } from "lucide-react";
21
import { cn } from "@/lib/utils";
2+
import { Clock, Globe2, HouseIcon, Radio } from "lucide-react";
33
import { useGlobeStore } from "../globeStore";
4-
import { IS_CLOUD } from "../../../../lib/const";
54

65
export type MapView = "countries" | "subdivisions" | "coordinates" | "timeline";
76

@@ -33,14 +32,12 @@ export default function MapViewSelector() {
3332

3433
return (
3534
<div className="flex items-center gap-2 overflow-x-auto w-full">
36-
{IS_CLOUD && (
37-
<button
38-
className="text-xs font-medium rounded-lg bg-neutral-900/60 text-neutral-200 backdrop-blur-sm p-1.5 border border-white/10 hover:bg-neutral-700/60 hover:text-white transition-all"
39-
onClick={() => setMapMode(mapMode === "2D" ? "3D" : "2D")}
40-
>
41-
{mapMode === "2D" ? "2D" : "3D"}
42-
</button>
43-
)}
35+
<button
36+
className="text-xs font-medium rounded-lg bg-neutral-900/60 text-neutral-200 backdrop-blur-sm p-1.5 border border-white/10 hover:bg-neutral-700/60 hover:text-white transition-all"
37+
onClick={() => setMapMode(mapMode === "2D" ? "3D" : "2D")}
38+
>
39+
{mapMode === "2D" ? "2D" : "3D"}
40+
</button>
4441
<div className="flex items-center gap-0.5 rounded-lg bg-neutral-900/40 backdrop-blur-sm p-0.5 border border-white/10">
4542
<TabButton
4643
active={mapView === "timeline"}

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ services:
8484
- BASE_URL=${BASE_URL}
8585
- DISABLE_SIGNUP=${DISABLE_SIGNUP}
8686
- DISABLE_TELEMETRY=${DISABLE_TELEMETRY}
87+
- MAPBOX_TOKEN=${MAPBOX_TOKEN}
8788
depends_on:
8889
clickhouse:
8990
condition: service_healthy

0 commit comments

Comments
 (0)