Skip to content

Commit

Permalink
feat(globe): use new basemap tiles (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwambach committed Jun 22, 2020
1 parent 5b26cf5 commit bb5660a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/scripts/components/globe/globe.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
import React, {FunctionComponent, useRef, useEffect, useState} from 'react';

import {
getGlobeView,
setGlobeView,
flyToGlobeView
} from '../../libs/get-globe-view';

import {GlobeView} from '../../types/globe-view';
import {GlobeProjection} from '../../types/globe-projection';

import 'cesium/Build/Cesium/Widgets/widgets.css';
import {
Viewer,
Expand All @@ -18,18 +8,28 @@ import {
TileMapServiceImageryProvider,
UrlTemplateImageryProvider,
TextureMinificationFilter,
TextureMagnificationFilter,
buildModuleUrl
TextureMagnificationFilter
} from 'cesium';

import {
getGlobeView,
setGlobeView,
flyToGlobeView
} from '../../libs/get-globe-view';

import {GlobeView} from '../../types/globe-view';
import {GlobeProjection} from '../../types/globe-projection';
import config from '../../config/main';

import {GlobeProjectionState} from '../../types/globe-projection-state';

import styles from './globe.styl';

// create default imagery provider
const tileUrl = buildModuleUrl('Assets/Textures/NaturalEarthII');
const imageryProvider = new TileMapServiceImageryProvider({
url: tileUrl
url: config.basemapTilesUrl,
fileExtension: 'png',
maximumLevel: 4
});

const cesiumOptions = {
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/config/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export default {
stories: `https://storage.googleapis.com/esa-cfs-storage/${version}/stories/stories-{lang}.json`,
story: `https://storage.googleapis.com/esa-cfs-storage/${version}/stories/{id}/{id}-{lang}.json`
},
basemapTilesUrl:
'https://storage.googleapis.com/esa-cfs-tiles/0.5.1/basemap/',
globe: globeState,
share: {
facebook:
Expand Down

0 comments on commit bb5660a

Please sign in to comment.