Clicking territory focus button sometimes focuses on a different CBG, not the actual territory (#412)

* Fixing #410 - Clicking a CBG region, then another, then hitting territory button results in random CBG being selected

* Part of fix for #410 - refactoring selection
logic to remove setFeatureState call.

* Renaming layers for clarity and adding constants

* Using constant for layer identifier

* Fixes #409 - Loading a URL with lat/lng/zoom specified occasionally does not work . We now parse the URL on page before initializing the map. Also adds tests for this
This commit is contained in:
Nat Hillard 2021-07-27 18:21:47 -04:00 committed by GitHub
commit a2ba9236ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 78 additions and 87 deletions

View file

@ -1,8 +1,9 @@
import React from 'react';
import Layout from '../components/layout';
import MapWrapper from '../components/mapWrapper';
import J40Map from '../components/J40Map';
import HowYouCanHelp from '../components/HowYouCanHelp';
import DownloadPacket from '../components/downloadPacket';
import MapLegend from '../components/mapLegend';
import * as styles from './cejst.module.scss';
interface IMapPageProps {
@ -51,7 +52,9 @@ const CEJSTPage = ({location}: IMapPageProps) => {
<DownloadPacket />
</div>
</section>
<MapWrapper />
<h2>Explore the Tool</h2>
<J40Map location={location}/>
<MapLegend />
<HowYouCanHelp />
</main>
</Layout>