Skip to content

Commit

Permalink
Merge branch 'globe-updates'
Browse files Browse the repository at this point in the history
* globe-updates:
  Some improvements to globe rendering:
  Add the ability to specify custom URL templates
  • Loading branch information
davenquinn committed May 28, 2024
2 parents 5c53624 + a874b49 commit ec48b04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/cesium-martini
2 changes: 1 addition & 1 deletion deps/cesium-viewer
2 changes: 2 additions & 0 deletions packages/globe-dev/src/cesium-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -43,6 +44,7 @@ function CesiumView({ style, accessToken, ...rest }) {
highResolution: true,
skipZoomLevels: (z) => z % 3 != 0,
credit: "Mapbox",
urlTemplate: elevationLayerURL,
})
);

Expand Down
2 changes: 2 additions & 0 deletions packages/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ec48b04

Please sign in to comment.