Skip to content

Commit be94f4f

Browse files
committed
Add the ability to specify custom URL templates
1 parent 5c53624 commit be94f4f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

packages/globe-dev/src/cesium-view.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import CesiumViewer, {
1010
SatelliteLayer,
1111
} from "@macrostrat/cesium-viewer";
1212
import { MapboxImageryProvider } from "cesium";
13+
import { elevationLayerURL } from "@macrostrat-web/settings";
1314

1415
// export function BaseLayer({ enabled = true, style, accessToken, ...rest }) {
1516
// const provider = useRef(
@@ -43,6 +44,7 @@ function CesiumView({ style, accessToken, ...rest }) {
4344
highResolution: true,
4445
skipZoomLevels: (z) => z % 3 != 0,
4546
credit: "Mapbox",
47+
urlTemplate: elevationLayerURL,
4648
})
4749
);
4850

packages/settings/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export const postgrestPrefix = getRuntimeConfig(
3939

4040
export const macrostratInstance = getRuntimeConfig("MACROSTRAT_INSTANCE");
4141

42+
export const elevationLayerURL = getRuntimeConfig("ELEVATION_LAYER_URL");
43+
4244
/** Legacy settings object */
4345
export const SETTINGS = {
4446
darkMapURL,

0 commit comments

Comments
 (0)