mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
* Addresses #199 , but just the switcher part. Not functioning at the moment, we should remove to minimize confusion * Adding comment
This commit is contained in:
parent
922740a4cb
commit
8b8314aeb3
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
import React, {useState} from 'react';
|
import React, {useState} from 'react';
|
||||||
import Layout from '../components/layout';
|
import Layout from '../components/layout';
|
||||||
import MapWrapper from '../components/map';
|
import MapWrapper from '../components/map';
|
||||||
import MapControls from '../components/mapControls';
|
|
||||||
import HowYouCanHelp from '../components/HowYouCanHelp';
|
import HowYouCanHelp from '../components/HowYouCanHelp';
|
||||||
import Feature from 'ol/Feature';
|
import Feature from 'ol/Feature';
|
||||||
import Geometry from 'ol/geom/Geometry';
|
import Geometry from 'ol/geom/Geometry';
|
||||||
|
@ -14,7 +13,10 @@ interface IMapPageProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const CEJSTPage = ({location}: IMapPageProps) => {
|
const CEJSTPage = ({location}: IMapPageProps) => {
|
||||||
const [features, setFeatures] = useState<Feature<Geometry>[]>([]);
|
|
||||||
|
// We temporarily removed MapControls, which would enable you to `setFeatures` also, for now
|
||||||
|
// We will bring back later when we have interactive controls.
|
||||||
|
const [features] = useState<Feature<Geometry>[]>([]);
|
||||||
return (
|
return (
|
||||||
<Layout location={location}>
|
<Layout location={location}>
|
||||||
<main id="main-content" role="main">
|
<main id="main-content" role="main">
|
||||||
|
@ -48,7 +50,7 @@ const CEJSTPage = ({location}: IMapPageProps) => {
|
||||||
are investigating on our data roadmap.
|
are investigating on our data roadmap.
|
||||||
</p>
|
</p>
|
||||||
</Alert>
|
</Alert>
|
||||||
<MapControls setFeatures={setFeatures}/>
|
<h2>Explore the Tool</h2>
|
||||||
<MapWrapper features={features} />
|
<MapWrapper features={features} />
|
||||||
<HowYouCanHelp />
|
<HowYouCanHelp />
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Add table
Reference in a new issue