Skip to content

Commit

Permalink
Merge branch 'feature/liveMonitoring' into tm/feature/liveMonitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
royallsilwallz committed Jan 18, 2024
2 parents 494fe3b + e7ca921 commit c1af4cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 5 additions & 2 deletions frontend/src/components/projectDetail/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,11 @@ export const ProjectDetail = (props) => {
className="bg-white blue-dark ba b--grey-light pa3"
/>

{/* show live view button only when the project has live monitoring feature */}
{hasLiveMonitoringFeature && (
{/*
show live view button only for published projects &
when the project has live monitoring feature
*/}
{props.project.status === 'PUBLISHED' && hasLiveMonitoringFeature && (
<LiveViewButton
projectId={props.project.projectId}
className="bg-white blue-dark ba b--grey-light pa3"
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/views/projectLiveMonitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ const config = {
attribution: '&copy; OpenStreetMap Contributors',
maxzoom: 19,
},
Bing: {
type: 'raster',
tiles: ['https://ecn.t3.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=1'],
tileSize: 256,
attribution: '&copy; OpenStreetMap Contributors',
maxzoom: 18,
},
Mapbox: {
type: 'raster',
tiles: [
Expand All @@ -57,13 +64,6 @@ const config = {
attribution: '&copy; OpenStreetMap Contributors &copy; ESRI',
maxzoom: 18,
},
Bing: {
type: 'raster',
tiles: ['http://ecn.t3.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=1'],
tileSize: 256,
attribution: '&copy; OpenStreetMap Contributors',
maxzoom: 18,
},
},
};

Expand Down Expand Up @@ -330,7 +330,7 @@ export function ProjectLiveMonitoring() {
<UnderpassFeatureList
style={{
display: 'flex',
'flex-flow': 'column',
flexFlow: 'column',
height: '100px',
flex: '1 1 auto',
}}
Expand Down

0 comments on commit c1af4cb

Please sign in to comment.