remove controls, add padding, change check

This commit is contained in:
Nat Hillard 2021-06-17 23:32:58 -04:00
parent 6617a39c27
commit 722e45ce9d
3 changed files with 5 additions and 4 deletions

View file

@ -11,7 +11,7 @@ interface ILayoutProps {
}
const Layout = ({children, location}: ILayoutProps) => {
const isWidthFullPage = location.pathname.endsWith('/cejst');
const isWidthFullPage = location.pathname.match(/cejst\/?/);
const conditionalAside = isWidthFullPage ? <></> : <J40Aside/>;
const gridCssClass = isWidthFullPage ? ' desktop:grid-col-12' :
'desktop:grid-col-9';

View file

@ -2,4 +2,5 @@
height: 676px;
margin-bottom: 29px;
max-width: revert;
margin-top: 50px;
}

View file

@ -1,7 +1,7 @@
import React, {useState} from 'react';
import Layout from '../components/layout';
import MapWrapper from '../components/map';
import MapControls from '../components/mapControls';
// import MapControls from '../components/mapControls';
import HowYouCanHelp from '../components/HowYouCanHelp';
import Feature from 'ol/Feature';
import Geometry from 'ol/geom/Geometry';
@ -13,7 +13,7 @@ interface IMapPageProps {
}
const CEJSTPage = ({location}: IMapPageProps) => {
const [features, setFeatures] = useState<Feature<Geometry>[]>([]);
const [features] = useState<Feature<Geometry>[]>([]);
return (
<Layout location={location}>
@ -48,7 +48,7 @@ const CEJSTPage = ({location}: IMapPageProps) => {
are investigating on our data roadmap.
</p>
</Alert>
<MapControls setFeatures={setFeatures}/>
{/* <MapControls setFeatures={setFeatures}/> */}
<MapWrapper features={features} />
<HowYouCanHelp />
</main>