Skip to content

Commit 7fe9501

Browse files
committed
Use new route
1 parent 21e5eb8 commit 7fe9501

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/heatmap/+Page.client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
MapView,
66
buildInspectorStyle
77
} from "@macrostrat/map-interface";
8-
import { mapboxAccessToken, matomoToken, matomoApiURL } from "@macrostrat-web/settings";
8+
import { mapboxAccessToken, matomoToken, matomoApiURL, tileserverDomain } from "@macrostrat-web/settings";
99
import { Footer } from "~/components/general";
1010
import { Divider, Spinner, Tabs, Tab } from "@blueprintjs/core";
1111
import { useEffect, useState } from "react";
@@ -37,7 +37,7 @@ function todayStyle() {
3737
sources: {
3838
today: {
3939
type: "vector",
40-
tiles: ["http://localhost:8000/usage-stats/rockd/{z}/{x}/{y}?today=true"],
40+
tiles: [ tileserverDomain + "/usage-stats/rockd/{z}/{x}/{y}?today=true" ],
4141
}
4242
},
4343
layers: [
@@ -60,7 +60,7 @@ function allStyle() {
6060
sources: {
6161
all: {
6262
type: "vector",
63-
tiles: ["http://localhost:8000/usage-stats/rockd/{z}/{x}/{y}"],
63+
tiles: [ tileserverDomain + "/usage-stats/rockd/{z}/{x}/{y}"],
6464
}
6565
},
6666
layers: [
@@ -125,7 +125,7 @@ function useMapStyle() {
125125
: "mapbox://styles/mapbox/light-v10";
126126

127127
const [actualStyle, setActualStyle] = useState(null);
128-
const overlayStyle = mergeStyles(allStyle(), todayStyle()); // OVERLAY
128+
const overlayStyle = mergeStyles(allStyle(), todayStyle());
129129

130130
// Auto select sample type
131131
useEffect(() => {

0 commit comments

Comments
 (0)