Skip to content

Commit

Permalink
issues/swodlr-ui-release-1.2.0-sit: fixed cmr urls and removed mapbox
Browse files Browse the repository at this point in the history
  • Loading branch information
jbyrne committed Sep 26, 2024
1 parent 7bbf314 commit 4cf60e4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
VITE_SWODLR_API_BASE_URI = https://www.example.com
VITE_BASE_REDIRECT_URI = http://localhost:3000/
VITE_EDL_CLIENT_ID = example_client_id
VITE_EDL_BASE_URI = http://thisisa.test/
VITE_MAPBOX_ACCESS_TOKEN = pk.example_key
VITE_EDL_BASE_URI = http://thisisa.test/
2 changes: 1 addition & 1 deletion cmr/ops_swodlr_cmr_umm_t.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"URL": {
"URLContentType": "DistributionURL",
"Type": "GOTO WEB TOOL",
"URLValue": "http://swodlr.podaac.earthdatacloud.nasa.gov/"
"URLValue": "http://swodlr.podaac.earthdatacloud.nasa.gov"
},
"MetadataSpecification": {
"URL": "https://cdn.earthdata.nasa.gov/umm/tool/v1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion cmr/sit_swodlr_cmr_umm_t.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"URL": {
"URLContentType": "DistributionURL",
"Type": "GOTO WEB TOOL",
"URLValue": "http://swodlr.podaac.sit.earthdatacloud.nasa.gov/"
"URLValue": "http://swodlr.podaac.sit.earthdatacloud.nasa.gov"
},
"Description": "SWODLR (swaa·dler) is an open-source software system developed to generate custom Level 2 raster data products for the SWOT mission. It provides an Application Programming Interface (API) and Graphical User Interface (GUI) that allows end-users to provide custom configurations to generate on-demand raster data products from underlying standard data products (PIXC, PIXCVec).",
"ToolKeywords" : [
Expand Down
2 changes: 1 addition & 1 deletion cmr/uat_swodlr_cmr_umm_t.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"URL": {
"URLContentType": "DistributionURL",
"Type": "GOTO WEB TOOL",
"URLValue": "http://swodlr.podaac.uat.earthdatacloud.nasa.gov/"
"URLValue": "http://swodlr.podaac.uat.earthdatacloud.nasa.gov"
},
"MetadataSpecification": {
"URL": "https://cdn.earthdata.nasa.gov/umm/tool/v1.2.0",
Expand Down
6 changes: 2 additions & 4 deletions src/components/map/WorldMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import { useLocation, useSearchParams } from 'react-router-dom';
import { useEffect } from 'react';
import { getGranules, getSpatialSearchGranuleVariables } from '../../constants/graphqlQueries';

const MAPBOX_ACCESS_TOKEN = import.meta.env.VITE_MAPBOX_ACCESS_TOKEN;

let DefaultIcon = L.icon({
iconUrl: icon,
shadowUrl: iconShadow
Expand Down Expand Up @@ -242,8 +240,8 @@ const WorldMap = () => {
}
<div style={{float:'right', width:'49%', height:'100%'}} id='map-tutorial-target'/>
<TileLayer
url={`https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v11/tiles/256/{z}/{x}/{y}@2x?access_token=${MAPBOX_ACCESS_TOKEN}`}
attribution='© Mapbox, © OpenStreetMap'
url='https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'
attribution='Esri, Maxar, Earthstar Geographics, and the GIS User Community'
maxZoom = {18}
noWrap
bounds={
Expand Down

0 comments on commit 4cf60e4

Please sign in to comment.