Skip to content

Commit

Permalink
BGDIINF_SB-2949: adding 3D bucket base URL for each staging
Browse files Browse the repository at this point in the history
  • Loading branch information
pakb committed Jul 12, 2023
1 parent dc172e8 commit 2441b7b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ VITE_API_SERVICES_BASE_URL=https://sys-map.dev.bgdi.ch/api/
VITE_API_SERVICE_KML_BASE_URL=https://sys-public.dev.bgdi.ch/
VITE_API_SERVICE_KML_STORAGE_BASE_URL=https://sys-public.dev.bgdi.ch/
VITE_APP_API_SERVICE_SHORTLINK_BASE_URL=https://sys-s.dev.bgdi.ch/
VITE_APP_3D_TILES_BASE_URL=https://sys-3d.dev.bgdi.ch/
1 change: 1 addition & 0 deletions .env.integration
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ VITE_API_SERVICES_BASE_URL=https://sys-map.int.bgdi.ch/api/
VITE_API_SERVICE_KML_BASE_URL=https://sys-public.int.bgdi.ch/
VITE_API_SERVICE_KML_STORAGE_BASE_URL=https://sys-public.int.bgdi.ch/
VITE_APP_API_SERVICE_SHORTLINK_BASE_URL=https://sys-s.int.bgdi.ch/
VITE_APP_3D_TILES_BASE_URL=https://sys-3d.int.bgdi.ch/
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ VITE_API_SERVICES_BASE_URL=https://map.geo.admin.ch/api/
VITE_API_SERVICE_KML_BASE_URL=https://public.geo.admin.ch/
VITE_API_SERVICE_KML_STORAGE_BASE_URL=https://public.geo.admin.ch/
VITE_APP_API_SERVICE_SHORTLINK_BASE_URL=https://s.geo.admin.ch/
VITE_APP_3D_TILES_BASE_URL=https://3d.geo.admin.ch/
7 changes: 7 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ export const WMTS_BASE_URL = enforceEndingSlashInUrl(import.meta.env.VITE_WMTS_B
*/
export const WMS_BASE_URL = enforceEndingSlashInUrl(import.meta.env.VITE_WMS_BASE_URL)

/**
* Root of the buckets serving 3D tiles
*
* @type {String}
*/
export const BASE_URL_3D_TILES = enforceEndingSlashInUrl(import.meta.env.VITE_APP_3D_TILES_BASE_URL)

/**
* Default tile size to use when requesting WMS tiles with our internal WMSs (512px)
*
Expand Down
4 changes: 3 additions & 1 deletion src/modules/map/components/cesium/constants.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { BASE_URL_3D_TILES } from '@/config'

/**
* 3D terrain URL
*
* @type {string}
*/
export const TERRAIN_URL = 'https://sys-3d.dev.bgdi.ch/ch.swisstopo.terrain.3d/v1/'
export const TERRAIN_URL = `${BASE_URL_3D_TILES}/ch.swisstopo.terrain.3d/v1/`

0 comments on commit 2441b7b

Please sign in to comment.