diff --git a/deps/cesium-martini b/deps/cesium-martini index f94340af..88779c30 160000 --- a/deps/cesium-martini +++ b/deps/cesium-martini @@ -1 +1 @@ -Subproject commit f94340af535a9e0ac14d8d8f5e3c73a0a4e5109a +Subproject commit 88779c309961a49df791d70efe9cc42adccb61e9 diff --git a/deps/cesium-viewer b/deps/cesium-viewer index e6c8f3cd..eb405972 160000 --- a/deps/cesium-viewer +++ b/deps/cesium-viewer @@ -1 +1 @@ -Subproject commit e6c8f3cdd93d4c8e9513d1f93bed61f12e7a429d +Subproject commit eb4059725eb55454626f643179f7f3b189f23353 diff --git a/packages/globe-dev/src/cesium-view.ts b/packages/globe-dev/src/cesium-view.ts index c94b17a9..f6aa0c92 100644 --- a/packages/globe-dev/src/cesium-view.ts +++ b/packages/globe-dev/src/cesium-view.ts @@ -10,6 +10,7 @@ import CesiumViewer, { SatelliteLayer, } from "@macrostrat/cesium-viewer"; import { MapboxImageryProvider } from "cesium"; +import { elevationLayerURL } from "@macrostrat-web/settings"; // export function BaseLayer({ enabled = true, style, accessToken, ...rest }) { // const provider = useRef( @@ -43,6 +44,7 @@ function CesiumView({ style, accessToken, ...rest }) { highResolution: true, skipZoomLevels: (z) => z % 3 != 0, credit: "Mapbox", + urlTemplate: elevationLayerURL, }) ); diff --git a/packages/settings/index.ts b/packages/settings/index.ts index 86cb3b3e..d7d3440a 100644 --- a/packages/settings/index.ts +++ b/packages/settings/index.ts @@ -39,6 +39,8 @@ export const postgrestPrefix = getRuntimeConfig( export const macrostratInstance = getRuntimeConfig("MACROSTRAT_INSTANCE"); +export const elevationLayerURL = getRuntimeConfig("ELEVATION_LAYER_URL"); + /** Legacy settings object */ export const SETTINGS = { darkMapURL,