Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/swodlr-ui-76: add basemap with borders #129

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/components/map/WorldMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import { useLocation, useSearchParams } from 'react-router-dom';
import { useEffect } from 'react';
import { getGranules, getSpatialSearchGranuleVariables } from '../../constants/graphqlQueries';

const REACT_APP_MAPBOX_STYLE = process.env.REACT_APP_MAPBOX_STYLE;
const REACT_APP_MAPBOX_ACCESS_TOKEN = process.env.REACT_APP_MAPBOX_ACCESS_TOKEN;

let DefaultIcon = L.icon({
iconUrl: icon,
shadowUrl: iconShadow
Expand Down Expand Up @@ -214,8 +217,8 @@ const WorldMap = () => {
}
<div style={{float:'right', width:'49%', height:'100%'}} id='map-tutorial-target'/>
<TileLayer
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'
url={`https://api.mapbox.com/styles/v1/${REACT_APP_MAPBOX_STYLE}/tiles/256/{z}/{x}/{y}@2x?access_token=${REACT_APP_MAPBOX_ACCESS_TOKEN}`}
attribution='© Mapbox, © OpenStreetMap'
maxZoom = {18}
noWrap
bounds={
Expand Down
Loading